LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in working with IVI drivers

Hello,

 

I tried using IVI drivers for agilent 34401a multimeter and it worked fine only for the first time (run) . However, when I put the same code inside a while loop and repeat it, it doesnt work at all. Also, I can see it creates multile instances of the IVI logical name automatically which I used for this multimeter. Any thoughts on this?

 

Please refer the attached image consisting of code snippet.

 

 

 

Thanks

 

 

 

 

 

 

ivi error.jpg

0 Kudos
Message 1 of 7
(2,658 Views)

Initialze & measure VIs which I am using:

 

ivi details.jpg

 

0 Kudos
Message 2 of 7
(2,656 Views)

Hello Mnx,

 

First, pls attach your entire code... your screen shot are not that easy to follow...

Then, your architecture is wrong, you should use a simple event structure into a wile loop with several events desired (Open, Close, Get Measure, ... )

Thus you need'nt registers on your DMM, don't understand why do you have one in your Vi !!!

My last advice is to wire your error wire from left to right as a straight line where you better see dataflow ongoing.

 

Can you explain what's your IVI mode for ?

 

BR,

Vincent

0 Kudos
Message 3 of 7
(2,646 Views)
Initialization of DMM should be *outside* the WHILE loop. Surprised someone over 100 posts on this message board does not know this basic concept.
And this is done whether you are using regular LabVIEW drivers or IVI drivers.

 

 

0 Kudos
Message 4 of 7
(2,636 Views)
Hw does it matter if I initialize my dmm everytime before measuring the output?
0 Kudos
Message 5 of 7
(2,613 Views)

@mnx wrote:
Hw does it matter if I initialize my dmm everytime before measuring the output?

You don't believe the suggestion?

 

As Dr. Phil would say, "and how is YOUR approach working for you now?"

 

0 Kudos
Message 6 of 7
(2,598 Views)

Just think about previous comments... You have all elements to run your app fine.

Try them and get back with your .vi if any problem appears !

 

BR,

Vincent

0 Kudos
Message 7 of 7
(2,590 Views)