04-22-2022 07:12 AM
Hi all,
I'm using PropertyLoader feature to import property values from excel file to my sequence at runtime.
My sequence can be used in parallel by mutiple slots.
I saw that if a slot executes a property loader step, the sequence file is modified for all other slots.
It's a big problem for my application.
Is it the normal? is it possible to import properties without modifying the sequence for all other slots?
Thanks in advance for your help.
04-24-2022 10:22 PM
Hi,
It should work for locals and file globals on thread/socket basis.
For fileglobals you neee to go to Edit menu --> Sequence file properties --> Seperate file globals for execution. Ensure this is selected.
I have a sequence with 1 file global and 1 locals.
Property loader step will update this two values.
I have run propertly loader for only one socket.
Check the variables that got updated for the sockets from propertly loader :
As you can see only the socket which ran the property loader got updated with the new value.
Hope this helps.
Ravi
04-25-2022 02:08 AM
Thanks for your response.
I confirm, it's work for loacals variables. But I'm using property loader to modify sequence properties, like Step Mode.
If you modify Step mode from Normal to Skip with property loader, all others executions (in other Sockets) will have this modification.
Normally, typical usage of property loader is to modify tests limits in runtime. I'm sure that tests limits will be modified in all current executions.
Thanks
04-25-2022 02:31 AM
Hi,
As you can see below the limits are not modified when property loader step is only executed for thread 0 and skipped for thread 1/
The step.limts values are only loaded for thread 0.
You can also use in pre expression step.variable= locals.x and download locals.x through property loader.
Ravi
04-25-2022 02:54 AM
you are right. test limits are just modified in the current execution which execute the porperty loader.
But it's not the case for "Step Mode" property.
Does it means that all properties are not managed by the same way?
I need to change also step mode property
Thanks
04-25-2022 04:01 AM
Hi,
Yes you are correct the TS properties seems to be shared :
You can play around with the preconditions for each step :
Locals.tempnum==0
where locals.tempnum gets updated from property loader in the first step.
Regards,
Ravi
04-25-2022 08:03 AM
What is the rule? which properties are modified in the local execution? Which properties are modified in global?
I need to know in order to be sure that the propertes are modified onlmy localy.
Thanks
04-25-2022 08:16 AM
Maybe all sub properties of "TS" don't support live modification by property loader.
I need a confirmation, thanks
04-25-2022 01:08 PM
Hi,
Check this link :
https://zone.ni.com/reference/en-XX/help/370052AA-01/tsapiref/reftopics/propertyflags/
Right click on TS variable and choose edit flags.
You can see the property its shared using runtime.
If you refer my previous response it shows as shared.
Regards,
Ravi
04-26-2022 02:48 AM
I would like to modify Arguments of a sequence call by property loader (without sharing with other executions)
I see that "TS" property container is shared, but "SData" sub property not and ActualArgs" not, and all arg sub properties not.
Which properties do I have to change flag?
Thanks again for your helpful support