LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ANSI C Error 200077

Hi All,
I please someone help me. I have a measurnig card NI USB 6216. I try to do a measuring with LabWindows/CVI 6.0 (I know that, LabWindows doesnt work corectly with this card, because of DAQmx, but I tried to do it.)

I do a program only with ANSI C with LabWindows, install updates and files which are nessesairy for right work of my card. I do what i find on web, but I always get this error:

Mesurments: Requested value is not a supported value for this property.
Property: DAQmx_SamQuant_SamoOerChan
You Have requestd: 54661206962601994
Valid Vluaes Begin with: 2
Valid Values End with 8589934590
Tak name: Meas
Status Code: -2000777


CODE:
    TaskHandle taskHandle;    
    float64 data[1000];         
    int32 read;                   
    int32    error = 0;
    char     errBuff[2048] = {'\0'};
   
    switch (event)
        {
        case EVENT_COMMIT:
 DAQmxErrChk(DAQmxCreateTask("Meas",&taskHandle));
 DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-2.0,2.0,DAQmx_Val_Volts,NULL));
 DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandle,"",10,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,10));     
 DAQmxErrChk(DAQmxCfgDigEdgeStartTrig(taskHandle, "PFI0", DAQmx_Val_Rising));
DAQmxErrChk(DAQmxStartTask(taskHandle));   -----after that appears a fault.....        DAQmxErrChk(DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,&read,NULL));


Can someone help me ? Thank you so much.
0 Kudos
Message 1 of 2
(3,064 Views)
I've done it.

Result: Don't use ANSI C (Labwindows 6.0) with card NI USB-6216. Labwindows/CVI cannot work with format type int64 and uint64. Thats the problem, becaouse properthy DAQmx_SamQuant_SamoOerChan is in format int64. So, i installed Labwindows/CVI evaluation version 7.0 and now it works.
0 Kudos
Message 2 of 2
(3,024 Views)