Error -2147417843 From DataSocket Update Data VI

Updated Jun 21, 2024

Reported In

Software

  • LabVIEW

Issue Details

  • When I try to read using DataSocket Update Data VI, error -2147417843 sometime occurs.
Error -2147417843 DataSocket Screen Capture.jpeg
DataSocket Pic.png
  • If I minimize, maximize or move my VI, error -2147417843 sometime occurs.

Solution

This error is similar to timeout but since this triggers an error, it will cause loop execution to stop. Please refer to below method on how this issue can be resolved.
 

Method 1 (Recommended)

Instead of using DataSocket Update VI, please use DataSocket Read VIDataSocket Read VI has timeout function which will not trigger an error.
 
DataSocket Pic 1.png
 

Method 2

Please use this method only if using the legacy API. Use Clear Error VI to remove error -2147417843. Since this is similar to timeout error, it should not effect the overall DataSocket operation. Note that this method is not recommended because it may cause memory leak in LabVIEW and cause LabVIEW to crash.
 
DataSocket Pic 2.png