ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
06-14-2009 11:46 AM
Hi!
This may be a stupid question.
But i try to ask it, however...
I'm trying to communicate with a motor throu rs-232.
The manual says that the commands should have the following form: (an example)
SXWT <0H><0H><0H><32H> <88H><cr>
Where <0H><0H><0H><32H> is the data in a four byte long integer. <88H> is a checksum, that is easy to calculate.
My problem is how do I send the hex. data in a string(combined with the ascii-string in the beginning)?
06-14-2009 11:54 AM
06-14-2009 12:01 PM - edited 06-14-2009 12:01 PM
Hard to say because it depends on whether the instrument wants that information as ASCII characters or as raw hex values. It could be one of these:
or something else. What does the manual say?
06-14-2009 12:15 PM