11-06-2020 11:58 AM
I'm trying to build an API for the Pololu Tic T500 ( https://www.pololu.com/docs/0J71 ) Stepper motor controller and am having an issue getting the system to respond to LabVIEW controls even though it does work on controls issued through the command prompt.
For Example: if I
The system homes to the forward position.
However, when I try to do the same in LabVIEW I get:
but without the motor moving.
What is the difference between the two methods, and how do I get the LabVIEW to execute the same as manually entering the value in the command prompt?
11-06-2020 12:20 PM
You need quotation marks around the ticcmd argument. Make your string ticcmd "--home fwd".
Bob Schor
11-06-2020 02:15 PM
11-06-2020 03:33 PM
Use cmd /c.
11-06-2020 03:38 PM
11-06-2020 03:40 PM
11-06-2020 03:44 PM
11-06-2020 04:02 PM
Check the 'standard error' output
11-06-2020 04:12 PM
What output do you expect from this command?
Try putting the whole command in the command line string (with and without quotes as Bob mentioned).
cmd /c ticcmd --home fwd
11-06-2020 05:03 PM
Try without the EOL constant. I wouldn’t have thought it was necessary.
Also, from a quick google it looks like ticcmd adds itself to the system path variable. Try using the path the the ticcmd.exe file rather than just ticcmd. I have never tried relying on system path variables with system exec...not 100% it will work.