Hello,
I am using an 8-channel DO fieldpoint to control 4 stepper motors, which are triggered by inputting 5V at certain intervals. I am creating a subVI first, so I can eventually use 1 such subVI to control 1 motor in the while loop of my mainVI. Im doing the subVI as follows:
Step 1: initialize a 1-D array (value=0 and length=8);
Step 2: for the channel connected with the motor, replace the its corresponding value by 1;
Step 3: write the output array to the field point;
Step 4: replace the '1' (in step 2) back to '0'.
Now I realize that this subVI might work for 1 motor, but it might not work if I use several subVIs in my mainVI for multiple motor control (since every time each subVI sends '1' to its corresponding channel, but '0' to others, which overwirte the other subVIs.
So I think what I really need is a subVI that can control ONE channel independently without interfering other channels' values..Any solution?