11-04-2008 01:35 AM
11-04-2008 09:36 AM
Hi Brice,
I think the short answer is that DIAdem does not make this as easy as you want it to be. There is no setting for "Stacked, alternating left and right", though I can understand the appeal. To my knowledge there are two options to display N curves in this manner, either:
1) Configure N/2 axis systems with left/right Y axes and stack these axis systems one above the other
2) Configure one axis system with N+1 Y axes, located alternatingly on the left and right. The first Y axis has to span the whole axis system (100%), so you should configure N additional Y axes and ignore the first one.
Here is an example of workaround 2), though I fear this is what you referred to as "hell". But I would like to confirm that this visual display is what you want, and I would like to better understand the frustration you have with the current methods of achieving this display. You will need to load the standard "Example.TDM" data set in order to see the configured curves.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-04-2008 09:54 AM
11-05-2008 08:56 AM
Hi Brice,
I will forward your request on to R&D for a built-in Stacked-Alternating-Y-Axis option. It is possible to program this, but I'm curious what your starting point will be. Will you start with a layout with N curves in it and need to rework the Y Axes? Or will you start with a list of channels in a Group and need to create a curve for each of the channels? Or will you have a VBScript array of the selected channels and create a curve for each of the array elements?
I suppose the motivation to have the Y axis alternating is so that the Y Axis labels interfere less with each other?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-06-2008 01:22 AM
11-06-2008 03:08 PM
Hi Brice,
It took me a while, but I think I've created what you want. This VBScript should dynamically find all 2D graphs on the currently visible REPORT sheet, copy all the axis settings from the first (typically only) Y axis, then assign each configured curve to its own Y axis. The VBScript will re-use any additional Y axes that already exist, and it will create new Yaxes when there are not already enough and set all the Y axis properties to the same values as were in the first Y axis. Finally, the VBScript hides the first Y axis, which you always need to keep in the 0% to 100% Y scale state, even though no curves are assigned to it any more.
Start with a REPORT layout that is not in expanding mode (like the two TDR files I included in the ZIP file), then after you've "Stacked Alternating" you can switch the REPORT layout to name expanding mode if you want (this works with the two TDR files I included).
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-07-2008 02:47 AM