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.