LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Publish a queue using shared variable

Solved!
Go to solution
I have queue of a 2D array and I want to publish it (the reference) in a shared variable, so I can perview the items in the queue in another vi. I have tried creating a control from queue and used the custom control option of the shared variable, but it gives me a "Invalid data type" error.
0 Kudos
Message 1 of 3
(3,809 Views)
Solution
Accepted by topic author abdel2

Are you trying to read from the queue from a separate computer? Passing the queue reference over the network to another computer won't allow that application to read data from the queue. Queue data is only stored locally.

 

I'm honestly not sure why you'd get an error trying, though. Other options you have for accessing a queue globally on the same machine are to use a Global Variable, rather than a Shared Variable, or to obtain your queue reference using a known name that other parts of the application know as well.

Jarrod S.
National Instruments
0 Kudos
Message 2 of 3
(3,802 Views)
I am using queues within the same application. I totally forgot about accessing queues by their names. It's working great now. Thanks!
Message 3 of 3
(3,794 Views)