LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to store different values from five sensor and put a condition that atleast one value each is available then only proceed

Hi amit,

              You can use a case structure and if any one of the input "not equal to zero" then wire it to the case structure and inside the case structure you can do your proceedings.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 2 of 4
(2,677 Views)

Hi there,

Thanks for the reply. I am using cricket to calculate the coordinate of my reciever.i am getting the serial data from 5 beacons as distance and i am continuously getting the distances i want to store atleast one data from each sensor so that i can do my further calculations

0 Kudos
Message 3 of 4
(2,674 Views)
I wouldn't use not equal to zero. What if the reading you get is 0? Then you will have read from the device but your code won't think you did. Does each beacon have its own serial port, or are they connected up to one device that has one serial port? Does the serial string have any header so you know which beacon the string came from? If so, I would use that string wired up to a case structure and when you get a reading from a.specific beacon. Then have a cluster of 5 booleans, one for each beacon. when you get a reading from a beacon, set a boolean in a cluster for that beacon to true. Then use cluster to array and "and array elements" and continue to read from the serial port until "and array elements" returns true
0 Kudos
Message 4 of 4
(2,666 Views)