From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ignore parity error

Hi

 

is there a property available to ignore the parity errors in LabVIEW/Visa for example docklight software has the ability to do this.

 

I'm testing an RS485 port from a product and the below settings were required to perform the test

 

LuisFuentes_0-1634196258691.png

 

0 Kudos
Message 1 of 6
(1,211 Views)

I guess you could write some code to ignore it.  I'm guessing LabVIEW will return a specific error code and then you can handle it by swallowing it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(1,186 Views)

As Bilko said you can do this:

 

peCapture.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 6
(1,178 Views)

The error is generated with the Read function from VISA so since the error is generated I cant read the Data properly, Cleaning the error will not help for this case.

 

I think I will talk with the product owner and tell him it is wrong to have parity error in his product. if he want to use the  even parity option I think the products needs to be improve to remove the parity errors (I think it is a firmware issue).

 

 

 

 

0 Kudos
Message 4 of 6
(1,176 Views)

Usually when I see parity or framing errors, it is due to cabling issues (noise getting on the lines).  So you may want to check your wiring for proper shielding, pairs are properly twisted, etc.


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 5 of 6
(1,173 Views)

@LuisFuentes wrote:

The error is generated with the Read function from VISA so since the error is generated I cant read the Data properly, Cleaning the error will not help for this case.

 

I think I will talk with the product owner and tell him it is wrong to have parity error in his product. if he want to use the  even parity option I think the products needs to be improve to remove the parity errors (I think it is a firmware issue).

 

 

 

 


Luis,  when the parity is incorrect, LabVIEW is replacing the received character with the "error replacement character" which happens to be 0.

 

You can turn off this behaviour by modifying the visaconf.ini file in C:\ProgramData\National Instruments\NIvisa

 

The key for this is:

 

[ASRL-RSRC-ALIAS]
DisableErrorReplacement=1

 

Have fun.

 

0xDEAD

 

 

Message 6 of 6
(1,168 Views)