How Can I Pass an Image From LabVIEW 32-bit to 64-bit?

Updated Nov 20, 2023

Environment

Software

  • LabVIEW

Driver

  • NI-IMAQdx

I have two applications, one that acquires the image in LabVIEW 32-bit, and another that process the image in LabVIEW 64-bit. 
How to pass the image from a 32-bit VI to another 64-bit VI?

You can pass an image using Network Shared Variables from a VI 32-bit to a VI 64-bit. 
Follow the steps below to configure the Network Shared Variable in both LabVIEW versions. 

In LabVIEW 32-bit: 
  1. Create a variable in LabVIEW from the Project Explorer window by right-clicking My Computer in your project and selecting New»Variable.
  2. Configure your variable by giving it a unique name, Image data type, and setting the Variable Type to Network-Published.                                                                                            
  3. ​​​​Deploy the variable to make it accessible from the VI 64-bit by right-clicking on the library and selecting Deploy All.  
  4. In your LabVIEW 32-bit application, drop the ImageVariable32 Shared Variable into your code.
  5. Right- click the ImageVariable32  and change the Access Mode to Write.
  6. Connect the ImageVariable32 to the Image Out indicator. 

In LabVIEW 64-bit: 
  1. Create a variable in LabVIEW from the Project Explorer window by right-clicking My Computer in your project and selecting New»Variable.
  2. Configure your variable by giving it a unique name, Image data type, setting the Variable Type to Network-Published and enable Aliasing. 
  3. Select Bind to: PSP URL and browse to the previous Network Shared Variable configured before, in this case, to the ImageVariable32.     
  4. Deploy the variable by right-clicking on the library and selecting Deploy All.  
  5. In your LabVIEW 64-bit application, drop the ImageVariable64 Shared Variable into your code.
  6. Right- click the ImageVariable64  and change the Access Mode to Read.
  7. Connect the ImageVariable64 to the Image Out indicator.