05-06-2022 05:45 AM
Hello,
I can connect the case structure to a single channel of digital output. Then I want to control two digital output channels at the same time, I connected the case structure to multiple channels, but it told me I connected two different types.
My question is: How can I connect the case structure to multiple channels?
Thanks a lot.
05-06-2022 09:52 AM
(It is difficult to debug pictures. we prefer to see the actual VI.)
Obviously, unders some settings, your IO wants an array of booleans, but your case structure outputs a scalar. Round peg, square hole!
You need to decide what you want and create the appropriate output. we don't know what that would be based on a single comparison. Also be aware that your code seems dangerous. Wiring a DBL to a case structure rounds to the nearest integer, so if your signal is betweeen about -0.5 to 0.5, it is considered zero. What's in the other case(s)? Why is there a sequence structure? Why are the wires such a mess?
05-08-2022 05:24 AM
Dear Sir,
Please check the attached file.
I want to control line0:2 by the case structure at the same time. How to solve this problem?
Thanks a lot.
05-08-2022 11:56 AM
Instead of asking how to connect incompatible datatypes, take a step back and tell us what the program is supposed to do: