Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual serial port control in out COM1

Hi,
 
I would like to create a virtual serial port to intercept all the communication between an activeX control in labview and a PIC16c770 µcontroller. The activeX control works well when the 16c770 is connected trough a typical db9 cable. The problem arise when I use an IR transceiver to read data from the 16c770. Indeed, the activeX control use an "echo" with the PIC16c770 . Because the IR transceiver can't transmit and receive at the same time, the "echo" can't be sent and the activeX control give me an error. My goal is to send the "echo" to the activeX control via a virtual port and restrain the communication comming from the 16c770 until the device send acquisitioned data. I really don't know how to do that. Can anybody help me ???
 
"echo" mean this kind of communication (in HEX)
 
TX: [00] [43]
RX: [43]
TX: [53]
RX: [53] [30] [30] ...
 
Thank you
 
Francois
 
 
0 Kudos
Message 1 of 5
(4,211 Views)
Hi Francois,

At this time LabVIEW doesn't support communicating with Virtual Ports.

Does that IR port show up as a serial port in MAX? If so, you could get around using that Active X control and just use VISA Writes and Reads. This would alleviate this problem for you.

Let me know if you need any more assistance with this. I'll do my best to help out.

Regards,
Matt S.



LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 2 of 5
(4,189 Views)

Hi.

Do a google search for "Bill Serial Monitor".  It puts a software "T" piece in the system, one side of the T connects to the hardware com port (any) the other is presented to the rest of the system as a Virtual Com Port, that the application (Visa) will use.

The other part of the "T" is the monitor that shows all the comings and goings intercepted, you can save them to a file too.

Dunno if it'll work with NiVisa, but it works OK with just about any other software that will use a true "Com" port, even Win16 apps (Terminal etc)

Oh yes, it's 100% free, the author is contactable, and listens to suggestions etc..

Have Fun.

Dave B.

 

 

OK... Who let the smoke out?
0 Kudos
Message 3 of 5
(4,159 Views)
Thank you Dave,

Bill Serial Monitor is a very nice tool!!!!

Francois

0 Kudos
Message 4 of 5
(4,135 Views)
Hi Francois.
 
Yes, isn't it just!
 
It's got me out of more than one hole in the recent past.
 
As before, the author is very aproachable, so if there is somthing that you'd like, and may be of benefit to others, just ask him.
 
Glad to be of help.
 
Dave.
OK... Who let the smoke out?
0 Kudos
Message 5 of 5
(4,123 Views)