LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ascii labview

Hello,
       I'm using a Optimal Engineering System (OES) motor that I control through a serial port (RS232).  When I use the accompaning software, I can control the motor through the GUI, so I know the connection is fine.

However, in my VI, when I try to use ASCII commands they don't seem to do anything. When I run the VI, it seems to just run right through, and reset the motor (which is indicated by  flashing LED), without excuting the code at all.

I've hit a wall and am wondering if I'm perhaps missing something obvious.  I've attached my VI, and if you have any ideas, it would be greatly appreciated.

thanks! 🙂
veritas

Download All
0 Kudos
Message 1 of 3
(3,103 Views)
Are you sure those commands are supposed to be sent out like that? If the motor controller is supposed to accept several commands at once, what is the proper separation character(s) between commands? Entering the strings like that in a string control will send out a linefeed character at the end of each line. Does the documentation say this is what you're supposed to do? Do you have the correct termination to indicate the end of a command sequence?
0 Kudos
Message 2 of 3
(3,081 Views)
so it seems that I did need to make distinct inputs, not in a continuous string.  But not becuase of a syntax error, but because I needed a time delay of 10ms between each string line.


thank you!
veritas

0 Kudos
Message 3 of 3
(3,042 Views)