LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to a file longe signal

Solved!
Go to solution

Hi

Can someone suggest how to write to a file longer signal (~30 min sample rat 1kHz ), I understand that I have to use a circular buffer, so my computer continuously acquire data in the background while NI-DAQ retrieves the acquired data.

I am using the 8.6 version.

Please advice

Thanks

Yochai

0 Kudos
Message 1 of 4
(2,829 Views)
Solution
Accepted by topic author Yochai

I have done something very similar recently.  I used parallel loops that both communicated with the same circular buffer.  One loop put data into the buffer (a data-acquisition process), and the other loop took it out (to write it to a file). 

 

The only gotcha for me was to make sure that the circular buffer didn't overflow (e.g. we don't want to write to it, faster than reading from it). 

 

I implemented the circular buffer using a LabVIEW 2 style global (a.k.a. functional global variable).  The global is just VI that I could call that could either deposit data or remove data in the buffer.

 

This link should help you get started:

 

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

http://www.medicollector.com
0 Kudos
Message 2 of 4
(2,816 Views)

Yochai,

 

i think that you will find that webcast very interesting.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 4
(2,810 Views)

Thank you!

0 Kudos
Message 4 of 4
(2,792 Views)