Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Shared Memory

Overview

Example on how to use shared memory to share data between labview vi's and other applications. Incudes an example that shares data between two vi's.  Compiled for 32 bit.  Source included so dll can be modified and recompiled for 32 or 64bit.  Used the Labivew .dll import wizard to automatically create vi's if you recompile the dll.  (Select the LabviewSharedMemory.h as the header file.) Currently aloows the writing/reading of a 100 element float array.

Description

Example for using shared memory (windows only) in labview.

Steps to Implement or Execute Code

Run the Write and Read Example VI's

Requirements

Software

Labview 32 bit 2014

Additional Images or Video

Provided

Comments
Roger_C
Member
Member
on

Hi,

 

I noticed that the Call Library Function has the option "Thead" in the Function-tab configured as "Run in UI thread". I'm using this library in a time critical part of the code and I want to avoid issues caused by the Root Loop (More info: https://www.winemantech.com/blog/the-ui-thread-root-loop-and-labview-what-you-need-to-know/  or http://www.labviewcraftsmen.com/blog/the-root-loop)

 

Is this DLL thread safe and therefor possible to configure the Call Library Function to use the option "Run in any thread" ?

 

Thanks

Prabsun
Member
Member
on

How to recompile the code to 64 bit?.
I tried recompiling it in Visual Studios 15. But,it throws an error (fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64').
Thanks in advance!.

Contributors