Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HP4284A Frequency Sweep with frequency points read from a tab delimited excel or lvm file

Solved!
Go to solution

Hello,

 

I am using a HP4284A, and have downloaded the file here. However, I cannot figure out what format of file it takes as input: I understand this should be a .lvm tab delineated value file, but in what order is the data? If someone could provide an explanation, or an example data file, I'd greatly appreciate that.

 

Thanks.

 

Ps. I know the linked article says that 'The frequency points are as defined for the oscillator in the HP4284A user manual.', bit I have been through the manual from end to end, and I can't find anything of the sort. The closest I've been able to find is the codgin for remote access, but that isn't very relevant as Labview and the coding (C++, I believe) used are very different.

0 Kudos
Message 1 of 12
(3,449 Views)

That VI simply reads in the file and converts it to an array of frequencies. The file can simply be a single column where each row corresponds to a frequency:

 

freq1

freq2

freq3

...

 

 

I have no idea why the writer chose to use Read From Measurement File, since no timing information is being used. A much simply approach would have been to use Read From Spreadsheet File.

0 Kudos
Message 2 of 12
(3,440 Views)

Hm. I should have elaborated on what I had tried.

 

I have tried:

 

Freq1

Freq2

Freq3...

 

In which case, it only reads frequency 3.

 

Freq1 [tab] Freq2 [tab] Freq 3...

 

In which case, it only reads frequency 1.

 

Other than this, what else can I try?

0 Kudos
Message 3 of 12
(3,431 Views)
Solution
Accepted by topic author Firnagzen

Figured it out. There's a problem in the block diagram, the stop condition is wired wrongly. It's wired so that when the input frequency from the list is less than 1MHz, it stops. It should be the other way around.

0 Kudos
Message 4 of 12
(3,422 Views)

Hi,

 

I still could not find the problem. Can you send me your final vi file?

 

Cheers,

 

R.

0 Kudos
Message 5 of 12
(3,330 Views)

Simply right click on the conditional terminal of the while loop and change the stop behavior. You only have two options so it's very easy.

0 Kudos
Message 6 of 12
(3,328 Views)

Tks,

 

I already have done that, and the aquisition is working well except when it reach1 Mhz it does not stop. Still is a progress..

 

R.

 

 

0 Kudos
Message 7 of 12
(3,325 Views)

Did you change it for the inner or outer loop?

0 Kudos
Message 8 of 12
(3,322 Views)

Sure. I wound up adding some additional features to it, though, badly. It's perfectly functional but badly coded (veteran users please don't laugh); I could probably optimize it now, having learned more, but I'm too lazy to. There's a writeup, too.

Download All
0 Kudos
Message 9 of 12
(3,314 Views)

Tks guys for the discussion. It really help me with my project.

 

0 Kudos
Message 10 of 12
(3,276 Views)