LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication problem with agilent 34401a

Hi all,
 
I' m using Labview 8.2 and visa 4.2.
 
I 've connected my agilent 34401a and it is recognized, I see it in agilent connection expert and manage to communicate with it. (query *IDN?)
 
But I get a problem when I want to use the control_mode vi. (remote or local).
 
the error is displayed just after the Visa Read function (Vi below)
 
I don't understand why. I use the RS 232 connection and it is correctly configured in the devices manager.
 
Anyone can help me ?
 
Thanks,
 
Romain
0 Kudos
Message 1 of 3
(2,845 Views)

Sorry,

I've forgotten the Vi.

Now it's OK

Thanks

0 Kudos
Message 2 of 3
(2,844 Views)
You might not be waiting long enough for the write command to be executed in the instrument. You are doing a visa read just after the visa write but with a small time delay value. It might be better to use a property node for number of bytes in the buffer. Then do the read and wait until the proper number of bytes are available, or wait until a termination character is transmitted from the device.
0 Kudos
Message 3 of 3
(2,815 Views)