Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to unlockresource

Hi,

i just make a simply program with C# show as below:

  .......

  public Base()
        {
         Agilent34970=new NationalInstruments.VisaNS.GpibSession("GPIB0::9 ",AccessModes.ExclusiveLock,1000,true);
         Agilent6675=new NationalInstruments.VisaNS.GpibSession("GPIB0::8 ",AccessModes.ExclusiveLock,1000,true);

         Agilent34970.Write(" ");
        }

........

How to unlock the resource? there always show problem "resource is locked " while debugging.

 

 

0 Kudos
Message 1 of 1
(3,359 Views)