12-13-2023 01:43 PM
I am working on a routine to move a detector attached to a two-axis stepper motor from VELMEX. The aim is to have this move my detector in certain steps in order to calibrate it for a scan. Previously, the calibration was done outside of this VI, but I would like to integrate this into one self-contained item.
The specific motor can be controlled via the command line, and I have used the System Exec VI to set this up. I want to send the command, say,
echo F,C,I1M400,R > COM3
which moves motor 1 down 400 steps. The step size can be changed by the user in a control in the VI. The goal, in short, is to press the button and have the motor move.
I've attempted to do this using case structures, but the motor does not respond. If I can figure it out for the downward direction, the others can follow.
I have attached some screenshots of the VI (written in LabView 2018) that I want to use to send the "down" command. LabView is still a relatively new tool for me, and the tutorials have gotten me started, but I think I may be overlooking some things.
12-13-2023 02:04 PM
I would imagine that the vendor supplied device driver would demonstrate how to correctly use VISA to communicate with the controller over the serial port