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.
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.
10-14-2021 02:25 AM
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
10-14-2021 08:14 AM
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.
10-14-2021 09:51 AM
As Bilko said you can do this:
10-14-2021 09:57 AM
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).
10-14-2021 10:05 AM
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.
10-14-2021 10:10 AM
@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