08-11-2023 08:20 AM
Just yesterday I experienced a new behavior, completely new to me. Certain subvis are not using the inputs provided to them. Specifically, I pass in a VISA COM address, a couple of booleans, and an error. The sub vi runs without those inputs. I can setup the subvi and run it on its own, but being called it exhibits that behavior. Does nyone have an idea of why this would happen? There's nothing fancy going on, just one vi calling another with locally provided inputs.
LabVIEW 2019 SP1
Solved! Go to Solution.
08-11-2023 08:23 AM - edited 08-11-2023 08:23 AM
Hi WHunter,
@WHunterLV wrote:
Certain subvis are not using the inputs provided to them.
Maybe the problem is with your "certain subVIs" and how you use them!?
As you forget to attach those "certain VIs" you need to check and debug them on your own!
08-11-2023 08:29 AM
Wow, that's the least helpful reply I've ever seen. Thanks!
I will upload the vis when the pc is back up and running, I'm currently trying to repair drivers. I've also done a fair bit of troubleshooting, but again, this is a completely new one for me....after 20 years of LabVIEW. Was hoping someone with a similar experience could quickly reply.
BTW, you're why a lot of people don't ask for help.
08-11-2023 09:21 AM
My best guess is that in the calling VI, you've got wires running under the called VI making it look like those wires are connected to the inputs when they're really not.
Such a circumstance could be readily found if you set the inputs to "Required".
08-11-2023 09:23 AM
Is the subvi set to be reentrant with preallocated clones? If you start by having such a subvi's front panel open in the dev environment, then run code that calls the subvi, the inputs won't show up in the edit-time front panel you're looking at. You would need to use debug tools and *step into* the subvi in order to get to the front panel of the run-time instance that executes.
Offhand, that's the only guess I've got.
-Kevin P
08-11-2023 09:24 AM
Thanks, I wish that were the case. The inputs are set to required!I
08-11-2023 12:27 PM
Thanks for the suggestions, guys. I still have no idea what was going on, but it started working again after repairing VISA and clearing MAX's settings. I am going to put a mini fridge next to the test stand and stock with ice cold beer for days like this. Happy programming!