Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial parity errors and disabling the error replacement character

Solved!
Go to solution

I have a situation where I need to change parity on the last byte of an outgoing message.  Th issue is that when I try to read back, I get parity errors and the Error Replacement Character shows up in the output.  I have some extra bytes and some lost bytes due to masking.  This thread indicated that in VISA 3.4.1, there was an INI setting that would disable the Error Replacement Character.  I have 4.4.1 installed and have not been able to get it to work properly.  I am curious if anyone knows if this undocumented setting is still available and how to get it to work.

 

Thank you.

0 Kudos
Message 1 of 2
(3,811 Views)
Solution
Accepted by topic author Matthew_Kelton
Thanks to Tyler from NI who helped me determine the proper location to use.  The entry is valid, I just used the wrong visaconf.ini file.  The correct file is located at
(<Documents and Settings>\All Users\Application Data\National Instruments\NIvisa.  Adding the following info will disable the error replacement and give the data seen by the serial prot:

 [ASRL-RSRC-ALIAS]
DisableErrorReplacement=1
Message 2 of 2
(3,798 Views)