LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquisition in Labview

Hello, I have a data acquisition program (temperature, current, voltage, power, speed, resistance..etc) at the moment I have two while loops, one in which I acquire data and another for saving data, I use queues for this thing, I would like to redo this program but not to use the queues anymore, what could we use to replace the queues, and not lose data.
I specify that the test runs for 1000 hours, creates a file per day, and hour by hour saves a file with the data.
How can I restore but without using queues, (I want to do it with state machine)

0 Kudos
Message 1 of 2
(516 Views)

Hi negrau,

 


@negrau98 wrote:

Hello, I have a data acquisition program (temperature, current, voltage, power, speed, resistance..etc) at the moment I have two while loops, one in which I acquire data and another for saving data, I use queues for this thing, I would like to redo this program but not to use the queues anymore, what could we use to replace the queues, and not lose data.
I specify that the test runs for 1000 hours, creates a file per day, and hour by hour saves a file with the data.
How can I restore but without using queues, (I want to do it with state machine)


What's the reason not to use queues anymore? They are perfectly fine for a producer-consumer scheme as you seem to use by now!

 

You still can implement a state machine in your producer loop, but still use a queue to send data/commands to your consumer…

Best regards,
GerdW


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