DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting Installed Data Plugin

Hi,
 
What is the best method to programatically detect if a user has registered a data plugin?  I have some scripts that a user runs that will try to automatically import files via a certain plugin and want to register it first if a user has not already. 
 
Thanks!
 
Julia Moeller
0 Kudos
Message 1 of 5
(3,732 Views)

Hi Julia,

I don't know of a function that returns this information, though I agree that would be highly useful.  Perhaps R&D will chime in and enlighten us.  In the meantime, the best I can offer is a hokey workaround:

FilePath = "any file on your hard drive"
DataPlugin = "Foo"
On Error Resume Next
Call DataFileLoad(FilePath, DataPlugin)
ErrMsg = Err.Description
On Error Goto 0
IF InStr(LCase(ErrMsg), "unknown") > 0 THEN MsgBox "DataPlugin is Unknown"

Cheers,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 5
(3,720 Views)

Hi Julia,

please have a look at "FileFilterExist" which exactly does what you are looking for. I am not sure what version of DIAdem introduced this function. Its definitely there in 10.1 and I think it was introduced with 10.0

Andreas

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

Hi Julia,

There you go, R&D did have an answer.  I just checked, and the "FileFilterExist()" function exists from DIAdem 10.0 onward.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 4 of 5
(3,696 Views)
Fantastic!  It works very well - thanks again.
0 Kudos
Message 5 of 5
(3,693 Views)