LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
riley.ilieva

Enqueue Enum Message

Status: Declined

We use Queued Message Stage Machines a lot and often send messages through API calls. In a state machine I prefer using enums to determine the state and in the QMSM that would be useful too because sometimes a typo in a message in an API call stops it from working. 

 

However, the Message Queue functions accept string only. 

 

 

image.png

 

Even if we make changes to the message cluster or make the VI polymorphic but we would then need to do it every time we are setting up a new machine with LabVIEW. Would this be useful for anybody else? 

image.png

 

 

 

 

3 Comments
wiebe@CARYA
Knight of NI

Useful?  Maybe. Feasible? Not really.

 

There is no way to make a VI that accepts (only) any enum.

 

The VI would have to accept a variant, which would be error prone and unclear, or the VI has to be a vim, which would be error prone and unclear.

 

thols
Active Participant

Why not just make such a VI that has your enum type as input?

 

(where are those VIs anyway, can't find them in LV)

 

(I would use channel wires instead, they can hold any data, but that's just me)

 

 

Certified LabVIEW Architect
Christina_R
Active Participant
Status changed to: Declined
 

Christina Rogers
Principal Product Owner, LabVIEW R&D