Jump to content

Attempting to eliminate feedback


Recommended Posts

Hi,

I've been using Labview for a grand total of 2 weeks and 1 day now at work. Generally, it has been very simple for me to get a program to do what I want. I'm struggling with a vi right now though, because I am bogged down in thinking in a textual manner.

Essentially, I have a table control. This is used to hold all sorts of data and parameters for a test program I have. I need to eventually extract one row from the table (index array?), change one element in that row, put it back in the array, and then send that new array to an indicator. The problem comes from this sequence being in a for loop. After the first iteration, I need to use the indicator table as my control table. Feedback works until the last iteration, when my changed row does not appear at the indicator.

I hope that makes some sense. I can try taking a screenshot of the block diagram if it does not, but there is a lot of other junk on there that really doesn't need to be seen for this issue.

Does anyone have some suggestions on where to go from here? I need that last change to be visible when the program ends.

Link to comment

If you only need to change one element in only one row... why are you using a for loop??

I think you only need change that element for the new element.. :blink: or maybe you need explain better your problem and i agree for more help you need show your block diagram.... :headbang:

Link to comment
If you only need to change one element in only one row... why are you using a for loop??

I think you only need change that element for the new element.. :blink: or maybe you need explain better your problem and i agree for more help you need show your block diagram.... :headbang:

I'm using a for loop for other things, and it just seemed convenient to do the replacing in the for loop. I have come up with an alternative, I think. Thank you for your help though. I can't get the block diagrams on from here, so it wil lhave to wait until later.

I am now taking the results of my test, and pulling them out of the for loop. That makes an array from them. Then, I just replace the column of my original array with the results array that was just created, and I get the table I wanted. I was making it far too overcomplicated.

Link to comment
Essentially, I have a table control. This is used to hold all sorts of data and parameters for a test program I have. I need to eventually extract one row from the table (index array?), change one element in that row, put it back in the array, and then send that new array to an indicator. The problem comes from this sequence being in a for loop. After the first iteration, I need to use the indicator table as my control table. Feedback works until the last iteration, when my changed row does not appear at the indicator.

Would it help to write back the modified table into the original table? If so you can achieve it by right-clicking on your table-control and select Create/Local Variable.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.