LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to hardware address of Com2

I just logged the serial communication between an extern device with the com2 interface. Now what I want to do is, to write the recorded data to the Adress of the Com2, so in other words I want to simulate that device which is not currently connected!

I found some vi´s InPort and OutPort but I am not certain if I will crash my system writing to a hardware address.

Thank you for your suggestions!
0 Kudos
Message 1 of 4
(2,886 Views)
Just connect com1 and com2 with null-modem cable and send your saved data to com1 in a separate VISA session. Forget about inport for this goal. Null modem cable is much cheeper than...
Sergey
Message 2 of 4
(2,886 Views)
I agree with SERGEY. Simply using inport and outport will bypass an important
handshaking layer that will give you problems unless you do a lot of extra
work.

SERGEY wrote:
>Just connect com1 and com2 with null-modem cable and send your saved>data
to com1 in a separate VISA session. Forget about inport for this>goal. Null
modem cable is much cheeper than...
0 Kudos
Message 3 of 4
(2,886 Views)
On Tue, 20 Feb 2001 08:16:52 -0800 (PST), "Mr. Rossi"
wrote:

>I just logged the serial communication between an extern device with
>the com2 interface. Now what I want to do is, to write the recorded
>data to the Adress of the Com2, so in other words I want to simulate
>that device which is not currently connected!
>
>I found some vi=B4s InPort and OutPort but I am not certain if I will
>crash my system writing to a hardware address.

The Hardware normally used for a COM port use the same adress for send
and receive. A write will send data out on TX and a read will read
what data came in on RX. This means that your idea will not work.

You already got some advice about Null modem cables.

--
Rolf
0 Kudos
Message 4 of 4
(2,886 Views)