LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Queue Refnum Invalid After Enqueue from Event Case

Solved!
Go to solution

This is from my Previous project, and it worked without error

shangchi_0-1764244290202.png

 

0 Kudos
Message 11 of 19
(174 Views)

Hi shangchi,

 


@shangchi wrote:

This is from my Previous project, and it worked without error


Because there is much more "THINK DATAFLOW" to enforce execution order!

 

Until now you failed to provide any code, all we got are images of parts of codes.

Do you know we cannot edit/debug/run images with LabVIEW?

(Why do you make it so hard to help you?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 19
(158 Views)

As GerdW mentioned you need to think data flow. In your example the upper while loop runs independet from the lower while loop and even can run without the queues initialized. Your shared old example only have queue requests in the lower while loop and because you wired all queue related elements you ahve some data flow there.

_________________________
using LV 2025 Q3
0 Kudos
Message 13 of 19
(149 Views)

I'm really sorry, I'm sharing the code here. Thanks for your response

0 Kudos
Message 14 of 19
(130 Views)
Solution
Accepted by topic author shangchi

I'm guessing you start from "Controller.vi", which creates the queues, but then it starts "2 Station UI.vi", which wipes the queues from the functional global variable because of an apparent mistake: In "2 Station UI.vi" there is nothing wired to the FUNCTION input of Q_Manager.vi, and since the default is Initialize, it wipes all your queues from your functional global variable (my guess is it was forgotten to wire a "Read Q" value to the FUNCTION input).

Message 15 of 19
(90 Views)

Thank You so much banksey225. That was the real problem. Now it's working well without any error. Thanks once again and thanks to all the others responded.
Have a nice day 
Regards
Shangchi

0 Kudos
Message 16 of 19
(87 Views)

Hi shangchi,

 


@shangchi wrote:

That was the real problem. 


You should have learned: attach code, not just images of code!

With code you get substantial help much faster/better…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 19
(77 Views)

Hi GerdW,
I'm new here so from next time onward, I’ll make sure to upload the code along with my question.
Thank You

Best regards,
Shangchi

0 Kudos
Message 18 of 19
(65 Views)

@shangchi wrote:

Hi GerdW,
I'm new here so from next time onward, I’ll make sure to upload the code along with my question.
Thank You

Best regards,
Shangchi


If it makes you feel any better, I've been around here for about forever and I still often think my problem is simple enough not to include code... until I find I need to include code.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 19 of 19
(36 Views)