I'm trying to automate graph generation which looks good but when adding the reference lines they're not plotted. How this can be accomplished through the loop?
As test I've also tried to give a number or the index to the Scalebox but nothing appear.
Data Table( "NC119_1" ) << Graph Builder(
Page Gap Size( 1 ),
Variables(
X( :timeTrace ),
Y( :VI2, Side( "Right" ) ),
Y( :VI1, Position( 1 ) ),
Page( :tracenum )
),
Elements(
Points( X, Y( 2 ), Legend( 1 ) ),
Points( X, Y( 2 ), Legend( 2 ) ),
Points( X, Y( 1 ), Legend( 3 ) ),
Points( X, Y( 1 ), Legend( 4 ) ),
by ( :tracenum )
),
For( i = 1, i <= 1, i++,
Where( :tracenum == i ),
SendToReport(
Dispatch(
{},
"timeTrace",
ScaleBox,
{Format( "Fixed Dec", 12, 0 ), Min( -38.696 ), Max( 3200.00 ),
Inc( 500 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"VI1",
ScaleBox,
{Format( "Fixed Dec", 12, 1 ), Min( -0.1367445006 ), Max( 2.5845443676 ),
Inc( 0.5 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"VI2",
ScaleBox,
{Format( "Fixed Dec", 12, 3 ), Min( -1 ),
Max( 0.01 ), Inc( 0.01 ), Minor Ticks( 0.1 )}
),
Dispatch(
{},
"timeTrace",
ScaleBox( 1 ),
{Add Ref Line( 1200, "Solid", "Black", "", 1 )}
),
Dispatch(
{},
"VI1",
ScaleBox( 1 ),
{Add Ref Line( 0.3, "Solid", "Black", "", 1 )}
)
)
)
);