12-03-2018 10:47 AM
Whenever the computer reboots or ethernet cable connecting to cDAQ-9184 is unplugged and re-plugged, my Labwidows application generates an error attempting to communicate with it apparently.
The error I experience is DAQmxCfgSampClkTiming ERROR: specified operation cannot be performed when there are no devices in the task.
The only way to get the cDAQ-9184 working is to open up the Measurement and Automation Explorer and select the cDAQ-9184 and self test it to get it connected.
How can I fix this problem so on a reboot or reconnection of the ethernet cable my Labwindows application can connect to the cDAQ-9184 without having to use MAX?
12-04-2018 02:16 PM
Hi Barney99,
What you describe as your solution is a little strange. But, to focus on the problem at hand. Do you create a Task/Virtual Channel* in your code?
It sounds like that's not the case, given the error message.
Section 3 of the following document goes over creating tasks and virtual channels, including C code:
Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
http://www.ni.com/product-documentation/2835/en/
*The difference between the two can be found in this document:
Channels and Tasks in NI-DAQmx
http://zone.ni.com/reference/en-XX/help/370689M-01/daqmxtutorial/newconceptsinnidaqmx/
You may also wish to post in the DAQ forums, since this question is more closely related to DAQ than LabWindows/CVI.