08-16-2019 01:46 AM
When I run the code, always appear error- 200524.
I use USB- 6343 to match my code.
I have 8 digital output need to use.
I don't know if the digital output setting is wrong. I need to use the digital output to control my multiplexer, but it always jumps out of error.
Where is the clear digital pin setting about USB-6343 in Labview code?
Thank you.
Solved! Go to Solution.
08-16-2019 02:08 AM
Hi Just,
why don't you read that error message?
There are two values in the appended array, but your DO task is configured for just one port!
(DAQmxWrite expects an array with just one element.)
When you want to combine those bits from "D0-3" and "D8-11" then you should use some bit shifting in your code, like:
output := "D8-11" * 16 + "D0-3"
Why are there all those coercion dots in your code?
Why don't you create U16 FP elements when your DAQmx functions expect/output them?