High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

VB multiple record/channel acquisition for 5112

I am trying to digitize multiple records for channels 0 and 1 of my NI 5112 PCI card. I am looking for code examples. I want to use the FETCH command (not the READ command) so that I can control other equipment while acquisition is occuring. (The READ command hogs the PC processor until acquisition and download is complete.) I have NiScope 2.0, so there are no problems with multiple record acquisition as found in prior releases. The shipped examples are pretty limited and do not include both multiple channel and multiple record acquisition. Can anyone out there help?
0 Kudos
Message 1 of 2
(5,020 Views)
I agree the shipping examples are limited in that you can't sample more than one channel. You will need to merge two examples. The Configured Acquisition example shows you how to sample multiple channels. Copy the code neccesary into the multiple records example. Also if you look in the function reference help for the fetch function it shows how to handle multiple records and channels. Here is a snippet of the help file (based on C code, which you can adapt into VB):

multiple record, 2 channels

struct niScope_wfmInfo wfmInfoArray[10]; // 5 records for 2 channels

ViReal64 wfm[10000]; // 10000 points= 1000 points per record *
// 5 records * 2 channels

error = niScope_Fetch (vi, "0,1", 2.0, 1000, wfm, wfmInfoArray);



Good luck,
Mik
e
0 Kudos
Message 2 of 2
(5,020 Views)