LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error -1073807360 occured on Visa Write after Discharge occured on controlled High Voltage device

Solved!
Go to solution

Hello everyone!

Describtion of the problem:
i currently try to control a highvoltage generator with Visa Serial. The PC running Labview is connected to the device over a usb to RS232 adapter. I send a ascii string to control the devices Voltage setting. I can read and write parameters into the device and always get a 24 charakter while reading the process parameters. My problem starts when the electrical field has a discharge. That means the output voltage drops and the current rises, resulting in a blank where the 24 charakter answer should be. After that i stop the problem resulting in the described error code. A restart of the problem also show a blank where the 24 charakters schould be. Stoping the problem after that shows me the error
Error -1073807360 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->DCHSP write and read.vi
(DCHSP=Direct current High voltage Generator)
Unplugging and replugging the USB adapter allows me to reset the program.

Question:
How can i implement a reconnecting of the usb port into my labview program?
Can a drop in the signal voltage cause this problem? Inserting an optocoppler has delayed the occurance of the problem.

0 Kudos
Message 1 of 11
(1,581 Views)

Hi sefranz

Did you check this article before? There is a solution for this issue, try to go through that article to solve the error. 


Regards)

 

0 Kudos
Message 2 of 11
(1,542 Views)
Solution
Accepted by topic author sefranz

@sefranz wrote:

Hello everyone!

Describtion of the problem:
i currently try to control a highvoltage generator with Visa Serial.


Hmmm... How high is high? The high voltage could be inducing noise or a pulse high enough in your serial cable to disrupt the communications, cause errors, and maybe even crash your computer entirely.

 

We have a surge generator in our lab or applying high voltage surges and spikes onto power lines. This surge generator can run remotely using serial but the cables are heavily shielded. Believe me if you try to use any other serial cable besides the one that came with it, the Communications will be disrupted everytime it generates a voltage pulse. 

 

I just glanced at your code, I also recommend you watch this video: VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
Message 3 of 11
(1,530 Views)

@sefranz wrote:

Hello everyone!

Describtion of the problem:
i currently try to control a highvoltage generator with Visa Serial. The PC running Labview is connected to the device over a usb to RS232 adapter. I send a ascii string to control the devices Voltage setting. I can read and write parameters into the device and always get a 24 charakter while reading the process parameters. My problem starts when the electrical field has a discharge. That means the output voltage drops and the current rises, resulting in a blank where the 24 charakter answer should be. After that i stop the problem resulting in the described error code. A restart of the problem also show a blank where the 24 charakters schould be. Stoping the problem after that shows me the error
Error -1073807360 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->DCHSP write and read.vi
(DCHSP=Direct current High voltage Generator)
Unplugging and replugging the USB adapter allows me to reset the program.

Question:
How can i implement a reconnecting of the usb port into my labview program?
Can a drop in the signal voltage cause this problem? Inserting an optocoppler has delayed the occurance of the problem.


You cannot!  You have vastly exceeded the environmental operating limits of the USB physical layer.   You are lucky that no permanent damage occurred.   Repeatedly over-stressing your bus will cause systems failure.   

 

Without diving deeper into the EE work I can guess that the induced transients even exceed the optocouplers protection or there is already irreparable damage elsewhere like a smoked transient suppressor.  You may need a fiber optic hop.

 

Good engineering design does have its DISADVANTAGES though.  Chiefly, it significantly reduces the amount of overtime hours and pay available to technicians. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 11
(1,519 Views)

Hi RTSLVU,

the voltage goes up to 24 kV and the current up to 3mA  (effektive Values, pulsed direct current at 2,5 -20kHz).
The shielding could be still an issue, but the onboard controll of the high voltage generator is not affected. Also the control Mass Flow contoller i am using next to the discharge is not affected as long as i am using it with the companys control device. I only have issues when i try running them with the computer (other programms fail as well).

Thanks for the link to the video, i knew i should not have used the example, but i didnt know how bad of a desicion it was.

0 Kudos
Message 5 of 11
(1,483 Views)

Hi,

thanks for the answer, it didnt solve my problem, but it made me more aware of problems related with the NI Max.

0 Kudos
Message 6 of 11
(1,482 Views)

hi,

thanks for the answer, unfortunately that did not solve the issue.

0 Kudos
Message 7 of 11
(1,475 Views)

Did you try to reinstall your VISA and USB drivers. This method helps sometimes to solve the issue, try to complete the reinstallation and check the VISA driver compatibilities with LabVIEW. May be drivers are not compatible. 


Regards)

0 Kudos
Message 8 of 11
(1,459 Views)

Get rid of "bytes at port"

GRCK5000_0-1680319861727.png

 

 

0 Kudos
Message 9 of 11
(1,414 Views)

@sefranz wrote:

the onboard controll of the high voltage generator is not affected. Also the control Mass Flow contoller i am using next to the discharge is not affected as long as i am using it with the companys control device. I only have issues when i try running them with the computer (other programms fail as well).


You basically answered your own question here...

 


@sefranz wrote:

The shielding could be still an issue,


 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 10 of 11
(1,398 Views)