LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Prototype Error (LabWindows/CVI)

I developed an application 3 or 4 years ago with Labwindows/CVI 5.5 ( I do not remember what version of Nidaq I had at the time).
I have Labwindows/CVI 6.0 now and Nidaq 6.92. When I try to compile my old application I get the following errors:
Missing Prototype
This is for the following function:
nidaqAIScanOp (Channel, iNumData, dSampleRate, dMax,dMin, kNidaqGroupByChannel, &dScanRateActual, dValues);

And I also get this error:
Undeclared identifier 'kNidaqGroupByChannel'.

Does anyone know what steps I should take? I have several similar errors like this for other nidaq data acquisition functions. Thanks for the help.
0 Kudos
Message 1 of 5
(4,317 Views)
That line of code looks okay, the nidaqAIScanOp function is in the Easy I/O For DAQ Library. Make sure that you have the DAQ support for CVI installed if you can't find it.

Regards,
Ryan K.
NI
0 Kudos
Message 2 of 5
(4,317 Views)
Ryan,
When I use the Easy I/O for DAQ library there is a different function. It used to be nidaqAIScanOp, but now it is:
AISampleChannel (Device, channel, Max,Min, Sample);
This is what I'm talking about. It does the exact same thing, but has a different name. Do you think that it depends on what version of Nidaq is installed? What version do you have?
Thanks,
Scott
0 Kudos
Message 3 of 5
(4,317 Views)
Ryan,
Sorry the equivalent function call is:
AIAcquireWaveforms(device,channel,num_samples,sample_rate, max, min,actualscanrate ,GROUP_BY_CHANNEL, waveform);

The function from the previous comment replaced:
nidaqAISinglePointOp(Channel, CHANNEL_MAX,CHANNEL_MIN, &value);

This causes major headaches when I'm trying to do some simple updates.
Thanks,
Scott
0 Kudos
Message 4 of 5
(4,317 Views)
Scott,
The functions that you list (AIAcquireWaveforms, AISampleChannel) are present in my version of CVI, but are grouped under the "obsolete" section of the Easy I/O library. The functions you were originally using (the ones starting with nidaq)are found under Easy I/O->Analog Input->Easy Analog Input. Try pressing ctrl-shift-p and then typing in the name. I am running CVI 7 and DAQ 7.1. If the functions aren't showing up you might try updating your DAQ install.

Hope that helps,
Ryan
0 Kudos
Message 5 of 5
(4,317 Views)