jaresing Posted November 5, 2019 Share Posted November 5, 2019 I am trying to send this command over a serial channel using a ddp protocol Set_rack(variable1,variable2) This command requires (), and I cant figure out how to write the serial port For the command "position=variable,variable2" I would go function position(variable,variable2) private string out purge() out = format("position=%d-%d",variable,variable2) write(out + chr(13)) What do I do for the parentheses? Thanks Quote Link to comment Share on other sites More sharing options...
jaresing Posted November 5, 2019 Author Share Posted November 5, 2019 Got it, my error was the hyphen instead of the comma out = format(" Set_rack(%d,%d)",variable,variable2) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.