LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enqueue Element

Solved!
Go to solution

Hi All,

 

I am Using Message Queue for Implementing my Project.

 

Inside an event structure, enqueuing message to the queue. Message is selected depending upon a selection ring menu. a Variant also there, so a cluster object is used to cluster variant and string and given to the queue.

 

when i executing the vi, with default ring menu, its working properly. but when i change the ring menu i am getting an error. Please see the attachment.

 

Anybody Please Comment on this issue.

 

Regards,

mfp.

0 Kudos
Message 1 of 10
(4,868 Views)

Hello mfp,

 

i don't think it is error, it is notification .. pobably in your event structure you are selecting filter event having red arrow in mark ..

 

BR, HS

0 Kudos
Message 2 of 10
(4,862 Views)

Hi,

 

Thanks for the quick reply.

So What shall i do to remove that filtering?

 

Regards,

mfp.

0 Kudos
Message 3 of 10
(4,857 Views)

If you don't want filter events select the Notify events having green arrow mark .. Once you add events u get option to select the events .. few are having red arrow mark termed as filter events and rest with green arrow mark termed as notify events .. so select the green arrow mark events..

 

BR, HS

0 Kudos
Message 4 of 10
(4,854 Views)

Its already in the green arrow category, "Value Change".

Error Input to the Enqueue Element is not having any error, but output is showing the following error message in the probe window.

Please find the attachment.

 

Regards,

mfp.

0 Kudos
Message 5 of 10
(4,847 Views)

Without any code it will be very hard to help you.

Please post your code.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 10
(4,838 Views)

please post the screenshot of VI portion creating error..

0 Kudos
Message 7 of 10
(4,835 Views)

Thanks alot for the reply.

 

Please find the attachment for the snapshot.

 

Regards,

mfp.

0 Kudos
Message 8 of 10
(4,826 Views)
Solution
Accepted by topic author mfpktr

You get an error 1 on the 'enqueu element' because you use an invalid queue reference. This is caused because you use 'use default if unwired' on the output of the event structure. In one (or more) of your event structures you don't feed a valid queue reference into this tunnel. LabVIEW will then output a default (NULL) queue. Since you use a shift register in a next iteration you will use that invalid reference.

 

There are two solutions:

  1. Right click on the tunnel and deselect 'use default if unwired' and feed all queueu references through
  2. Don't use a shift register, I think it's unlikely that you change to another queue during the runnning of this VI.

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 9 of 10
(4,817 Views)

Hi Ton,

 

Thank a lot for the support.

I Could able to solve the issue with your help.

 

Thanks.

 

Regards,

mfp.

0 Kudos
Message 10 of 10
(4,812 Views)