Reading Inputs Values From VXM on Labview

60 views
Skip to first unread message

mdelf...@gmail.com

unread,
Jul 24, 2014, 11:37:31 AM7/24/14
to velmex-...@googlegroups.com
So I have a VXM hooked up a program in Labview. I have a couple sensors hooked up through the I/O Inputs and want to continually take a reading from this. I know it comes through high or low and when sending the ~ command I get a response in ASCII, but the data comes through as two 8-bit strings so I can't convert the strings into something useful. My question is how can I continually take the readings of my inputs and convert the data into something I can use because the inputs are going to represent a certain state to tell the motor to either stop or continue.

Cliff

unread,
Jul 24, 2014, 6:23:28 PM7/24/14
to velmex-...@googlegroups.com
As seen on Users Manual P.33 the Ascii character returned needs to be converted to its Ascii value (like COSMOS does when you sent the tilde from the terminal and you see the character and the binary value)

One problem that bothers me is that you mentioned two 8-bit strings?
The VXM only returns one 8-bit string (unless you are seeing 2 responses? or maybe likely cause I do not know Labview well maybe its putting it into a UniCode string (in which case I think the 1st byte is a NULL and the second byte is the reply????)

Another thing to keep in mind is are you using 32-bit or 64-bit Labview?


On 7/24/2014 11:37 AM, mdelf...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages