LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Type Map for Shared Variable

Why is there no Data Type Map in Shared Variable?

I would love to share a map containing clusters of timestamp and variant.

0 Kudos
Message 1 of 3
(81 Views)

The Shared Variable predates LabVIEW Maps by many many years. And NI hasn't made significant updates to the Shared Variable engine in a long time. Besides, it is arguable if such complex data types such as Maps are very useful to transfer like that. The overhead of a Map in terms of memory to be able to reconstruct it exactly on the remote side is also considerable.

 

Maybe you can put it in a Variant and transfer it as such? It's a guess but may work. On the other hand I'm not exactly sure of the exact underlaying nature of a Map. If it is more analogues to a refnum rather than a value variable (there could be good performance arguments for that) the Variant may not capture the content of the Map but just its reference. And that would mean nothing on the remote side.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(52 Views)

@Quiztus2 wrote:

Why is there no Data Type Map in Shared Variable?

I would love to share a map containing clusters of timestamp and variant.


Are you talking about a network shared variable or something local? If you don't require the network part, you can contain your map fully into an action engine.

0 Kudos
Message 3 of 3
(16 Views)