From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SCAN_Start & "Real Time Acquisition"

Hi there,
I'm sorry for my poor English, but it avoid me to correctly understand
the way the SCAN_Start function works.
I would like to draw some acquired signals from a 6023E
analogic/numeric card as soon as the values have been read
(each group of point have to be drawned at once).
I have 5000 points to acquire, at a scanning frequency of 1KHz. To
realize this, I currently use the following functions:

iStatus = DAQ_Rate(1000, 0, &iSampTB, &uSampInt);
iStatus = DAQ_Rate(10, 0, &iScanTB, &uScanInt);

iStatus = SCAN_Setup(g_Param.iPCI_6023E,g_shNbChannels,shChannelList,
shGainList);

iStatus = SCAN_Start(g_Param.iPCI_6023E, shData, 5000*g_shNbChannels,
iSampTB, uSampInt,iScanTB, uScanInt);

while ((usDAQStopped != 1) && (iStatus == 0))

{
iStatus = DAQ_Check(g_Param.iPCI_6023E, &usDAQStopped, &ulNbEchant);

/*Here, I just convert the values into Votages ...*/

}

I wonder if someone could explain me how to correctly use these
functions, so as I can realize a "real time display" of
these signals ...
My big problem is that I'm unable to configure the 6023E card so as it
scans my signals at the correct scanning frequancy.
Thanks a lot for your sooner help.

MANU
0 Kudos
Message 1 of 2
(2,547 Views)
Manu,

I am no DAQ expert but I wanted to let you know that the latest version of CVI contains a newer daq architecture called DAQmx that will make your DAQ programming in CVI a bliss. You can go to http://www.ni.com/cvi to download the evaluation version of CVI 7.0 which will allow you to try the full development system (minus some features, of course) for 30 days.
With CVI 7.0, you can use the latest NI-DAQ driver also version 7.0. You can download NI-DAQ 7 from here:

http://digital.ni.com/softlib.nsf/websearch/7618F6183CF597C386256D2B0075973C?opendocument

NI-DAQ 7.0 provides the DAQ Assistant, which allows you to configure code to communicate with your 6023E card and generate code in CVI to perform triggering, counter/timer and read/write operations.


Also, you can check out the following document for a tour of the new CVI environment and the DAQ Assistant,
"LabWindows/CVI 7.0: Enhanced Hardware Integration and Efficient Development for sophisticated applications":
http://zone.ni.com/devzone/conceptd.nsf/webmain/7DA677AE9114AA1886256D650070709B?opendocument


Best Regards,
Azucena
0 Kudos
Message 2 of 2
(2,547 Views)