jacobson3 / VI-Peek

MIT License
4 stars 3 forks source link

Add functionality to deal with Dynamic Dispatch VIs in a LabVIEW Class. #7

Closed qalldredge closed 3 years ago

qalldredge commented 3 years ago

When clicking on a SubVI that is LabVIEW Class Dynamic Dispatch VI, prompt the user for the Dynamic instance to show. This should be similar to what the user sees when double-clicking on the SubVI and the selection window pops up showing a tree and BD views.

qalldredge commented 3 years ago

Maybe there is a way to call the already created "Choose Implementation" dialog. It is located at:

_[LabVIEW 20xx]\resource\Framework\Providers\LVClassLibrary\ChooseImplementation\CLSUIPChooseImplementationDialog.vi

qalldredge commented 3 years ago

Looking into the "Choose Implementation" dialog, it doesn't return the VI(s) selected. It opens the VI(s) directly from the dialog. So we can't call it directly to have VI Peek know which VI to load into its subpanel. However, maybe I can reuse some of the code to implement our own version of it.

qalldredge commented 3 years ago

So, I have it working on my fork. If the VI dynamic dispatch, my version of the "Choose Implementation" dialog opens. Then it allows selection and passes the selection back to the VI Peek window. I'm not sure I like this extra step. I think it would be better if I implemented the "Choose Implementation" functionality directly into the VI Peek window.

Feel free to take a look at my implementation but it is rough. Some of the "Choose Implementation" dialog functionality from the built-in LabVIEW one still needs to be removed. But if I combine it with the VI Peek windows I'll do that anyway.

jacobson3 commented 3 years ago

Added in #14