LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a dial or slider to set number to be sent in a text string to a serial device

How do I use a dial or slider to set  number to be sent in a text string to a serial device?  I'm currently using the String to Write window and VISA Write to send the following string to a RS232 serial device (stepper motor controller).  /A15000R or /A3600R or /A5620R, etc.  I'd like to set up a dial to change the value of the number portion of the string.  It is this number which corresponds to the motor position.  Any suggestions on how to do this?
 
Regards,
Chris
 
 
 
 
0 Kudos
Message 1 of 4
(1,507 Views)
Step 1 - convert the number to a decimal string
Step 2 - concatenate with the /A prefix and the B suffix
Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
0 Kudos
Message 2 of 4
(1,503 Views)
Being new to Labview I'm not really sure what I'm doing yet.  Should "Format into String" be used? It's not working however am I on the right track as shown in the attached screen shot?  ALso, how do I get the final "R" to appear at the end of the string? 
0 Kudos
Message 3 of 4
(1,501 Views)

Chilly,

Thank you that answers my question.  Much appreciated.

Chris

0 Kudos
Message 4 of 4
(1,499 Views)