05-29-2019 09:26 AM
Hi guys i've been testing a VI program that runs 2 stepper motor in 2 mods ,automatic mode and manual mode but the problem is that my program runs only on highlight mode ,i'll join my vi program and my arduino program.
05-29-2019 09:58 AM
Your program will keep sending one character every 5 ms until you toggle the Start Program pushbutton to false. Do you really want to do this?
Since only one of the options (between clockwise, anti-clockwise, etc.) will be active, you may want to use a radio button instead of a pushbutton.
This will let you get rid of all those useless local variables. Select the right character according to the radio button value, then wire it directly to the VISA Write. In your current program, if you activate more than one boolean, you don't know what's the actual command that will be sent, since the indcator Executed commands will be written multiple times in a random order.
05-30-2019 06:25 AM
i tried using radio button but still got the same problem which that my VI program only runs on highlight mode and it takes too much time between clicking ON/OF in the radio button on my VI and seeing my stepper motors runs