02-14-2012 02:54 AM - edited 02-14-2012 03:00 AM
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.
Solved! Go to Solution.
02-14-2012 08:26 AM
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.
02-14-2012 05:51 PM
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?
02-14-2012 09:56 PM
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.
07-19-2012 09:42 AM
Hi,
I still could not find the problem. Can you send me your final vi file?
Cheers,
R.
07-19-2012 11:47 AM
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.
07-19-2012 11:52 AM
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.
07-19-2012 12:39 PM
Did you change it for the inner or outer loop?
07-19-2012 11:47 PM
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.
08-07-2012 11:40 AM
Tks guys for the discussion. It really help me with my project.