11-12-2009 11:33 PM
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
11-12-2009 11:49 PM
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.
11-13-2009 04:02 AM
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
11-13-2009 07:18 AM - edited 11-13-2009 07:19 AM
Try using a property node. See here http://zone.ni.com/reference/en-XX/help/371361F-01/lvvisaprop/serial_instr/