How Do I Get a Current LabVIEW Bitness?

Updated Oct 19, 2018

Reported In

Software

  • LabVIEW
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

I have both LabVIEW 32bit and 64bit versions. When certain VI is running, how do I know which bit version of LabVIEW is running in the code?

Solution

Unfortunately, the bit of LabVIEW cannot be checked through property node or invoke node, but there are other ways to check the bit of LabVIEW. When you install LabVIEW, Get Current LV Bitness.vi is installed in C:\Program Files (x86)\National Instruments\LabVIEW 20**\vi.lib\Utility and you can see the bit version of LabVIEW through this VI. However, this solution is limited by the version of LabVIEW.
 
  • LabVIEW 2015 or earlier
Get Current LV Bitness.vi cannot be found in LabVIEW 2015 or earlier version. So you have to use a Conditional Disable Structure. You will have to configure two different conditions: one that contains code that will run on a 64-bit machine and one that contains code that will run on a 32-bit machine. When you configure the condition, set symbol(s) to TARGET_BITNESS and set Value(s) to either 64 or 32
 

Once the conditions are configured, add code to each case. Note that the active case of a Conditional Disable Structure is chosen at compile time. Because of this, the code in the case that applies to the development computer will appear normal, and code in other cases will be inactive and appear faded.
 


Regardless of the operating system, the executable is running on, the active case depends on the version of LabVIEW that the executable was originally compiled in.
 
  • LabVIEW 2016 or later
For example, if you put Get Current LV Bitness.vi in your code and run it with a different bit of LabVIEW, you can see that the corresponding version is denoted.


The above VI is shown in the 32bit version of LabVIEW 2016. Get Current LV Bitness.vi is executed in VI, you can see that 32bit is output.
 
 


The above VI is shown in the 64bit version of LabVIEW 2016. Get Current LV Bitness.vi is executed in VI, you can see 64bit.

Using Get Current LV Bitness.vi, you will get bit version about whatever bit version of LabVIEW you use.

WAS THIS ARTICLE HELPFUL?

Not Helpful