LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write data to TDMS file using Picoscope 4824 example VI

Hi all,

I am fairly new to LabVIEW and trying to acquire data using a Picoscope 4824 and LabVIEW. I have downloaded an example VI provided by Pico technology - http://PicoScope4000aExampleStreaming.vi, as found here https://github.com/picotech/picosdk-ni-labview-examples/tree/master/ps4000a/64-bit-examples. The block diagram is attached as a photo. 

 


I would like to build in a function that writes the data to a tdms file continuously until I stop the capture. Could anyone help out with where I need to place the function within the block diagram?

Thanks a lot. 

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

I would put it into a separate loop and pass data to that loop using a queue or similar mechanism. It is called a producer-consumer design pattern.

https://www.ni.com/en/support/documentation/supplemental/21/producer-consumer-architecture-in-labvie...

see also:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1r9CAA&l=en-US

0 Kudos
Message 2 of 2
(2,878 Views)