04-27-2010 09:53 AM
Imports NationalInstruments.NI4882 Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim SigGen As Device SigGen = New Device(0, 15) SigGen.Write(":OUTPUT:STATE:ON") End Sub End Class
I’m not sure if this is a NI question or a VB question or an Agilent question, but here goes.
I am addressing an Agilent N5181A MXG analog signal generator with a simple RF ON command. The syntax appears to be correct but I get an error message “ERROR -113 UNDEFINED HEADER” which according to the instruments error message list means “The header is syntatctically correct, but is undefined for this specific device. For example, *XYZ is not defined for any device.” Can anyone show me an example of how this is supposed to work?
Solved! Go to Solution.
04-27-2010 03:23 PM
04-28-2010 01:19 AM
04-28-2010 07:00 AM
I wasn't entering the command correctly.
It should have read (":OUTPut:STATe ON") Keywords on this instrument are case sensative in that lower case lettering indicates the portion of the command that is optional; it can be either included with the upper case portion of the command or omitted, not both. This is the flexable format principle of forgiving listning. By entering the keyword entirely in caps the parser accepted the syntax but didn't understand the command and generated an error.
04-28-2010 07:00 AM
I wasn't entering the command correctly.
It should have read (":OUTPut:STATe ON") Keywords on this instrument are case sensative in that lower case lettering indicates the portion of the command that is optional; it can be either included with the upper case portion of the command or omitted, not both. This is the flexable format principle of forgiving listning. By entering the keyword entirely in caps the parser accepted the syntax but didn't understand the command and generated an error.