07-12-2007 05:39 PM
Hi Ben,
if you are convinced that the data is being sent as numbers than as I suggested in my previous post, use a type cast to get the data from the string directly to a number. Have a look at the attached vi.
regards
Peter
07-12-2007 08:28 PM
07-12-2007 08:29 PM
07-12-2007 08:38 PM
07-13-2007 05:30 AM - edited 07-13-2007 05:30 AM
I still think it's a parity problem. I wrote a odd-parity generator and applied it to the digits, getting the result seen. (This follows your descriptions - the 'incorrect' characters have the MSB set) Stripping the parity bit back off gets back to the original characters.

Try setting the LabVIEW serial port to SEVEN data bits and odd parity. This is what I assume the Red Lion kit is using. If you set the LV to 8+parity it will (probably) interpret the parity bit from the Red Lion as the top data bit. Of course if you can change the Red Lion / converter settings, it would be equally effective. All that really matters is that both ends are set to EXACTLY the same characteristics.
However if you can't solve it in hardware / settings [the better way] you could try a software fix. Simply mask out the top bit of each character in the string. Here's one way to do it.

Hope this helps,
Rod.
Message Edited by Rod on 07-13-2007 11:35 AM
07-13-2007 09:03 AM
bwilli39@utk.edu wrote:
I am controlling 4-Red Lion T48 controllers and 2-Red Lion PAX meters
...
I do however have the serial port set to the odd parity and 8 bits. The red lion hardware is also set to odd parity.
Kudos for Rod. I too think serial settings should be checked.
Unless things have changed recently with RedLion's PAX and T48, they always transmit data as ASCII characters.
And while the PAX might be configured with 8 bits/Odd parity, I don't think that is an option for the T48 (JPG of manual attached).
Both the PAX and T48 ignore the parity bit on incoming messages.
06-17-2020 04:00 AM
Hi all,
13 years later I am facing similar issues with the Red Lion PAX.
I found the parity issue answer in the manual found in this post:
I you set the device to 7 data bits / 1 stop bit / no parity, you should set 2 stop bits for the VISA session.