smaier Posted April 27, 2017 Share Posted April 27, 2017 Hello; I have DAQFactiory configured and running with 3 RS232 channels from configured devices. I am now working with components of a page. The charting seems to be pretty straightforward but I am unsure how to work with buttons sending a command. Right now I have a configured device called "Servo" that communicates on COM3. In the monitor window I can send commands with no issue (X\013 will stop the motor, RP\013 will return the motor's position, and so forth). Under a button's properties it looks like Quick Sequence would be where code to be executed would be entered. What would the code look like if I wanted to send the "X\013" string to the servo motor? Thank you! P.S. While polling is active, in the far lower right hand corner of the DAQFactory window I sometimes see a yellow triangle with an exclamation point next to the word "Run". Should I be worried? Elsewhere that's not seen as a positive indicator. Link to comment Share on other sites More sharing options...
smaier Posted April 28, 2017 Author Share Posted April 28, 2017 With some searching I think I figured it out. In my case I used: device.Servo.Write("RUN"+chr(13)) Would this be the proper way to do it? Link to comment Share on other sites More sharing options...
AzeoTech Posted April 28, 2017 Share Posted April 28, 2017 From outside a user protocol, yes, that would send the word RUN and a carriage return to the Servo device. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.