Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Oscilloscope HP 54602B to display 2 channels and save the data on a file

Solved!
Go to solution

Hi,

 

I am using an Oscilloscope HP 54602B to plot the voltage and the current in a circuit. So I need labview to save the data of the two channels in a file or to have the plot of the two channels. I was using the "get started" VI with the driver and I am able to get the plot of 1 channel. I am not familiar with programming in labview So is there someone who has a VI close to the VI that I need?

Thanks. 

0 Kudos
Message 1 of 13
(7,199 Views)

The current driver has no VI called 'Getting Started' so I'm not sure what you are using. Where exactly did you get the driver? What version of LabVIEW are you using?

 

The project style driver has an example called 'Agilent 5460X Series Multi Channel Function Display.vi' and in order to acquire multiple channels, you have to configure them ('HP54601A-602B Channel Config.vi) after configuring Ch1 and after calling the digitize function for Ch1, call it again with Ch2 as the input. There is then a Read Waveform for Ch1 so you would use the same function again for Ch1. To display both waveforms on the same graph, take the output of the reads (the waveform cluster) and wire them to a Build Array. The output of this gets wired to the graph.

 

To get started with learning LabVIEW, I would suggest you start with the basic tutorials.

Message Edited by Dennis Knutson on 10-12-2009 12:44 PM
Message 2 of 13
(7,189 Views)

Thanks for your answer.

I am using Labview 8.6 and the driver I was using is hp546xxx. I downloaded the driver Agilent 5460X Series

I am not sure that I understand the steps you enumerated:

1- In Channel Config.vi, I choose 'chan1' on 'channel' and run it;

2- In Channel Config.vi, I choose 'chan2' on 'channel' and run it;

3- In Read Waveform.vi, I choose 'channel 1' in 'read source' and run it;

4- In Read Waveform.vi, I choose 'channel 2' in 'read source' and run it;

for the rest I did not really understand I should prbably read the tutorials or if you can describe me what should I do in more details because this is my first use to labview.

Thanks a lot

0 Kudos
Message 3 of 13
(7,158 Views)

Yes, that's basically the order of the functions you would call. Don't forget the digitize function. Looking closer at the driver, the digitize function for the 54602 has the option to select channels 1 and 2 so you would acquire both at the same time. You then have to read them individually with the Read Waveform function.

 

I'm still not sure what driver you actually downloaded. The link I gave is for the most current. It's a project style driver and an example  is available with the rest of the LabVIEW examples (Help>Find Examples).

Message 4 of 13
(7,150 Views)

Hi Again, I am sorry to bother you again but can you explain to me how to read the two channels. What should I add to the block diagram and how to insert the second channel in the VI "Agilent 5460X Series Multi Channel Function Display".

I have all the necessary VIs, (Do you I need to change anything in their blocdiagram).

Is it ok if I send you the VI and you make the necessary wiring for me, I need to use this function on Tuesday for my researchand I am more comfortable with mechanical tests than electrical.

I really appreciate your help.

Thanks.

0 Kudos
Message 5 of 13
(6,922 Views)
Why don't you try to make the changes that have already been discussed and post that VI?
0 Kudos
Message 6 of 13
(6,907 Views)

I am sorry I did not make any changes on Agilent 5460X Series Multi Channel Function Display VI neither the others.

I was just running the other VIs like you told me. I will apload them too if there is any changes to be made on them.

0 Kudos
Message 7 of 13
(6,898 Views)
Solution
Accepted by topic author Hassene
Try these.
Message 8 of 13
(6,884 Views)

Yes it works I got 2 plots in the same graph. Thanks alot.

Can I be more griddy and ask you to help me to save the date in the plot of the two chaneels in a file?

 I really appreciate your help you saved my week.

0 Kudos
Message 9 of 13
(6,877 Views)

Try this. Modify as necessary.

 

Write to File.PNG

Message 10 of 13
(6,871 Views)