DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Registered Data Plugin from DIAdem Programatically

Solved!
Go to solution

Hi There,

 

Is there a way to remove the registered dataplugin from the DAIdem programtically. Like we can register a plugin calling ExtProgram(), similarly is there any command to remove the plugin?

 

FYI, I am working with DIAdem 10.2 version.

 

Waiting for your earliest response.

Priya

 

0 Kudos
Message 1 of 5
(4,696 Views)
Solution
Accepted by topic author pria

Hello Prija!

 

It is possible with the NI usireg tool and its '/u' option.

 

Try this code (please adapt the path to the URI file):

Call ExtProgram("""" & ProgramDrv & "..\Shared\USI\Bin\usiReg.exe""", "/u /v ""C:\SIF.uri""")

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
Message 2 of 5
(4,695 Views)
Solution
Accepted by topic author pria

Hi Matthias,

 

Thanks a lot for your quick reposnse. It did help me.

 

Priya

0 Kudos
Message 3 of 5
(4,691 Views)

There is another way to remove dataplugin, i am doing it this way:

 

If FileFilterExist("XLS_AutoLimCurve") Then
Set oFSO = CreateObject("Scripting.FileSystemObject")
sPluginsLocalPath = "C:\ProgramData\National Instruments\Shared\USI\Plugins\DataPlugins\" Call Navigator.Settings.RegisteredDataPlugins.Remove("XLS_AutoLimCurve") If oFSO.FolderExists(sPluginsLocalPath & "XLS_AutoLimCurve") Then Call oFSO.DeleteFolder(sPluginsLocalPath & "XLS_AutoLimCurve") End If
0 Kudos
Message 4 of 5
(3,549 Views)

Thanks Lukas for sharing this information.

0 Kudos
Message 5 of 5
(3,541 Views)