Prevent Logging to LabVIEW Error Log File on a RT Target

Updated Nov 30, 2022

Reported In

Software

  • LabVIEW
  • LabVIEW Real-Time Module

Issue Details

My LabVIEW program crashes after a memory error caused by the growing log file on a RT Target.

The logfile repeatedly logs the message:
UserDefinedRefObj wrong/mixed case sensitivity, refObj named: CAN1 tagType: 5

How do I prevent LabVIEW from logging errors to the error log file?

Solution

2022 and newer:
Setting the "MaxDDumpsLogged" token in the ni-rt.ini file to a lower value will set the maximum number of warning messages being writen in the log file.The default value for this is 100000.

2021 and older:
Adding "DWarnLogging=False" into the ni-rt.ini on the real time target will disable stop LabVIEW from the logging warnings to the error file. However, this also prevents the logging of any other warnings from LabVIEW in the log files.