NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if parameter exists

I am trying to programatically Enable and Disable database logging. Database is set to disable from Configure>Result Processing..., I write to Parameters.ModelPluginConfiguration.Plugins[1].PluginSpecific.Options.DisableDatabaseLogging value of False. This does not enables database and nothing gets comitted. All this customization is done in PreUUT.

 

Also need to have a precondition to find if a Parameter exists.

PropertyExists("Parameters.ModelPluginConfiguration.Plugins[Locals.DatabaseIndex].PluginSpecific.Options.DisableDatabaseLogging")

 

But the above always returns False. Need to receive True when Locals.DatabaseIndex is set to 1 as that is the location of Database under Configure>>ResultProcessing.

 

Thanks.

*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 2
(4,447 Views)

Your lookup string is wrong. It has to look like this:

PropertyExists("Parameters.ModelPluginConfiguration.Plugins["+Str(Locals.DatabaseIndex)+"].PluginSpecific.Options.DisableDatabaseLogging")

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(4,296 Views)