05-18-2007 08:32 AM
05-21-2007 05:57 PM
05-21-2007 11:00 PM
05-22-2007 10:58 PM
05-23-2007 02:18 AM
05-24-2007 12:11 AM
05-24-2007 01:54 PM
06-02-2011 06:31 PM
Michael,
Was this ever fixed? You said in your last note you would tell us what the final decision was.
I just got bit by what appears to be the same issue. I changed a parameter from "/ctr0" to "dev1/ctr0" in order to make it more readable, and broke my code. Because the code looks so emminently reasonable and correct, I found the problem only after extensive effort. Wasted time, wasted time. I can imagine thousands of hours of programmers' lives being wasted by this.
This thread is four years old. I can't believe it's still an issue in NIDAQ 9.1. Can't your driver parse these strings more intelligently?
Or, is there a good reason why "/dev1/ctr0" and "dev1/ctr0" and "/ctr0" and "ctr0" should not all have the same effect?
Van
06-03-2011 02:15 PM
Hi Van,
I want to make sure we answer your question correctly. You list NIDAQ 9.1. This implies to me you are using NI DAQmx and not NI DAQmx Base. They are seperate drivers and we will need to make sure we answer your question for the appropriate driver. I will have to check what the resolution was from the other issue, but that was regarding DAQmx Base so I am not sure that will have any impact on your current request. Thank you for seeking help on the forums. Please verify you are using DAQmx and not DAQmx Base. We may need to make another product suggestion.
Michael
06-03-2011 04:24 PM
Van,
Thanks for posting. When you say you "changed a parameter from '/ctr0' to 'dev1/ctr0' " and your code broke, I am not quite sure what behavior you were experiencing. Perhaps you could post a screenshot of the problem. Were you using the correct device name as listed in Measurement & Automation Explorer?
The correct syntax for identifying physical channels can be found in the DAQmx help. In addition, physical channel controls and constants will auto-populate with the available channels on the device. The behavior I experience is that there are no errors when "Dev1/ctr0" or "/Dev1/ctr0" are used, but "Error -200220: Device Identifier is invalid" is thrown when "ctr0" or "/ctr0" are used. Does this help?
Regards,
Joe S.