02-01-2011 09:07 AM
I have an Agilent 33210a function generator which I have connected to a computer via USB and am using the standard driver and example for labview.
My problem is as follows:
When I update the device with a new function, the device stops giving an output signal and then a relay clicks and the new signal is there. This is causing problems with my application.
What I want to do is apply a standard sine function and use labview to change the DC parameter. This is easily done with the manual dial but when I send the function I run in to the issue described above. Is there a solution to this?
Thanks
Jonathan
02-01-2011 02:22 PM
02-03-2011 11:45 AM
Thanks for the response.
I am using the function example provided by Agilent. I attempted to divide it up into stages of initialization, updating, and closing out the device but did not have luck in terms of the reset after changing the output.
Jonathan
02-03-2011 03:47 PM
Hi
I see what you mean. The commnds usually start with :
like :FREQ
but sometimes you need to be in the correct supervisory mode,
here is an excerpt of the manual
SCPI Command Summary
Throughout this manual, the following conventions are used for
SCPI command syntax for remote interface programming:
• Square brackets ( [ ] ) indicate optional keywords or parameters.
• Braces ( { } ) enclose parameters within a command string.
• Triangle brackets ( < > ) enclose parameters for which you must
substitute a value.
• A vertical bar ( | ) separates multiple parameter choices.
(see page 144 for more information)
APPLy
:SINusoid [<frequency> [,<amplitude> [,<offset>] ]]
:SQUare [<frequency> [,<amplitude> [,<offset>] ]]
:RAMP [<frequency> [,<amplitude> [,<offset>] ]]
:PULSe [<frequency> [,<amplitude> [,<offset>] ]]
:NOISe [<frequency|DEF>1 [,<amplitude> [,<offset>] ]]
:DC [<frequency|DEF>1 [,<amplitude>|DEF>1 [,<offset>] ]]
:USER [<frequency> [,<amplitude> [,<offset>] ]]
APPLy?
The APPLy Commands
Changing the amplitude of a sine that is already running should look like:
:VOLT 1.234
for 1.234 volt as max output, optionaly followed by a max and min that I never use.