Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Kikusui PBZ power supply USB VISA communication problem via LabVIEW

Hello,

 

I have intermittent trouble initializing VISA sessions from LabVIEW to Kikusui PBZ40-10 power supplies over USB. So far, different computers will work with one power supply, but not another. Also, the failed initializations lock up LabVIEW for 2 minutes, and this may occur every single attempt, or allow several sessions before locking up again.

 

I'm using PBZ subVIs created from Kikusui PBZ IVI drivers, per the manufacturer's instructions.

 

The errors obtained after a viOpen VISA command freezes are either 0xBFFF000 "Uknown system error (miscellaneous error)", or 0x0BFFF0078 "The value of some parameter (which parameter is not known) is invalid". I've tried power cycling the power supply, reconnecting the USB cable, and restarting the computer. Sometimes those remedies work, sometimes they don't.

 

This issue with Kikusui hardware was encountered in a similar post, but not solved: https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Kikusui-PLZ334WL-Intermitent-USB-Failure/m-p... 

 

This issue was encountered with different hardware, and partially solved by eliminating repeated opening and closing of the VISA session: https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Intermittent-visa-error-BFFF0011-with-viOpen... 

 

My question is, has anyone found a true solution to this problem? Rewriting a VI to keep the same VISA session open might prevent the issue once communication is established but doesn't guarantee the session will open successfully in the first place.

 

Very grateful for any help.

 

Thank you.

 

Edit: Added screenshots of code. LabVIEW will lockup on the "Ivi_InitWithOptionsAndGetError" function within the "kipbz Initialize With Options.vi" called by the "kipbz Initialize.vi" (first KPBZ VI in Initialize VISA session screenshot). There is a main loop between the VISA initialization and closing VIs. In the event of freezing on that first KPBZ VI, the main loop will not initiate, meaning all buttons within the application do not function, including the ability to close it. The abort loop grants the user the option to abort LabVIEW when the application freezes.

0 Kudos
Message 1 of 2
(815 Views)

Hi

I advise two changes to the Initialize VISA section

First, not really important but due to the parallelism in LabVIEW you cannot guarantee that the boolean ComGood is initialised before the while starts, but probably it is initialised in time here.

 

Second, I would add a wait after the reset because a reset often takes several seconds so I advise to try this out by starting at 20 seconds and halving this time until errors occur.

 

Good luck

greetings from the Netherlands
Message 2 of 2
(778 Views)