DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to register a dataplugin via a vbs script?

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 

0 Kudos
Message 1 of 4
(6,389 Views)

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

0 Kudos
Message 2 of 4
(6,362 Views)

Stephan_D,

 

thank you very much, your proposal works quite fine.

0 Kudos
Message 3 of 4
(6,319 Views)

Hi Heinz-Hermann,

 

please mark the corresponding post as answer to your question.

 

Regards, Stephan

0 Kudos
Message 4 of 4
(6,316 Views)