DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Check DataPlugin Date Programatically

What is the best way to check a DataPlugin's "last export on" date?  I need to update a DataPlugin via a script (from a network uri file), and the only way that I can figure out to see if the uri file is newer is to do a date check on the URI file and the VBS file in the user's C:\Documents and Settings\All Users\Application Data\National Instruments\Shared\USI\Plugins\DataPlugins\MyDataPlugin\ folder.  Is there a better way?

 

I tried to CTRL-A the properties dialog of the DataPlugin...but no result.

0 Kudos
Message 1 of 5
(4,008 Views)

Hi Julia!

 

I have a couple questions for you. Just to make sure, you are asking how to check this through the Script, correct? I am a little confused on what you mean by checking the date, if you could post an example of how you are accessing the information you want currently, it would help out.

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

Hi Julia,

 

You mean that you want to check the freshness date of the CLIENT DataPlugin, right?  So that would be the last IMPORTED DataPlugin date, right?  This is fundamentally different from asking the computer the DataPlugin was created on when the last time was that it exported the DataPlugin to a URI file.

 

I'll see what R&D has to say,

Brad

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

Hi Brad,

 

Yes, this is exactly what I want.  I have a network library of URI DataPlugins, and many users have these installed on their machines. If I make changes to the network copy, I would like the users to use the new version.  I already have a function that checks if a user has the required client DataPlugin on their computer and if they don't, the script installs it before proceding.  I would like to add an additional check to see if the client version is the same version that I have on the network.

 

Julia

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

Hi Julia,

 

I checked with R&D, and there is nothing that DIAdem or USI provides to make this easier.  The file property options you've already outlined are all that I know of.  R&D did officially add your request to the list of desired future features.

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

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