10-29-2022 12:53 PM
using NI 9178 and module Ni-9264
I was updating code that worked fine on a PCI card, to be used on CDAQ and encountered errors. Eventually its came to the following:
I copied the examples that ship with LabVIEW (voltage-on demand output.vi ) and voltage-continuous output.vi, into a one vi to duplicate the error
I am writing code to output static (on demand) voltages on some channels and continuous generation on another channel using the NI-9178 and NI-9264 output module
Note that when attached vi is run, and channels from NI-myDaq are selected (I have access to), no errors are reported and I can see the actual voltages outputted on an O'Scope.
but if I set my channels to come for the NI 9264, I get error about resources being used. It looks like the module cannot continuous-output and on demand output at the same time (of course using different channels)
<<
the error reported:
Error -201105 occurred at on demand and continuous voltage out - issues.vi
Possible reason(s):
Resource requested by this task has already been reserved by a different task with conflicting settings.
Unreserve any other tasks using this device, or change their settings to be compatible with this task.
Task Name: _unnamedTask<30>
>>
note currently I do not have actual access to the NI CDAQ module, but I am running with device simulation
note also that if the voltage-continuous output.vi, is run alone (disabling the (voltage-on demand output.vi from running), no error is reported (on the NI-cDAQ module 9264)
If it is not possible to do that with the 9264 module, where is this reported ? (note that the CDAQ system is purchased and is at the customer's site)
10-29-2022 03:48 PM
The "resource" that is reserved that you need is the sampling clock. The myDAQ, an inexpensive general purpose DAQ device designed for engineering students, has 2 1-channel D/A systems, each capable of 200 kS/s. The 9264 can do 16 channels simultaneously, at 25 kS/s. So with the 9264, you have to sample both channels continuously. Note that nothing says you have to save both channels -- you can split out the "occasional" channel and only save those data that you mean to save. Alternatively, buy another 9264 (or another myDAQ?).
Bob Schor