LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display and modify array elements

Solved!
Go to solution

Hello,

I am using LabVIEW to read a set of parameters from an instrument and display them into an array indicator. This first part is quite easy and works fine. What I would like to be able to do (so far unsuccessfully) is to modify some of the values directly on the array indicator and subsequently pass the new values on the array indicator back to LabVIEW. I would really appreciate if somebody could help me understand whether this is possible and how do it?

Thanks a lot,

Gianni

0 Kudos
Message 1 of 6
(2,449 Views)

Modify an idicator by typing in a new value?

You can't do that. An indicator is just that it displays values.

You can set up an array control that is a duplicate of the indicator and use the values from that.

 

 

0 Kudos
Message 2 of 6
(2,438 Views)
Solution
Accepted by topic author GianniCarbone

Make the array a control and write to it programmatically using a local variable. Be aware of race conditions. For example in this case you have two writers: the instrument and the user, and whoever writes last, wins.

0 Kudos
Message 3 of 6
(2,435 Views)

Thank you for your reply.

As you suggested, rather than displaying the array in an indicator, I use the array produced by the instrument to write into a control via the properties/value of the control.

It works fine now.

Thanks again,

Gianni

0 Kudos
Message 4 of 6
(2,415 Views)

thank you for your reply.

Gianni

0 Kudos
Message 5 of 6
(2,413 Views)

thank you for your reply.

0 Kudos
Message 6 of 6
(2,411 Views)