LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp problem

Dear Altenbach,
 
I still confuse about the virtual com.
Should we insatall at the client or the server?
you mention doen't need the TCP, if that the case what should I use to dispaly my waveform?
 
Thanks
0 Kudos
Message 11 of 28
(1,744 Views)

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.

Message 12 of 28
(1,731 Views)
Dear Altenbach,

Just want to say thanks to you for your help.

Really, appreciate it.

Cheers!!!
0 Kudos
Message 13 of 28
(1,702 Views)
Hi Altenbach,

I just want to ask how I'm going to convert 8-byte binary from PIC (microcontroller) to ASCII at the serial.Vi?
Can you advise me on this?

Really need your help.

Regards,
Hussin
0 Kudos
Message 14 of 28
(1,677 Views)
Your question is ambiguous. What do you mean by "ASCII"? A formatted string?

Message Edited by altenbach on 04-12-2007 04:38 AM

0 Kudos
Message 15 of 28
(1,674 Views)
Hello Hussin,
 
I believe you're asking this question in another thread with another of NI's engineers. Please refer to this thread.
 
Cheers
 
Tom
NIUK
0 Kudos
Message 16 of 28
(1,670 Views)

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

0 Kudos
Message 17 of 28
(1,665 Views)

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

0 Kudos
Message 18 of 28
(1,660 Views)

Hi Dennis,

Can you check my program.

It is the correct way to do the conversion in the this serial program?

Regards,

Hussin

0 Kudos
Message 19 of 28
(1,648 Views)


@MF Hussin wrote:
It is the correct way to do the conversion in the this serial program?

Your program still does not make any sense:
  1. concatenating your string with an empty string just produces your original string. Why do it?
  2. Why would you call a string size indicator "String to be Unflattened". That is very confusing because the size is a number and not a string.
  3. You get a coercion after the typecase because your type constant is I32 instead of U8. Use the right representation for the type input! This is very important!
  4. We cannot guess what the right type is supposed to be. Could be anything...

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

0 Kudos
Message 20 of 28
(1,647 Views)