Hello, I have a problem with SCAN_Start in an C program. Here is what I am doing:
I have a DLL written im Microsoft C 6.0. This DLL does some measurement and calculation.
I am using NIDAQ 7.0, traditional mode. The DLL is called by an LabVIEW VI (Labview version 7.0).
The Hardware I am using is a DAQ-Card 6062E (but I also get the error with an E-Serie 6024 PCI on an other computer).
I set up my measurement with (I deleted the error handling here)
DAQ_DB_Config(DeviceNummer, iDBmodeON);
SCAN_Setup (DeviceNummer, AnalogChannelsInUse, iChannelList, iGainList);
SCAN_Start(DeviceNummer, pMonBuffer, LenMonBuffer, iSampTB, uSampInt, iScanTB, uScanInt );
I have only 4 channels defined in iChannelLis
t and using a sample rate of 200 Hz.
The buffer "pMonBuffer" was createtd with malloc and is 16000 Bytes long.
The buffer is valid and I check all other input values, tehy are correct to me.
The call of SCAN_Start returns error -10447, which means that "The operating system is unable to grant a page lock".
I do not have many aplications open, and I have 256 MB of memory in my computer (P4, 1.8Ghz)
The operating system in Windows 2000 prof. with all actual patches.
What can this bee?
Thank you for your help
Stephan