LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How would one compare a stream of data from a multimeter to a single constant to determine a true/false condition?

1. You top part needs to be in a loop

2. I would use a notifier here to send the aquisition result to the upper loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 16
(1,268 Views)

My phrasing was wrong. The while loop containing the data acquisition from the Keithley 2000 should be running in parallel with the case structure containing the actuator controls. Should these two be contained in a single, large while loop in order for this to be successful?

0 Kudos
Message 12 of 16
(1,259 Views)

Ok, I re-did the program. Instead of having nested case structures, I have a single case structure that is controlled by inputs from an array. I also expanded the while loop to contain the motor controls and data acquisition. Unfortunately, the motor controls still do not work, and the data writing part only collects a single point of data.

 

Any ideas on how to have continuous data collection and motor control? Again, I attached a copy of the vi.

0 Kudos
Message 13 of 16
(1,238 Views)
first try to learn LabVIEW basics if you are not familiar

For your problem.......
Try to have two parallel loops..
acquire data in one loop
process and decide your case in another loop
transfer data using queue or functional global....
0 Kudos
Message 14 of 16
(1,214 Views)
If you want to learn more synchronization of parallel loops try to read more about queues,notifier,etc.....
0 Kudos
Message 15 of 16
(1,212 Views)
better way to transfer in your case is.. . Usage of notifier because it will wait till New value comes...
so no chance of going to default case with existing value...
0 Kudos
Message 16 of 16
(1,201 Views)