06-15-2015 06:52 AM
Additional:
I have been looking for ways to change the line width of the plotted channels in the VIEW, but unfortunately I can't find a solution. Is there a way to change the line width the VIEW?
With kind regards,
Stijn
06-15-2015 07:40 AM
Hi Stijjn,
No, as of DIAdem 2015, graphs in VIEW can only draw curves with one line width. If you don't have too many data points, you can add square, filled markers to make the curves show thicker, but that's about all I have to suggest.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
06-15-2015 10:21 AM
Hello Brad,
Attached the script & user dialog box I created to do adjustments in the View / View legend.
Is it possible to do the next adjustments automatically?
- Change the distance from the Y-axis to the left with the maximum amount of digits of the selected channels
- Change the legend width with the length of the channel name from the channel with the longest name
Is it possible to pre select some of the checkboxes?
Thanks!
With kind regards,
Stijn
06-16-2015 03:34 AM
Hi Guys,
You can set or preset the CheckboxControlName.Value = 1 to check the checkbox. You can do that interactively in the property table of the SUDialog editor and save the *.sud file, or you can do that programmatically in the initialization callback.
You can try to come up with a script to scale the legend width according to the channel name lengths, but that will be hit or miss and probably will depend on screen resolution, etc.
It is possible to set the Y axis location from the left side programmatically, but I don't know of any way to determine how many digits are shown at any given time.
Brad Turpin
DIAdem Product Support Engineer
National Instruments