Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS 232 DTR problem

Hello, I have a problem...I want to comunicate with a Hardware device (No NI) and I comunicate through the RS 232 port.

 

I read a lot of posts but I don't find the solution. The problem is that everytime the device set the DTR.

 

I post the solution I use but everytime the DTR is ASSERTED so the Device reset itself.

 

I would like that the DTR remains Unasserted because I want to send it the string of the instruction.

 

Can you help me?

 

Giada

0 Kudos
Message 1 of 3
(3,981 Views)

Hi Giada,

try to set the "DTR State" inside the "VISA Configure Serial Port" and update every istances.

 

Try also to do a synchronous write instead Asynchronous one in the "VISA write" VI.

 

Make the DTR unasserted is a MS Serial Driver Service. Can you perform your task with any other program language?

D. Beninato
0 Kudos
Message 2 of 3
(3,910 Views)

Just to clarify-

What is the serial instrument?

The Intstrument is asserting DTR so it probably expects some form of flow control.  You coul either read the instruments manual to learn the remote operation setup (recommended) or try changing the flow control input to the serial configure vi until you get good communication. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(3,900 Views)