LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I send sequential data to a multiple display such as warning_program.vi ?

I have created a VI that is getting data from remote temperature sensors.  This data, from 5 sensors, is retrieved sequentially using a loop.  I would like to display each result on a seperate thermometer or ideally a display like the attached VI.   I have not been able to figure out how to sequentially move through a group of five thermometers.  Can someone please help.  Thanks in advance
0 Kudos
Message 1 of 10
(3,606 Views)

alyeska,

I do not see any problems with the VI.  I do not think this is the entire VI that is causing the problem and if i had to guess; the local variable is somehow causing a race condition. Well in this case it is serving to loop the data so no new data would be read.  I guess i do not understand the problem, but i would avoid using local variables.  Thats just me.  Other people use them, but you have to know how to avoid race conditions. 

Chris Co

0 Kudos
Message 2 of 10
(3,591 Views)
Chris,

Ops, you have gone WAY OVER my head with your reply.  Attached is my VI which gets temperature data from 5 remote sensors.  I can collect and display that data as arrays as you can see.  I can also display each piece of data sequentially on a thermometer or "progress" indicator.  BUT how do I display each piece of data on a seperate dedicated thermometer similar to the alarm vi.  I also want to display each piece of data as it is received NOT wait for all 5 pieces to arrive and then display it as ultimately I will have 30 to 40 sensors.  This may be easy to do, but I have hit my head on the wall for two days now trying to get various slider examples to work.  Thanks for your help.

David
0 Kudos
Message 3 of 10
(3,580 Views)
I am not sure I follow the second example but hopefully this example can help you figure it out.  I modified the first example to update the respective cluster sequentially.  Simple index the array and then replace the array subset.
 
 
0 Kudos
Message 4 of 10
(3,574 Views)

alyeska,

I think I'm picking up what your puttin down.  For each iteration of the for loop you send a query and a command to retreive data via TCP and display that data.  Since this is the structure chosen, update speed could become an issue since you querry each sensor sequentially and therefore update sequentially.  Indexing an array is not required but maybe faster.  Let me know if this works for you, hope it does.

 

Chris Co

0 Kudos
Message 5 of 10
(3,561 Views)

Evan,

your example confused me when i went to run it, acting strange and qwerky. but i found that the replace array element index was not wired.  other than that it should do the trick.

Chris Co

0 Kudos
Message 6 of 10
(3,560 Views)
Thats what I get for hurrying.  The idea was that you index out the value you want and then reinsert it into the array at the same location.
0 Kudos
Message 7 of 10
(3,554 Views)
Chris,

I tried "maybe this works.vi "and it runs without errors (after I removed a loose stray component) BUT it does not get any data.  When I turn on "highlight execution" I see activity from the array into the while loop and out of the loop, and activity on my simple timing code at the bottom, but NO activity WITHIN the FOR LOOP, where the querry and response sub vi is......  I tried to set a constant (5) to the N terminal of the for loop but that did not change anything.

I REALLY appreciate your help for a new user and I suspect you are very close,  perhaps one more clue will do it!

David
0 Kudos
Message 8 of 10
(3,549 Views)
alyeska,
I deleted bundle function (loose stray component) and filled in the arrayed cluster components and everything checks out.  You must fill in the information into the array before execution otherwise the for loop iterates 0 times because the array would be empty. By copying and pasting the name and command into thier respective fields, the VI works.  If you also had done this, then the TCP VI would be suspect.
 
Chris Co
Message 9 of 10
(3,543 Views)
Chris,

Right you are!  OUTSTANDING!  This gives me a lot to chew over, but a working model to start from.

Thank you so very much for taking your time to help!

David

0 Kudos
Message 10 of 10
(3,540 Views)