03-01-2018 04:26 AM
Hi all,
the documentation on the Item_WasDroppedOnVI interface VI states that the type of the Result output can be found in LvProject.h, however i fail to find any reference to that header or to the type lvProjectDropResults anywhere. If I simply use a variant instead, all controls are initialized to zero when the VI is called. Also, none of the mentioned examples or toolkits seem to implement that interface.
Could someone please point me in the right direction?
Thanks,
Philipp
Solved! Go to Solution.
03-01-2018 01:06 PM
Hey Phillip,
The reference to "LvProject.h" is referring to the LabVIEW source code. Since this feature used to be an internal-only feature, much of the documentation was kept within the source code itself. When we released this to the public, my colleague and I tried our best to document it in a public-friendly way, but we must have missed this one. Unfortunately since I don't work at NI anymore, I don't have access to this .h file, so the only way we'll get any update on this is if someone from NI sees this and can look into it.
Sorry!
-----
David Ladolcetta - Certified LabVIEW Architect
DSP Tools Engineer - Cirrus Logic
03-02-2018 11:01 AM
A mysterious being sent me an anonymous tip. Shh don't tell...
typedef enum _lvProjectDropResults { lvProjectDropResults_Handled = 1, lvProjectDropResults_DoDefault = 2, lvProjectDropResults_KeepPrevious = 4, lvProjectDropResults_DropIsCopy = 8, } lvProjectDropResults;
03-15-2018 08:56 AM
Hi David,
thanks to you and the mysterious being. The VI seems to hang at scripting calls now, which is weird but at least it's being called with sane parameters. I can work with that!
Thanks,
Philipp
03-15-2018 03:19 PM
Hrmm that's no fun. Make sure you understand contexts fairly well. Having property and invoke nodes run in the Project Provider context can cause weird issues. I've even heard of people spin up processes in the main application instance to run some code because of unexpected behavior while hiding in the provider context. Good luck!