02-28-2014 11:15 AM
Hello everybody,
I am using an EXCEL-VBA-Macro to make DIAdem import and display XML-data. I have written a VBS scipt which does the import and which works fine, because I have registered it in DIAdem (Settings>>Extensions>>Dataplugin etc). Now I want to make this plotting opportunity available to other colleagues without the need to manually register the dataplugin that I have written. I want a script to do this work. How can I tell DIAdem via a VBS script that DIAdem shall use "C:\Scripts\Import.vbs" to import datafiles of the type "*.XML"?
Many Thanks in advance,
Heinz-Hermann
03-03-2014 04:53 AM
Hi Heinz-Hermann,
you only need one line of code to register a DataPlugin with VBS. Take a look on this page:
Method: RegisterDataPlugin for Settings <Navigator> - DIAdem 2012 Help - National Instruments
http://zone.ni.com/reference/en-XX/help/370858K-01/scriptnavi/methods/navigator_method_registerdatap...
I think you need the URI-File for your DataPlugin, which can be created from your existing vbs DataPlugin.
Regards, Stephan
03-07-2014 03:25 AM
Stephan_D,
thank you very much, your proposal works quite fine.
03-07-2014 03:38 AM
Hi Heinz-Hermann,
please mark the corresponding post as answer to your question.
Regards, Stephan