Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Samples Acquired

Hello

 

In the VI attached i am trying to acquire the voltage waveform of an electric bulb.I am using NI-6008 DAQ Card.

Eventhough the samples to read and rate is set as '1k', the number of values written in the measurement file are only 3.


Inputs please.

 

Thanks

0 Kudos
Message 1 of 6
(4,396 Views)
Hello adarshn,

Your stop loop terminal is wired to the "time elapsed" VI and with the values provided, you only run 100 cycles of 20ms (= 2 sec). If you acquire 1000 samples at 1kHz, measurement happens every second, therefore you go through only 3 cycles (2 before the time is elapsed, 1 after the stop is turned to true and the loop is effectively stoped) 😉

By the way, why would you use a Value node when your
CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 2 of 6
(4,387 Views)

Thank you ml927.

My aim is to acquire the signal till a user defined time limit  in (S). What changes do you reccommend?

Regarding the value node, it is to trigger the elapsed time VI only at the instant when the data acquired meets the condition of being 'greater than zero' ,which  you woul see incorporated as a compariosn inside the 'for loop'.

 

Thanks

0 Kudos
Message 3 of 6
(4,380 Views)
Oops, seems like I missed some words 😛

What I wanted to say is that you don't need to use any property node as your boolean value could be read directly as an output of the for loop. Just wire it to the comparison VI ! Anyway, if your trigger the Elapsed Time VI with 0, your loop will just stop running. Do you want to stop your program whenever the acquired value is smaller than 0 ?

As for my recommandation to acquire more samples : the bigger is the number of cycles, the longer you will acquire data (if you want to stay at 1ksamples at 1kHz).
CLAMaxime -- Kudos are a great way to say thank you
0 Kudos
Message 4 of 6
(4,376 Views)

Thank you once again.

 

Yes, I would like to stop the program if the value acquired is less than zero. I had initially developed the logic using a simulate signal block. In that case the number values written to the measurement file was much more.

 

0 Kudos
Message 5 of 6
(4,373 Views)

Sounds like you want something like this


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 6 of 6
(4,370 Views)