Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 653

200077 error when using DAQmxCfgDigEdgeStartTrig

$
0
0

Hello!

I am using a 6052E card with DAQmx.

When I add the DAQmxCfgDigEdgeStartTrig function to my code to start data collection on a start trigger, I get the error:

-200077
Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.

Here is the code block that I am using this function in:

	char startTrigger[256]="Dev1/PFI0";
	int startEdge=0;//rising edge

	DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
	DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0, Dev1/ai1","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
	DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle, startTrigger, startEdge));
	DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,NULL,nFrequency,DAQmx_Val_Rising,DAQmx_Val_ContSamps, (m_nBufferSize*2)));
	DAQmxErrChk (DAQmxStartTask(taskHandle));

Any ideas what I may be doing wrong?

 

Thanks!


Viewing all articles
Browse latest Browse all 653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>