Listing 6: Instantiating the fgen object.

public Form1()
{
    //
    // Required for Windows Form Designer support
    //
    InitializeComponent();
    
    //
    // TODO: Add any constructor code after InitializeComponent call
    //
    fgen = new Agilent.Agilent33220.Interop.Agilent33220Class();
    fgen.Initialize("functionGenerator",true,true,null);
 ... 
}