Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make a VI that will measure a list of Frequencies for a HP4284A?

I am currently writing a VI to run a HP 4284A, I have all of the drivers but I need to be able to input a list of frequencies and have the program go through the list. I have an operation manual for this instrument but it has not been proven very helpful so far, most of the commands listed when put into the measurment and automation program gives me "HPIB error occured" on the display of the 4284A. I have taken the application example: Getting Started and doubled it so it can test two seperate impedance fnctions, but I need it to test at certain frequencies for each function and then save to an excel spreadsheet.
0 Kudos
Message 1 of 2
(3,297 Views)
Hi

If you are able to do measurements at one Frequency and now you want to do Multiple Frequencies, it is very easy.

Just Enclose your Existing diagram in a "For" Loop. Do not Wire the Count terminal. Now Create Control Array of Frequencies that you want to measure. Let this array be Outside the While Loop. Wire the Array output to the Terminals where you are specifying Frequency. Disconnect the Previous Value that was connected here.

Run your VI. You Should be able to step through all the Frequencies. The data reading you are obtaining should be Wired to an Array Indicator outside the For Loop. To do this Just bring the wire to the For Loop Boundary - Right Click - Create Indicator. Once you have this Indicator. Just use the Function "Save to Spreadsheet Fil
e" to save your Data.

This Should Work.

Good Luck!!

Mache

PS: You say "most of the commands listed when put into the measurment and automation program gives me "HPIB error occured" on the display of the 4284A." Can you please explain what you are doing exactly. Just Take a simple Command and Explain. I dont have the Instrument at my disposal so I cant try. But I have used the Instrument in the Past.
Good Luck!

Mache
0 Kudos
Message 2 of 2
(3,297 Views)