LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio LVUserEvent Message Cluster

Solved!
Go to solution

Hi, It is possible to use a queue to exchange messages between a .dll and LabVIEW? Yes. Check image.

 

It is posilbe that the data contained in a cluster and are variant? You can convert a data to variant in .dll and convert a variant data to data labview?

 

And I tried to implement a function with the following code, but I err when I run LabVIEW.

 

#pragma pack (push,1)
typedef struct
{
 LStrHandle newStringHandle;
 LvVariant* Data;
} MessageCluster;
#pragma pack(pop)

 

...

 

MessageCluster Message;

 

...

 

PostLVUserEvent(*rwer, (void*)&Message);

 

Thank you very much.

0 Kudos
Message 1 of 2
(2,578 Views)
Solution
Accepted by topic author dgd.gomez

No, the variant C API is not documented and therefore there is no way to create, query, modify or otherwise use them from C code, if you are not an NI developer. Use the documented datatypes instead.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,559 Views)