LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling RTS- & DTR-Line. How to make it?

Hello,
 
I need to take control of the RTS-line using LabWindows/CVI but I don't know how to do this. Can someone help? Little example would be very fine.
 
Thanks and Greetings
Marek S.
____________________________________________________________
Operating System: Windows 2000 - Software I use: LabWindows/CVI 7.1
0 Kudos
Message 1 of 5
(4,358 Views)
Hi,
Type handshaking in the CVI help. It explains how to configure SetCTSMode.
Regards,

0 Kudos
Message 2 of 5
(4,349 Views)
Hello,
 
weeks ago I posted this question but unfortunetally the answer I get is not the answer I wished to have. I tried out this solution but without being succesful. Maybe I try again to show my problem:
 
I made a program that communicates over RS232. The Communication works fine but my Chief wants  me to control DTR- and RTS-line. Setting a high on DTR and a low on RTS because we want to use these lines as a voltage source but I don't know how to do this.
 
I tried out SetCTSMode but without any reaction. The voltage of the lines is -12V. After opening the ports the voltage is +12V. Changing CTSMode do nothing change. I also tried out with help of Visa but also without succes.
 
Have anyone an idea?
 
Regards,
Marek S.
____________________________________________________________
Operating System: Windows 2000 - Software I use: LabWindows/CVI 7.1
0 Kudos
Message 3 of 5
(4,319 Views)
Sorry, I didn't get you rigtht.
To "manually" control the DTR line:
- ComSetEscape (COMPort, SETDTR) to set the DTR (either +12 or -12 V).
- ComSetEscape (COMPort,CLRDTR ) to clear the DTR
And for the RTS line :
- ComSetEscape (COMPort, SETRTS) and  ComSetEscape (COMPort, CLRRTS).
Is that what you want, what you really really want?
Regards,




0 Kudos
Message 4 of 5
(4,313 Views)
Hello dilution,
 
wow, this was fast!!!
 
First: Great thanx for your help. I tried out and now it works. That's what I wanted.
 
Second: Sorry for my own stupidity. Having this function all the time in front of my eyes... Shame on me.
 
As I said: Great THANX for this fast help.
 
Regards,
Marek S.
 
 
 
PS: This was very fast. I am still very surprised. 🙂
____________________________________________________________
Operating System: Windows 2000 - Software I use: LabWindows/CVI 7.1
0 Kudos
Message 5 of 5
(4,310 Views)