problem about agilent N67XX series DC POVER SUPPLY

Li Y.
Beijing,

Dec 10, 2009
8 Posts

0  |  0  

Re: problem about agilent N67XX series DC POVER SUPPLY

HI! I want to control N67xx, but there is some problem.
I've download its IVI-COM driver, installed it ,and it works in its Labview example.
In ATEasy, I first insert the COM object into the program library, and AgilentN67xxLib appears in the library, also a lot of classes are there.
Secondly, I create a type of AgilentN67xxLib.IAgilent67xx, name it T_N6701;
Thirdly, I create a variable of type T_N6701 and name it N6701;
Then I create a task,which code is :
   N6701=CreateObject("AgilentN67xxLib.IAgilent67xx")
   N6701.Initialize("GPIB0::5::instr",False,False,"Simulate=false")
   Print N6701.Identity
   N6701.close
Build success. But when run, there is a run-time error #419:"Object is null" find in line 2.
Why ?
Thank you very much!

Amit G.
Irvine, CA

Dec 11, 2009
26 Posts

0  |  0  

Re: problem about agilent N67XX series DC POVER SUPPLY

It appears that the object is not being created in line 1.
You are trying to create an Interface object, and not the object itself.
Change your N6701 variable type to "AgilentN67xxLib.AgilentN67xx"
And use the following line of code for line 1 instead:
N6701=CreateObject("AgilentN67xxLib.AgilentN67xx")

Notice that I deleted the "I" in the object name and variable type.

Li Y.
Beijing,

Dec 13, 2009
8 Posts

0  |  0  

Re: problem about agilent N67XX series DC POVER SUPPLY

I did as you told me, but it still doesn't work, a new error appears, it tells me that
        " Runtime error #310 : ' Unable to assign a value ' found in line 1" .
So what's this problem ? Thank you very much!

Solution Available
Amit G.
Irvine, CA

Dec 14, 2009
26 Posts

1  |  0  

Re: problem about agilent N67XX series DC POVER SUPPLY

I beleive this is an ATEasy 5.0 issue. Upgrade to the latest ATEasy 7.0 for software support, the latest features and improvements.



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]