Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Framing Error

I am trying to communicate my Aplab programmable power supply to PC using Labview.i am succeeded in setting the voltage at the desired level but unable to read the voltage using visa read in labview. I'm getting framing error while trying to read.what is this? And how to solve the problem

0 Kudos
Message 1 of 4
(3,568 Views)

What type of communication bus are you using?  I'm guessing RS-232.  Here's a KB on the error.  Generally, it means that a setting is wrong (stop/start bits, baud rate, handshaking, etc).


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 2 of 4
(3,564 Views)

I am using RS-232 communication.the same settings i am using in a pc with EXE at client location for the past one year.it working well now also.

 

but the same settings when i did in the code in our PC and running.it is readings less bytes(14 bytes) from PPS using labview.ideally it should read 17 bytes.some times it is showing special charecters.

and when shifted to second PC also it created the same problem.after number of times runnubg the code we are able to reard volatge and current.what is this.same code is behaving differently on different PC's

 

Gautham

0 Kudos
Message 3 of 4
(3,553 Views)

It might be a bit too far off, however...

If the powersupply uses some power of the RS232 port (for internal optocouplers..) you could run into the problem that some modern RS232 ports provide less signal levels.

If the optos are designed to just fit the baud rate, framing errors can occur. Lowering the baudrate can help. (if pooking around with a scope and debugging the interface is not an option 😉 )  BTDT

 

Lowering the baudrate also helps with EMC (long cables, switched powersupplies .... )

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 4
(3,549 Views)