11-18-2021 03:01 PM
For security reasons since I'm using LAN communication/ports, I cannot share the entire vi.
First while loop: LAN communication between the unit being tested and PC, I'm using UDP protocol functions to send the commands and receive the packets.
Second while loop: I created a state machine that contains 13 cases for the first part of the test, the screenshot is on case 12. There are no problems on communication throughout cases 1-11.
At the beginning of the case a high voltage power supply (Keysight N8928A) is programmed to enable 360V / 3A, the connection is USB-USB, then I use a DAQ (34970A) to take a few voltage measurements. The next step, as the comment shows, the command for the LAN (UDP) gets updated to enable two internal switches, which does get accepted and I see the indicators changing. There are no errors when taking the measurement from the DAQ(34970A) or when sending data to the Excel spreadsheet (ActiveX). However by the time it wants to communicate with the power supply and lower the voltage to 318V, see highlighted, the power supply does not respond anymore, error gets created on "Initialization" function, and when I check device manager is no longer there, sometimes the message "USB disconnected" also shows up.
Things I've tried so far:
- Changed the USB connection port for the Power supply
- Changed the USB cable
- Updated Power supply's firmware
- Uninstalled driver for power supply on device manager
- Disabled the USB selective suspend setting on the PC
- Interchanged PC, DELL Optiplex 780 with DELL Optiplex 790
- Interchanged the Power supply (N8928A) with another one of the same model which is being used on another station with a similar code on LabVIEW
- I've checked all the visa functions, they all have corresponding close functions at the end.
- Changed the local variables with property nodes, PC froze
- Changed the initialization of the power supply to be connected right after the LAN command and before the DAQ, error still generates on the power supply initialization function ("I/O wasn't found"), increased and decreased the waiting times in between
- Downloaded and tested with the IVI and Plug and Play LabVIEW drivers
- The unit needs the 360V ON, to be able to accept the command through LAN, therefore turning the power supply OFF before the command is not an option
Any questions and suggestions for me to test would be appreciated. Thank you
11-18-2021 10:55 PM
You are:
So next time you try initializing the power supply the VISA session is probably invalid
Do this:
11-19-2021 07:58 AM
Thanks for your response.
I did try this and the same error showed up when setting it again.
The power supply disconnects right after updating the command for the UDP function.