05-20-2019 06:13 PM
This may be an odd issue, but I have a Labwindows application that runs with the cDAQ-9174 over USB. It works on a 2 year old Dell Inspiron laptop (Windows 10) and a Dell OptiPlex desktop (also Windows 10). But it does not work on a new Lenovo Thinkpad T480 (Windows 10). If I run NI MAX on the T480 it self tests OK. But when I run the Labwindows application on the Thinkpad T480 it executes function DAQmxCreateAIVoltageChan without errors but generates an error when it reaches the DAQmxCfgSampClkTiming (error = Specified operation cannot be performed when there are no devices in the task).
Again the Labwindows application runs with NO errors on the older dell computers.
Any ideas?
05-22-2019 04:06 PM
Hi barney99,
What is the return value of DAQmxCreateAIVoltageChan? My guess is that the channel is not actually being created, because the error you're getting is saying that there's not a channel for DAQmx to set the timing on. If so, the return value from trying to create the channel would tell us more about why it's not being created.
For further advice, could you also post the portion of your code that is creating the task?
Thanks,