08-17-2007 03:48 AM
08-17-2007 10:14 PM
@stirlsilver wrote:
Hi all,
.
As for what this sub vi does, the max and min arrays store the max and min values of the y axes to be configured on the front panel, there are 6 strip charts and 20 data strands which can be plotted. When the user selects the data they want plotted in the strip chart, the property node of that strip chart is used to hide all the plots except the one selected and adjust the axes to the required scale. If someone could point out where I have gone wrong here that would be greatly appreciated!!
Stirling
08-17-2007 10:40 PM
08-17-2007 10:58 PM
08-18-2007 01:07 AM
08-18-2007 08:13 PM - edited 08-18-2007 08:13 PM
I looked at simplifying your code as a challenge. Attached is a VI (LV 8.2.1) and a screenshot of the block diagram. Since I was creating from scratch, I didn't have your actual rings or waveform charts. I just created 2 rings and 2 waveform chart references. These can be scaled to as many as you need.
If this is going in a subVI, you may want to make the rings and references as arrays, so you won't need numerous connector terminals for each ring and reference control. If you do that, you can eliminate the build array functions for those before the loops. It would also make the subVI more scaleable.
I also broke the property nodes into 2 loops. As it was, you were setting the property nodes 20 times for each of 6 charts. Only the active plot and visible? needed to be looped through 20 times. The actYscale, Max, and Min were the same for each of the 20 iterations, so they only needed to be done once.
One other possibility would be to do a defer panel updates before, then allow them after the code, so there aren't as many screen refreshes while the loops iterate.
Message Edited by Ravens Fan on 08-18-2007 09:17 PM
08-19-2007 02:15 AM - edited 08-19-2007 02:15 AM
Message Edited by stirlsilver on 08-19-2007 02:16 AM
08-19-2007 02:51 AM