06-08-2011 06:03 AM
Hi
I have an Agilent MSO-X 2004A and am linking it to my PC using the drivers provided in post 6 of this thread Here
Until I used these drivers, it couldn't deal with negative values from the scope and displayed very odd waveforms + it always reset the scope when one ran the vi!! The new drivers form the link fixed the negative values issue and i managed to stop it resetting the scope by putting a constant 'false' on the reset input to a VI.
The problem I am now having is that the vi'swon't display the Math waveform and generate an error message:
Error -1074000000 occured at Agilent 2000 3000 X-0Series.lvlib:Error Query.vi
Possible reason(s):
Instrument reports:
-224,"Illegal parameter value"
+0,"No error"
Complete call chain:
Agilent 2000 3000 X-Series.lvlib:Error Query.vi
Agilent 2000 3000 X-Series.lvlib:Autosetup.vi
Agilent 2000 3000 X-Series Acquire Waveform Continuously no Reset.vi
Can someone please have a look at this - I am not a Labview programmer and would not know where to start!
if it matters, I am displaying a waveform on channel 1 at present and the FFT of it on the Math channel
many thanks
Tony
06-08-2011 10:33 PM
Hi Tony,
I noticed that your program raised an error when executed Autosetup.vi. I looked into this VI and found there seems to be a command which do not support "MATH" channel. Also, I updated the Fetch Waveform.vi to make it correct when acquire MATH data.
Please update your driver with the VIs in the attachement.
Thanks,
Charles
06-09-2011 09:30 AM
Thanks Charles
Unfortunately, I still get the same error when attempting to read Maths channel
regards
Tony
06-09-2011 01:03 PM
Hi Tony,
Did you replace both VIs? When we ran the example (with updated VIs) with the MSO-X 3024A we could not reproduce the issue. Did you make any modifications to the existing example? If you did can you attach it?
thanks
06-10-2011 03:32 AM
Hi
Yes, I replaced both
The error i get when trying to acquire math channel using the'Agilent 2000 3000 X-Series Acquire Waveform Continuously.vi' from the examples is as follows
Error -1074000000 occured at Agilent 2000 3000 Series.lvlib:Query.vi
ossible reason(s):
Instrument reports:
-224,"Illegal parameter value"
+0,"No error"
Complete call chain:
Agilent 2000 3000 X-Series.lvlib:Error Query.vi
Agilent 2000 3000 X-Series.lvlib:Autosetup.vi
Agilent 2000 3000 X-Series Acquire Waveform Continuously.vi
Thanks for any help
06-10-2011 04:15 AM
I'm sorry, I don't know how to attach the file
regards
Tony
06-10-2011 10:20 AM - edited 06-10-2011 10:23 AM
Hi Tony,
Actually, the Autosetup.vi is equivalent to the "Auto Scale " button on the front panel. So if you are going to fetch the math channel, it is will clear the math channel if you auto scale before fetching data.
According to your scenario, it is highly recommended to modify the example VI by removing the Autosetup subvi. The updated VI looks like below.
Thanks,
Charles
06-10-2011 10:43 AM
Hi Charles
As it was, it didn't clear the math channel on the scope, in fact it did't appear to do anything to either scope or vi dsplay, just generate an error immediately I run the vi.
I removed the autosetup just now as you suggested and the code now captures a screen of Math channel (FFT in my case) but then generates an error:
Error -1074000000 occured at Agilent 2000 3000 X-Seeries.lvlib:Error Query.vi
Possible reason(s):
Instrument reports:
-221,"Settings conflict"
+0,"No error"
Complete call chain:
Agilent 2000 3000 X-Series.lvlib:Error Query.vi
Agilent 2000 3000 X-Series.lvlib:Read Waveforms (Single).vi
Agilent 2000 3000 X-Series Acquire Waveform Continuously.vi
If you could tell me how to upload files, i would be happy to upload the code I am using although it came from the link I included in my original post (mods as suggested on this thread)
Thanks
Tony
06-10-2011 12:33 PM
When you reply there is an Attachments section (below the Cancel and Post buttons ) and select Add Attachment
06-10-2011 12:34 PM
Can you also please include the firmware version your instrument has?