02-27-2014 02:48 PM
I'm trying to generate a function panel using the 'generate function tree' option. I need two SLD (slider) bars, but seems to only take the last SLD defined.
The snippet below will correctly show the SLD with the correct FmtWinOpt enums
///HIPAR 7/Format with which to evaluate the passed in value ///SLD 7/FmtWinOpt
but if I change it to
///HIPAR 7/Format with which to evaluate the passed in value ///SLD 7/FmtWinOpt ///HIPAR 8/resolution to be used when printing the number to the screen ///SLD 8/Precision
The slider for parameter 7 no longer shows (though the help is still correct) and now I have a slider for parameter 8 showing correctly.
Is there's something I'm missing or am I only allowed 1 slider per function?
Thanks
Solved! Go to Solution.
03-05-2014 03:43 AM
Hello Mark!
I'm afraid that the behaviour you are seeing appears to be a bug in the CVI function tree generation mechanism and that there is currently no workaround for this issue (you can track the bug in the future with ID #456464).
The only way you could correct the behaviour is manually replacing the ring controls with slider controls in the generates function panel.
Thank you and sorry for the inconvenience!
- Johannes
03-05-2014 07:47 AM
Thank you for the response Johannes!
Always good to know it's not me doing something not smart (for a change).
03-18-2014 05:33 AM
Hello Mark,
It appears that this behaviour is actually not a bug.
According to this help topic:
This tag applies only to the function immediately following the tag. Do not include multiple instances of this tag for a function. If you do so, the last instance overrides the previous instances.
So in order to have the sliders generated correctly you should put all controls in one SLD tag like below:
///SLD 7/FmtWinOpt,8/Precision
This also applies to other tags.
Regards,
Constantin
03-18-2014 08:45 AM
Much obliged Constantin! Had no idea you could chain the tags like that. Beats having to add it manually each time!