取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
11 条消息(共 28 条)
1,918 次查看

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.

12 条消息(共 28 条)
1,905 次查看
Dear Altenbach,

Just want to say thanks to you for your help.

Really, appreciate it.

Cheers!!!
0 项奖励
13 条消息(共 28 条)
1,876 次查看
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 项奖励
14 条消息(共 28 条)
1,851 次查看
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 项奖励
15 条消息(共 28 条)
1,848 次查看
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 项奖励
16 条消息(共 28 条)
1,844 次查看

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 项奖励
17 条消息(共 28 条)
1,839 次查看

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 项奖励
18 条消息(共 28 条)
1,834 次查看

Hi Dennis,

Can you check my program.

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

Regards,

Hussin

0 项奖励
19 条消息(共 28 条)
1,822 次查看


@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 项奖励
20 条消息(共 28 条)
1,821 次查看