Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control the signals of pins 4 and 7 of a DB-9 serial port of PC?

Hi,

 

I want to interface with a sensor using serial port of my PC. The pin configuration of the sensor cable connectors is as follwos:

 

PC Side                               Sensor Side

=====                              ========

 

1 Signal detect                   

2 RxD  <-------------------- 5 Output data

3 TxD   -------------------> 2 Not used

4 DTE ready --------------> 1 Action

5 Signal ground ----------    3 Signal ground

6 DCE ready                        6 Not connected 

7 RTS   -------------------> 7 Mode

8 CTS

9 Ring

 

The problem is that the sensor does not receive our transmitted bytes. It only transmits towards us. All the triggering works as under.

Mode of the sensor is configured by a signal sent to its "Mode" pin. The sensor sends the data only when it gets a signal at its "Action" pin. Thus, how can I send the command signals through "RTS" and "DTE Ready" pins of my PC in asynchronous mode towards the corresponding pins of the sensor connector?

 

Please, reply soon.

Thanks and regrads

Javed

 

 

 

0 Kudos
Message 1 of 4
(3,854 Views)

If you are using CVI for your code have a look at ComSetEscape() from the RS232 library. I'am sure that Labview provides a VI with the same functionality. But I Don't know it , because 'am not a Labview user.  

0 Kudos
Message 2 of 4
(3,850 Views)

Hello Markus,

 

Thanks for your prompt reply. I actually can work in VC++ or LabVIEW. Do you know about some VC++ class that can give us the functionality of ComSetEscape()? Do you have any detailed info on ComSetEscape()?

 

Thaks and regards!

Javed

 

 

0 Kudos
Message 3 of 4
(3,835 Views)

Try using a property node.  See here  http://zone.ni.com/reference/en-XX/help/371361F-01/lvvisaprop/serial_instr/

 

Message Edited by Wayne.C on 11-13-2009 08:19 AM
0 Kudos
Message 4 of 4
(3,827 Views)