Why Does DAQmxCfgDigEdgeRefTrig() Return error -200077? Primary Software: LabWindows/CVI Development Systems>>Base PackagePrimary Software Version: 7.1 Primary Software Fixed Version: N/A Secondary Software: N/A Hardware: Multifunction DAQ (MIO)>>Basic>>PCI-6014
Problem: I am using the C platform and trying to implement a reference trigger. I am using the DAQmxCfgDigEdgeRefTrig() function for this purpose. My program compiles correctly but when it executes this configuration statement, it returns an error of -200077. What am I doing wrong and how can I avoid this? Solution: Error -200077 occurs when you try to perform an operation that is not supported on a particular device. This is very common with C development environments as the function parameters may change depending on the DAQ card that you are using. Some of the possible things that one can go wrong with would be the way the ports are being configured or if one is using an invalid port. How to resolve it: ----------------------------- The DAQmxCfgDigEdgeRefTrig() function takes in four parameters:
If you are calling the DAQmxCfgDigEdgeRefTrig() after creating the task, as it would be ideally done, then the error cannot occur at the taskHandle -- if the error was in that parameter an exception would have occured when you created the task. The other three parameters are prone to user error: 1. triggerSource must point to a legitimate pin on the DAQ card. Examples for this are "/Dev1/PFI0", "/Dev1/PFI8" etc Check to make sure that this string is a valid pin on the DAQ card. For more information on individual cards, refer to the respective manuals. 2. triggerEdge must be a valid Edge. The DAQmx standard designates two possible values for this parameter:
Make sure that the value being passed to the function is one of these two paramters. 3. pretriggerSamples is the number of samples the card must acquire before the trigger is received. The DAQ cards always acquire two samples after the trigger is received and for the trigger to be designated a reference trigger, the number of pretriggerSamples must be atleast 2 or more. Setting these parameters as shown above will resolve the issue. Related Links: Common NI-DAQmx Error Codes and Solutions: Codes -200000 to -200299 and -50103 Common NI-DAQmx Error Codes and Solutions: Codes -200300 to -200999 Attachments:
Report Date: 08/31/2004 Last Updated: 02/05/2007 Document ID: 3CUF0E3F |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
