LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SLD overwriting

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(4,095 Views)
Solution
Accepted by topic author MarksAlias

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

0 Kudos
Message 2 of 5
(4,038 Views)

Thank you for the response Johannes!

 

Always good to know it's not me doing something not smart (for a change).

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

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

Message 4 of 5
(3,938 Views)

Much obliged Constantin!  Had no idea you could chain the tags like that.  Beats having to add it manually each time!

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