10-12-2009 12:27 PM
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.
Solved! Go to Solution.
10-12-2009 01:43 PM - edited 10-12-2009 01:44 PM
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.
10-14-2009 07:07 PM
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
10-14-2009 08:25 PM
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).
11-20-2009 12:24 AM
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.
11-20-2009 08:45 AM
11-20-2009 10:14 AM
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.
11-20-2009 11:29 AM
11-20-2009 12:03 PM
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.
11-20-2009 12:41 PM
Try this. Modify as necessary.