LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my VI only work after I've aborted the previous run?

I'm using GPIB to communicate with a Fluke 8840A multimeter.  I think I've got the correct driver installed, but I'm not 100% sure since the program doesn't run perfectly.  I'll enter a command, such as "*f5r0s0t1?" and I'll get the generic I/O error 6 response.  If I click abort before it gets to this point, the next run will work perfectly fine.  If I try to do more than one iteration, the first one will only work if I've aborted the previous run, and then the second one will cause the same error to occur.  Any help would be appreciated.  Thanks.

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

Try using the driver from here:

Fluke 8840A Driver

 

It will probably be easier than doing raw GPIB. 

If you want to stick with GPIB or VISA, I think you're missing an initialize.

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

Yeah, I was using drivers that I found from there.  Does using those drivers allow me to communicate with the instruments without doing all of the GPIB read and write stuff?  Is there a simpler way?  Thanks.

0 Kudos
Message 3 of 7
(2,542 Views)

Fluke Driver Screenshot.PNG

0 Kudos
Message 4 of 7
(2,533 Views)

If you're using the provided driver, you should be using VI's like the one shown in the screenshot.  Right now, your flukepos.vi is using the Raw GPIB drivers instead of the actual Fluke Instrument Driver.

0 Kudos
Message 5 of 7
(2,531 Views)

Cool, I didn't know those were there...  Thanks.  However, even when I run those VIs, it still only works like every other time or after I abort it.  Is that a problem with how LabVIEW is communicating with the instrument then?  Thanks.

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

Can you post your code where you're using the Fluke Driver?

It still seems to me like your session isn't getting initialized or closed properly.

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