03-29-2023 07:43 AM
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.
Solved! Go to Solution.
03-30-2023 08:38 AM
03-30-2023 09:17 AM - edited 03-30-2023 09:23 AM
@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
03-30-2023 09:27 AM - edited 03-30-2023 09:32 AM
@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.
03-31-2023 05:05 AM
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.
03-31-2023 05:07 AM
Hi,
thanks for the answer, it didnt solve my problem, but it made me more aware of problems related with the NI Max.
03-31-2023 05:22 AM
hi,
thanks for the answer, unfortunately that did not solve the issue.
03-31-2023 06:43 AM
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)
03-31-2023 10:31 PM
Get rid of "bytes at port"
04-02-2023 12:09 PM
@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,