LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems Sending Hex Zero through serial port

Hello,
 
I've been having problems sending Hex commands to a device through my COM1 port.  I finally used hyperterminal to see exactly what my LabVIEW program was sending to the port.  It looks like everything is being sent except for Hex 00.  My device expects to see this value, so this is why it's been failing.  Does anyone know what is going wrong with this? 
 
I use LabVIEW 7.1 with Microsoft Windows 2000. 
 
Thanks for the help!
 
Kate

Message Edited by klmartin on 09-06-2006 09:47 AM

0 Kudos
Message 1 of 5
(3,197 Views)
Create a constant numeric U8 with value of 0.  Type Cast into a string.  Send this string over the Com port.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 5
(3,182 Views)

I'm sorry, I don't exactly follow what you mean.  I created a U8 constant with a value of zero.  What does this connect to?  I use the VISA Write function and the write buffer requires a string type.  Is this where you connect the 'cast' string? 

thanks

0 Kudos
Message 3 of 5
(3,165 Views)
In LV 8.2, look at the functions palette - Numeric - Data Manipulation - Type Cast.  Choose this function and place it on block diagram.  Wire U8 into Type Cast.  Since the default type is string, the output from Type Cast will be a string.  Wire this into VISA Write.
 

Message Edited by tbob on 09-06-2006 01:59 PM

- tbob

Inventor of the WORM Global
Message 4 of 5
(3,154 Views)

And two other ways to skin the same cat.

Message Edited by Dennis Knutson on 09-06-2006 02:22 PM

0 Kudos
Message 5 of 5
(3,146 Views)