01-18-2022 04:09 PM - edited 01-18-2022 04:15 PM
I am using USB-TB-AI module. Please focus on the digital output in the block diagram. I have two loops. The top loop is basically configuration.
The bottom one is my main code. So when I'm trying to do is when I turn ON RELAY 1, I want RELAY 2 to be OFF automatically. So when I turn RELAY 2 ON, I want RELAY 1 to be OFF automatically. I tried using case structure. It is not working for me. Please I need your help. (See attached VI. Please focus on Digital output or DO (D4-D5).
I am able to send signals, but I am not getting the expected results. What am I doing wrong? Please don't just do it for me? Just give me a brief explanation of what I am wrong that way I will not repeat the same mistake.
Note: Focus on the "Relay Test Main test" VI. The other VIs are just type def just in case you get a broken VI. For the relays to not have broken VI, save all these VIs in the same folder.
01-18-2022 05:08 PM