Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Hp oscilloscope (54602B) with rs232 interface

Hello
 
I have download the driver for my Hp oscilloscope at ni´s driver, and i have a problem using the vi example ( that is included with the hp driver),
i want to adquire the serial data from my Hp oscilloscope (54602b), and when i start it, i don't see nothing.. but i can see a little of it when i put the highlight execution, then i can change the time division or the voltaje division and nothing...
 
I just want to plot the voltajes of the oscilloscopes in my program in labview.
 
 
0 Kudos
Message 1 of 11
(8,004 Views)
Did you notice that the driver was written and tested only for the GPIB bus? You will have to make some modifications to get it to work with the serial port. Mainly, this involves setting the com port parameters and the termination character for the write and reads. A shipping driver tha you can look at to see how this is done is the HP34401A. It should be on your instrument driver palette.
0 Kudos
Message 2 of 11
(7,998 Views)

thanks a lot..! i will probe it... but in the example of the driver.. i have the option to put in com1, and with that i have probed.

 

0 Kudos
Message 3 of 11
(7,996 Views)
The VISA Resource Name control will list all available resources but that does not mean that the driver supports them. It is usually only a problem with serial instruments. When you write or read something over the GPIB bus, commands are terminated by EOI. This does not exist in serial instruments. Commands to serial instruments are usually terminated with a CR, LF, or both. The instrument manual should tell you. As I mentioned, the 34401 example takes care of this. In the initialize function, a test is made of the VISA Resource Name and if it's serial, a VISA property node sets the termination character and also sets the com port for baud rate, parity, etc. Until you make this modification to initialize function in the scope driver, you will be able to use it.
Message 4 of 11
(7,990 Views)
Hello
 
I bought a lock in amplifier two years ago but I have not installation CD. I have download the driver for my SR530 lock in amlpifier at ni´s driver (sr530 and sr560 drivers), and I have a problem with communication between lock in and PC.
All Labview program is supported by GBIP connection. I want to use rs 232 serial port. I watched installation demo but my program didnot undertake sr530 sub-connected instruments file for installation.
Normally PC is recognize lock in via hyper terminal. But labview is not.
Thank you in advices for help.
Suleyman Yilmaz
Harran University
Turkey
 
0 Kudos
Message 5 of 11
(7,958 Views)

You've got a bit of work ahead of you. I looked at the SR530 driver and it uses LabVIEW's GPIB Read/Write functions and not LabVIEW's VISA Read/Write. VISA is the current API for both serial and GPIB communication so usually, the adaptation is simpler. You can replace all of the GPIB Read/Writes with VISA Read/Writes as a starting point. You'll probably have to also add some additional code to set the correct termination characters that serial instruments usually require. The important part of the driver is only one VI (SR530.vi) so the modifications wouldn't be that difficult. You could also just use the Instrument I/O Assistant for controlling it.

p.s. The original thread was about a different instrument. What you did is called thread hijacking and is kind of frowned upon. In the future, start a new thread.

0 Kudos
Message 6 of 11
(7,945 Views)
hi can i find a diver for 54602b forc labview 7.0 because i found only a one for 8.0, thanks a lot
0 Kudos
Message 7 of 11
(7,562 Views)
Repeat your search and try again. There are three drivers for the 54602B. A LabVIEW 8, LabVIEW 7, and a LabWindows/CVI.
0 Kudos
Message 8 of 11
(7,559 Views)

hello,

thank you for your reply, I donwnloaded the driver and I run it succefully, but as i want to get the hysterisis loop from the oscilloscope to the screen of PC i should work in x-y mode but the problem is that the scope don't run in this mode and send an error message it can run only in Main mode, if someone has an idea about the acquisition of hysterisis loop with this device his help will be appreciated.

thanks by advance

0 Kudos
Message 9 of 11
(7,366 Views)
Smiley SadI am trying to display the voltage that I generate on Labview on the HP 54602B Oscilloscope. I have read through the forums and noticed that I will need the oscilloscope manual to do this with the serail port ( A manual that I do not have and have not founf on the internet and i do not have GPIB connnection for this model oscilloscope. However is it possible to send the signal through the coaxial cable from the national instruments SCXI-1531 and display the voltage. If possible, is there an example lab view block diagram anywhere of this.
0 Kudos
Message 10 of 11
(6,559 Views)