03-04-2014 03:23 PM
Hi all. I am working on my first real LV project for my company, and I am having some problems. The main one right now happens when I am trying to call a subVI into a subpanel. It shows up in the subpanel just fine when the program starts, but when there is an error in the error handler it skips over the invoke method and pops my subVI in its own window. Anyone have an idea on what I am doing wrong? I have included a picture of how I am trying to populate the subpanel.
03-04-2014 04:35 PM
You're calling the VI and it's opening. Look up SubPanel in the LabVIEW help and take a look at the example. What you're doing is calling the VI not loading it into a sub panel.
03-04-2014 06:14 PM
When I call the VI that way, however, it does load into the subpanel (so long as there are no errors). I am trying to reproduce what a coworker has done with his subpanel. His works great, and I would ask him for help, but he is not available as he is working on a much more pressing project.
I was able to figure it out before I sent this mesage. Before doing anything with a subpanel, my coworker was running a "clear errors" function. That is how he was able to get around the problems I was having. Thanks for your help though.
03-04-2014 06:45 PM
@robot_mower_guy wrote:
but when there is an error in the error handler it skips over the invoke method and pops my subVI in its own window.
I assume you have an error handling case in your state machine. So if an error happens in your error handler, you will have be passing that error around the shift register. Yes, that will mean that the invoke node ot insert the VI will not run due to the error. You need to handle your error from the error handling state.
03-04-2014 06:48 PM
That is what a coworker told me an hour ago. The only reason I am doing a lot of things is because the guy before me did them. I understand C++ code and can learn from what those before me have done, but with labview right now I am shamelessly ripping my coworkers off.