Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Cox 4020 (4000 series) Flow Computer

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!

 

0 Kudos
Message 1 of 4
(5,401 Views)

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

 

 

0 Kudos
Message 2 of 4
(5,395 Views)

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...

0 Kudos
Message 3 of 4
(5,392 Views)

It appears that they are using parity but whether it is odd, even, mark, or space, isn't clear to me.

 

0 Kudos
Message 4 of 4
(5,390 Views)