LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display number of samples received.

Solved!
Go to solution

Hi,

So want to display how many samples I have read. I have seen in some discussions that i should use "DAQmx read property node" but where exactly should i place it in my VI. Also I want to stop my code after acquiring exactly 675 samples. How should i do it? Attached is my receiver vi.

0 Kudos
Message 1 of 2
(2,228 Views)
Solution
Accepted by topic author maverikk

Hi maverikk,

 

I want to stop my code after acquiring exactly 675 samples.

Remove the loop from your VI.

Then change "number of samples per channel" to a constant and set its value to 675.

Finished.

 

So want to display how many samples I have read. I have seen in some discussions that i should use "DAQmx read property node" but where exactly should i place it in my VI.

Why do you need a property node to know the number of samples read?

Just use ArraySize on your Y array in the waveform…

 

Why do you need this at all? When you set DAQmxRead to read 675 samples and it returns without error then you got exactly 675 samples…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,221 Views)