Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel operation of several power supplies connected via COM

Good morning,
While working on a test bench, I encountered the following problem.
I have five laboratory power supplies connected to the computer, connected via the USB port, seen as COM ports. Each power supply is controlled and queried for parameters in a separate loop. During the operation of all power supplies, the read data is distorted. The read data is sometimes a fragment of data from another COM port or a string of random characters. When connecting two power supplies, I did not notice such a problem. Switching the read and write functions to synchronous mode of work improved a little, but from time to time the same problem occurs.
Has anyone encountered such a problem before? If so, please help me solve the problem.
And sorry for my language.

 

Equipment parameters:
Labview 2014 x64
NI-VISA 14.0.1
Windows 10
Power supply: Itech IT-6005B 

0 Kudos
Message 1 of 4
(951 Views)

Most likely a code issue, we can provide more guidance if you could share your code.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(912 Views)

It could be a driver issue.  I am not a fan of USB for instrumentation.  And it is possible the Virtual Serial Port driver is having issues with multiple instances.  Personally, I use Ethernet with static IP addresses for my instrument communications.  A decent network switch and cables to connect everything up is all that is needed.  As long as everybody has unique IP addresses, there should be no issues.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(853 Views)

When timing is not critical I would ensure that messages and answers are read one by one, so no parallel problems anymore. but only when timing is not an issue.

This can easily be done by putting a command answer combination n a subvi.

And because a subvi (when not marked as re-entrant) will block all other callers.

greetings from the Netherlands
0 Kudos
Message 4 of 4
(827 Views)