07-03-2024 03:11 PM
Hi everyone,
I am trying to measure voltage and current with the NI DAQ 9189 module. I have a setup that uses the NI DAQ 9227 for voltage which works but when I try to add current measurement to the program using the 9189 module I get an error that says "Error -201087 occurred" with the possible reasons listed as:
"Task contains physical channels on one or more devices that require you to specify the Sample Clock rate. Use the Sample Clock Timing function/VI to specify a Sample Clock rate. You cannot specify a Sample Clock rate if Mode is set to On Demand."
I am not sure what the problem is but I suspect it has to do with my common sampling clock which I use for both the voltage and the current DAQs.
Does anyone know how to fix this issue? Thanks
07-03-2024 07:16 PM
You didn't use any sample clock. The software time is not the hardware DAQmx sample clock.
Go to Search DAQmx Examples and refer to Voltage Input - Continuous Acquisition