05-08-2019 02:24 AM
I have a sequence which calls LabVIEW module with some parameter values, I want to read this parameter setting from a different VI.
I am able to get the step reference but not sure how to get the parameter value.
Basically I want to get parameter value of a sequence programatically without going through sequence.
05-08-2019 04:24 AM
It is a bit more complex than your current approach. Some hints:
1. Steps have a module adapter. The adapter is different for different programming languages
2. The configuration for the step adapter settings (aka: which module do i call) is stored in a hidden step property called "TS"
3. As pointed out in 1. and 2., the location of the module path is stored in a different step property depending on the used programming language
For parameters, it's essentially the same.
05-15-2019 05:23 AM - edited 05-15-2019 05:26 AM
I was able to get the all parameter and its value for a steps(which calls the VI)
I am able to read the Parameter name and different value(Type, In/Out etc) of it, but not able to get the value of "Log" setting. There is no such properties available.
https://zone.ni.com/reference/en-XX/help/370052W-01/tsapiref/reftopics/labviewparameterelement/
I observed, it is stored in TS.SData.ViCall.Parms[].AdditionalResult.CheckedState but not sure how to access this variable from a VI.
Can you please help
05-15-2019 07:38 AM
Logging is out of scope regarding parameters. The "Log" checkbox is only a convenient way from the Sequence Editor to configure "additional results". That's why you see that configuration in the AdditionalResult container.
If you want to access that information, the (generic) lookup string you already included in your post is appropriate.