Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to continuously acquire data using the buffer?

I have found (and understand) how to do the continuous data acquisition for when a user wants to click a 'Start' and 'Stop' button. That parts fine. I however have a bit of a different situation that I think falls somewhere inbetween continuous and finite acquisition.

 

I'm gonna explain this as an example:

 

We run our test equipment and we want to gather 20,000 Samples (10,000 S/s). This would obviously come from reading the Task stream. Then I want to export this data to a file - on a different thread - while the stream continues to refill the buffer.

 

I'm not sure if this makes any sense but any advice would greatly help. Thank you.

0 Kudos
Message 1 of 2
(3,128 Views)

Hi Tweed,

 

It sounds like you got the DAQ up and running, that’s good to hear. I’m not an expert on .Net but have you checked out the System.threading Namespace help article on msdn?

 

http://msdn.microsoft.com/en-us/library/system.threading.aspx

 

msdn also has some examples available to look at.

 

 

http://msdn.microsoft.com/en-us/library/system.threading.thread.aspx

 

Good luck!

Matt
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,105 Views)