Sto cercando di automatizzare la generazione del grafico che sembra buona ma quando si aggiungono le linee di riferimento non vengono tracciate. Come questo può essere realizzato attraverso il ciclo?
Come test ho anche provato a dare un numero o l'indice allo Scalebox ma non appare nulla.
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 )}
)
)
)
);