03-19-2007 07:30 AM
03-19-2007 11:16 AM
Well, one side connects via a real serial port, so you don't need a virtual port.
The other side has no serial cable connection so you need a virtual port to simulate one. Once you install a virtual port and configure it, your application will talk to the virtual port, which in turn will contact the AirborneDirect to complete the serial connection.
[PC1--Real serial Port] --- (serial cable) --- [AirBorneDirect] ........... (wireless) .......... [VIrtual Serial Port--PC2]
To the applications, it looks the same as:
[PC1--Serial Port] --- (serial cable) --- [Serial Port--PC2]
Just write your LabVIEW program as if the two sides are connected directly with a serial cable. LabVIEW does not care how the serial connection is handled.
03-27-2007 04:11 PM
04-12-2007 06:21 AM
04-12-2007 06:38 AM - edited 04-12-2007 06:38 AM
Message Edited by altenbach on 04-12-2007 04:38 AM
04-12-2007 06:43 AM
04-12-2007 08:24 AM
Dear Altenbach,
My question is how I'm going to convert the binary 8-bits to the ASCII string in the serial.Vi.
The display it into waveform.
Regards,
Hussin
04-12-2007 08:52 AM - edited 04-12-2007 08:52 AM
That makes no sense. You can't display strings in a graph so why would you want to convert binary to a string? To display data in a graph, you need it in numeric format. So, if what you really want to do is convert a hex string like 'BE' to a numeric, use the typecast or String to Byte Array. If you have a string such as "8.23", use the Scan From String or Fract/Exp String to Number.
Message Edited by Dennis Knutson on 04-12-2007 07:53 AM
04-12-2007 10:12 AM
Hi Dennis,
Can you check my program.
It is the correct way to do the conversion in the this serial program?
Regards,
Hussin
04-12-2007 10:30 AM - edited 04-12-2007 10:30 AM
@MF Hussin wrote:
It is the correct way to do the conversion in the this serial program?
How long is your string? What does it represent? You cannot just ramdonly throw operations at it without knowing what you have and what you want.
Can you include a typical output string from the serial read operation?
Message Edited by altenbach on 04-12-2007 08:32 AM