LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing single data point from a producer consumer loop or write to measurement file

Good day

I am looking for a method to record a single reading of a continuous running accusation loop.

I have tried to use the write to measurement file but I get multiple data points.

I was looking to use a producer consumer loop configuration but cannot figure a way to only record a single point.

I have included a copy of my VI.

Any feedback will be great

Thank you

Jay Mason

0 Kudos
Message 1 of 2
(1,841 Views)

Hi Jay,

 

I am looking for a method to record a single reading of a continuous running accusation loop.

When you want to save just a single sample of your data then you need to save exactly a single sample!

 

I have tried to use the write to measurement file but I get multiple data points.

Because you are writing an array of samples…

 

You use the "N samples" mode of DAQmxRead: Use IndexArray to pick a single sample from your data array. (Or use a mean function on the array.) Then save that single sample…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(1,823 Views)