01-29-2015 09:38 AM
I’m attempting to communicate with a Cox 4020 flow computer over serial.
It’s a fairly popular flow computer, so I’d figure I’d ask around to see if anyone knew of a driver. My google-fu let me down in my search.
If not, how do you configure the serial port? The thing is expecting 10 bit characters.
See page 32 of http://www.badgermeter.com/Badger-Files/PDFs/Industrial-Products/40104020FlowComps.pdf
The VISA Configure Serial Port Vi does not give options beyond 8 bits.
The only thing I could think to do is to convert each character to a Boolean array, append all the arrays representing multiple characters to each other, then convert it back to a string.
The only part that worries me, is what to do if the number of appended bits MOD 10 isn’t zero.. I don’t know if the meter will barf or not with extra bits..
Before I go to far down the rabbit hole, figured I’d ask if anyone has been down it first, or had any insight.
Thanks!
01-29-2015 09:53 AM
You are apparently not understanding the 10 bits.
Per their manual
This first bit is the start bit, followed by the parity bit
and the tenth bit is the stop bit.
This instrument will work perfectly with the VISA Configure Serial Port.vi which allows for 7 data bits
01-29-2015 10:02 AM
I'm with you.. i'm being slow.. I'm actually doing something more incrediblly stupid.. which was making me 2nd guess myself..
Thanks!
-josh
PS. My serial port connector fell out and I didn't realize it...
01-29-2015 10:04 AM
It appears that they are using parity but whether it is odd, even, mark, or space, isn't clear to me.