LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain Queue in new VI

The mixed nature of an input connection on Obtain Queue VI , being both data type and element at the same time, have not allowed me to use clustered input data type with any data type at the inputs of the cluster in the new VI. how can this be worked around?

0 Kudos
Message 1 of 3
(2,420 Views)
Define the data type u r going to use in "element data type". you cannot connect the cluster to this input. then it will work
0 Kudos
Message 2 of 3
(2,411 Views)

I'm not sure at all that I understand what you're asking, but if you're asking if you can create a subVI that uses Obtain Queue and can accept any data type as input, the answer is that you can't.  You can come close by using a variant as the subVI input, which will accept any data type, but you'll have to convert the variant data back to the desired cluster type when you dequeue an element.

 

The Data Type input of Obtain Queue is not also an element, it simply defines the type of data that will be stored in the queue.  A queue cannot contain mixed data; every element in the queue must be of the same data type.

0 Kudos
Message 3 of 3
(2,397 Views)