取消
显示结果 
搜索替代 
您的意思是: 

LabVIEW Core 3: Queue and Dequeueing Issues

已解决!
转到解答

Hi, I'm working through the LabVIEW Core 3 exercises. When I try to hit the stop button to shut down all loops, the loops don't shut down the first time. If I hit the button again, I get this error in the Controller to Boiler subvi: "Wait on Notification in Controller to Boiler.vi -> Boiler Controller.vi -> Main.vi"

 

So while I know exactly where the error is occurring, I don't know how to fix it. I can't see what I've done wrong in the instructions manual. 

 

Thanks for any help. 

 

 

0 项奖励
1 条消息(共 6 条)
3,223 次查看

Unfortunately, not everything in the Project was in your (limited) download, making it challenging to "find the problem".  I recommend that you do the following:

  1. Find the Folder that contains this Project.
  2. Right-click the Folder, choose "Send to" and ask it to Compress the folder (to a .zip file).
  3. Attach that single .zip file.

Stopping multiple loops is a bit of an art.  I just wrote some documentation of code I'm developing with my colleagues and have an entire section called "Exit and Stopping Multiple Parallel Loops" (I have 12, I think, in the current iteration ...).

 

Bob Schor

0 项奖励
2 条消息(共 6 条)
3,213 次查看
解答
已被主题作者 krogue 接受

I can't debug the code due to the missing items Bob mentioned, but a brief peek in there shows you don't have Boiler Controller.vi's Notifiers input wired. I would guess those are necessary.

 

At the very least, make sure to right click the terminals in your subVI and select "This Connection Is..." -> "Required" for inputs that are, well, required. This will break the caller until the wires are connected, which can help prevent bugs like this.

 

Edit: Yes, this is your problem. Wire up the Notifiers input on Boiler Controller.vi and it should work. It's trying to wait on a notification from an invalid Notifier reference.

3 条消息(共 6 条)
3,209 次查看

Bob, 

 

Sorry about the missing files. I believe this zip file should give you everything. 

 

And yes, stopping these parallel loops is a bit of a mystery to me!

0 项奖励
4 条消息(共 6 条)
3,207 次查看

Bert,

 

Ah(!!!) That's it. I was blindly following the exercise manual and it isn't linked in there. Thank you, that makes sense. 

 

 

Core3 exercise manual.PNG

0 项奖励
5 条消息(共 6 条)
3,200 次查看

@BertMcMahan wrote:

I can't debug the code due to the missing items Bob mentioned, but a brief peek in there shows you don't have Boiler Controller.vi's Notifiers input wired. I would guess those are necessary.

 

At the very least, make sure to right click the terminals in your subVI and select "This Connection Is..." -> "Required" for inputs that are, well, required. This will break the caller until the wires are connected, which can help prevent bugs like this.

 

Edit: Yes, this is your problem. Wire up the Notifiers input on Boiler Controller.vi and it should work. It's trying to wait on a notification from an invalid Notifier reference.


I was stung by this today.  Some VIs in a project was originally developed in LV 8.x where the default setting for connector pane was still "Required" unchecked.  A bunch of VIs have connectors all set to "recommended" so when I did ctrl+B to clean up some wires, I never noticed one got cleaned up off of one of those VIs.  Since I automatically have all new connectors default to "required", this was the last thing I looked for when the VI started throwing errors.  Cost me 1/2 hr of heartache.

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.
6 条消息(共 6 条)
3,150 次查看