07-18-2005 12:42 PM
07-18-2005 02:25 PM
07-18-2005 02:42 PM
Brian,
This is exactly what I needed - the To Object.vi lets me convert the types I need to objects. Interesting to note that the diagram is locked - any hints about how you accomplish this 😉 ?
Also, did I miss something or is this VI ever mentioned in the .NET documentation or examples?
Thanks,
Mark
07-18-2005 02:51 PM
07-18-2005 03:59 PM
07-18-2005 05:50 PM - edited 07-18-2005 05:50 PM
Message Edited by Lycangeek on 07-18-2005 05:50 PM
07-19-2005 09:25 AM
Well, it was worth a try - If I use the To More Specific Class node and cast from the Workbooks type to the _Workbooks type, the methods and properties are exposed as expected, but then LabVIEW squawks and says -
"Error 1057 occurred at in excelExample.vi
Possible reason(s):
LabVIEW: Type mismatch: Object cannot be typecasted to the specified type."
I imagine that means I'm stuck trying to access these methods/properties directly through LabVIEW - or do you have any other ideas? My fallback will be to wrap these properties in a .NET DLL that I can call from LabVIEW.
Thanks,
Mark
07-19-2005 10:26 AM
07-19-2005 02:34 PM
That works - I just created the converters I needed as static methods in a DLL and now all is OK - I presume that since your version of LV works most of this is expected to be sorted out in the next LabVIEW release?
Thanks for all your help,
Mark
07-19-2005 03:20 PM