My corperation just made JMP available and I just started using it today. I am writing a script to loop through specific columns to create 6 charts. The names of the column are only different by numbers 1 through 6.
You can see below that I am trying to get the loop to change the variable i from 1 to 6 and then creating a graph with xy variables that will change with each iteration. When I run this script though it crashes JMP. I cannot even get the debugger to load without crashing. I have successfully run this script with the for loop and i modifications, so something is wrong with my code. Any thoughts how I can fix this code?
i=0;
For(i=1,i=6,i++,
Graph Builder(
Size( 1154, 941 ),
Variables(
X( :Column( "T7 Car " || i || " Temp" ) ),
Y( :Column( "P7 Car " || i || " Press" ) ),
Overlay( :Name( "2018-13-07 Event Marker" ) )
),
Elements( Points( X, Y, Legend( 7 ) ) ),
Local Data Filter(
Add Filter(
columns( :Rate, :FC3 ),
Where( :Speed >= 12 & :Speed <= 50 ),
Where( :Fuel >= 5 & :Gas <= 100 )
)
)
);
);