Error -4850 in LabVIEW Using Port Out or Port In

Updated May 4, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW 2012 Full

Driver

  • NI-VISA

Issue Details

I'm using Port Out.vi or Port In.vi in LabVIEW or an executable and when I try to run the VI, I get the following error:

 Error -4850 LabVIEW:  Device driver not present or not supported.
What does this error mean?
 

Solution

The Port In.vi and Port Out.vi functions are not supported in later versions of LabVIEW. The last version that explicitly supports these functions is LabVIEW 2012. This is due to limited operating system support in Windows Vista and later for the port access that these functions use.

NI-VISA should be used as an alternative in later versions of LabVIEW.