Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView- RS232 for Tenma Multimeter

Hi all,

 

I am trying to stablish a RS232 communication with a Tenma Multimeter. From its Operating Manual the settings are:

 

Baud Rate 2400

Stop bit 1

Data bits 7

Parity Odd

 

After searching on NI Forums I have been able to come up with this VI that always give me the same error when I try to read, -1073807254: A parity error occurred during transfer. 

 

Any insight to this problem?

Download All
0 Kudos
Message 1 of 5
(5,386 Views)

I always first use Hyperterminal or something like it to establish communication with the instrument.

Once that works, then I automate with LabVIEW.

0 Kudos
Message 2 of 5
(5,375 Views)

Hi Opljde

 

After looking at your code I noticed there was a coercion dot on the "Serial settings: Parity" input. However when I deleted the control attached to this and then right clicked the terminal on the property node to create a control it made another enum control of representation U16 (same as your enum). This did however make the coercion dot disappear. This would be the first thing I would try as your error is a one that would imply its from the parity bit.

 

Many Thanks

 

Daniel Harryman
Application Engineer

National Instruments

Daniel Harryman MEng
CLA, CPI
0 Kudos
Message 3 of 5
(5,349 Views)

@DanHarryman wrote:

Hi Opljde

 

After looking at your code I noticed there was a coercion dot on the "Serial settings: Parity" input. However when I deleted the control attached to this and then right clicked the terminal on the property node to create a control it made another enum control of representation U16 (same as your enum). This did however make the coercion dot disappear. This would be the first thing I would try as your error is a one that would imply its from the parity bit.

 

Many Thanks

 

Daniel Harryman
Application Engineer

National Instruments


That coercion is because the property node actually wants a ring, not an enum.  But all of the settings are the same, so I wouldn't expect that to be the issue.

 

It is rare to get an instrument that uses parity.  Try changing the parity setting to see if you can get it to work.


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 4 of 5
(5,344 Views)

We have found analyzing the original cable a different configuration than classical RS232 cable, please verify wiring connection of the original cable adapter. We saw it function with hyperterminal.

0 Kudos
Message 5 of 5
(5,254 Views)