ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,873 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,872 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,868 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,726 Views)

Thanks Lukas for sharing this information.

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