High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Record Fetch Stream to Disk in C#.NET?

Solved!
Go to solution

Hi everyone,

 

I am trying to fetch data and stream to disk continuously with my 5114 digitizer using multirecord acquisition.  I found a great example https://decibel.ni.com/content/docs/DOC-3441 that seems to do exactly that, using queues.  I am wondering if this same example might be available somewhere in C# (any version).  If so, could someone point me to it?

 

Or, if there is some kind of basic example somewhere of how to do producer-consumer queues in C#, that would also be really helpful.  (We are not running in LabView partly because we need to make custom changes to our data format as needed). 

 

Thanks for any thoughts,

Penny

 

 

0 Kudos
Message 1 of 4
(6,086 Views)
Solution
Accepted by topic author Penny

Penny,

 

Do you see the .NET examples that are under Start>>All Programs>>National Instruments>>NI-SCOPE>>Examples>>.NET ## Languages Support (## is replaced by the .NET version number)? In this folder there are a couple StreamToDisk examples. You should be able to modify your NI-SCOPE driver install to include support for .NET examples. You may also find the .NET Class Library downloads helpful if you don't already have it.

 

http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:du,n8:3465.40.173.930...

Robert B
RF Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(6,079 Views)

Hi Robert,

Thanks, yes I have all of those NI-Scope C# examples.  I will play around with them.

Best regards,

Penny

 

0 Kudos
Message 3 of 4
(6,069 Views)

Hi Robert,

Now that I look more closely at the NI-Scope C#.NET example MulipleRecordFetchMoreThanAvailableMemory.2010, I see that this structure is already in place.  Thanks again.

-Penny

 

0 Kudos
Message 4 of 4
(6,063 Views)