Error -200040 Using NI-DAQmx Counter and Trigger Input With USB-6009

Updated Apr 26, 2023

Reported In


  • USB-6009


  • NI-DAQmx

Issue Details

When I tried to measure counter input and use trigger input at the same time with USB-6009, the following error occurred. 
I am using PFI0 for counter input measurement.
How can I fix this problem? 

Error -200040 occurred at Test Panel.
Possible Reason(s):

Source terminal to be routed could not found on the device. 

Make sure the terminal name is valid for the specified device. 
Refer to Measurement & Automation Explorer for valid terminal names. 



You only can use either Trigger input or counter input. Therefore you need to choose one of the measurement to apply to your system. 
You can see this information at NI USB-6008/6009 User Guide  as below. 

Additional Information

You also can check if the terminal name is correct. The terminal name of your LabvIEW code should be matched to the terminal name in NI-MAX(Measurement & Automation)