Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from multiple Sensors

Hi,

I am doing a reading from 5 sensors (dissolved oxygen, electrical conductivity, pH, Light Intensity and temperature). I am receiving the readings on my serial read program in labview. I have 2 problems. 

1) When i split the readings coming as text into floating point, it just indicates once and does not overwrite the new reading being sent every 250ms.

2) The display order of the measurements from the sensor gets changed every time i run the program, e.g; the dissolved oxygen reading gets displayed as output 1 and the next time as output 4 etc. 

My program is attached. Please help me in this issue.

Thanks 

0 Kudos
Message 1 of 2
(2,406 Views)

You initialize the feedback node in the case structure for the first loop only.

All data is added after that but never cleared, 

So use a shift register instead or feed the remaining string into the shift register instead of all data.

 

You are probably better off to define an end character for all measurements instead of for each single measurement and then read in one go. No feedback needed anymore.

greetings from the Netherlands
0 Kudos
Message 2 of 2
(2,388 Views)