12-07-2020 06:50 AM - edited 12-07-2020 07:40 AM
I'm trying to debug something on a target (no dev env) by getting a method's front panel visible each time it runs (I would typically just turn on remote debugging but the method is reentrant)- is this not possible with a method that's dynamically dispatched?
I was thinking maybe my exe build doesnt include the vi or part of it but it's absolutely included and used functionality wise since I'm getting data from it...
Is there something I dont know about with dynamic dispatch and front panels? or maybe I'm just not awake yet and there's a simpler reason?
thx
edit: I just created a subvi that's not in the class and non reentrant and that isnt working either so now I'm thinking there's just something else I'm missing here...
edit2: so just setting the VI properties to open the vi when called works, but I would love to know why doing it programmatically with the vi server method doesnt work...
Solved! Go to Solution.
12-07-2020 08:23 AM - edited 12-07-2020 08:28 AM
Typically the exe only includes the front panels of subvis that need them. With dynamic dispatch the caller doesn't know what subvi it is calling so the front panel is going to be excluded from the build UNLESS the callee knows that it needs to have its front panel. And simply attempting to invoke a method just isn't enough! The vi properties need to require the FP
Exactly what you just proved to be true!
12-07-2020 08:43 AM
You may be able to set the vi properties in the build spec to enclude the FP as well... I can't check for sure via phone.