07-27-2012 09:11 AM
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
07-27-2012 09:22 AM
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).
07-30-2012 09:57 AM
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
07-30-2012 10:18 AM
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 .... )