Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Read single value within while loop

Hi,

 

I have a setup with one output, driving a coil.

I then have two inputs: one to measure the voltage of my coil (the actual voltage) and the second to measure the voltage of a sensor mounted close to the coil.

The setup works fine to monitor both channels continuously, however, I want to monitor the second value only once every 5 seconds.

How can I go about doing this? Every 5 seconds I just want a single measurement from the second channel.

0 Kudos
Message 1 of 3
(4,217 Views)

You could just ignore the data from the second channel until your 5 seconds are up.  The Elapsed Time VI should help there.


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
Message 2 of 3
(4,207 Views)

You haven't given us any info on your device, but I assume it's not super-fancy and can change sample rates per channel.

 

This article here explains what you want to do. Your device has a single clock, so you're essentially limited to (forces to match?) your highest sampling rate requirement with all channels and then down-sample from there if you don't want all of the data for some of the other channels.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 3 of 3
(4,164 Views)