Rilevare un salto in un parametro e riportare dove si trovaCara comunità JMP,
Sto lottando per trovare un modo per rilevare la coordinata X di un punto che rappresenta la rottura di un prodotto.
Sono sicuro che è possibile farlo con gli script, ma ho pochissima esperienza con JMP.
Qualsiasi aiuto è benvenuto !!
I migliori saluti,
/ JM

Ri: Rilevare un salto in un parametro e riportare dove si trovaI nomi delle colonne JMP non fanno distinzione tra maiuscole e minuscole ... nella maggior parte dei casi, pertanto il riferimento come "v" o "V" non ha alcun impatto sull'esecuzione del codice.Ri: Rilevare un salto in un parametro e riportare dove si trovaMolte grazie! Aiuta molto. Dato che mostriamo il modo di scrivere in JMP, inserisco il codice e scopro che c'è stato un piccolo errore. Ho sostituito "imposta ogni valore (e-06)" per impostare ogni valore (-6) "-log10 I- e funziona perfettamente. Inoltre, posso chiederti perché in JMP: dtsumm: v [dtsummRow] non sta generando alcun errore. Avrei messo dtsumm: V [dtsummRow] come il nome della colonna è in maiuscolo. Ancora una volta, grazie mille per il tuo aiuto! / JMRi: Rilevare un salto in un parametro e riportare dove si trovaEcco uno script che farà i calcoli per determinare il crossover
Names Default To Here( 1 );
dt = Current Data Table();
// Create a summary table to hold the new information
dtsumm = dt << Summary( Group( :batch, :Samples ID ), Freq( "None" ), Weight( "None" ) );
// Add a new column to hold the calculated value for the Voltage value when the data crosses
// crosses the target value
dtsumm << New Column( "V" );
// Create a new column that has the target value
dtsumm << New Column( "Log10 I", set each value( e-06 ) );
// Set the active data table back to the original data table
Current Data Table( dt );
// Loop across the active data table and calculate the voltage when the Y variable crosses the
// target value
For Each Row(
currow = Row();
curbatch = dt:batch[Row()];
cursampleID = :Samples ID[Row()];
// Get the row in the output table that matches the Batch value and Samples ID
// value for the row in the main table the looping is working on
dtsummRow = (dtsumm << get rows where( dtsumm:batch == curbatch & dtsumm:Samples ID == cursampleID ))[1];
// Don't process the data if the crossing point has been previously found
If( Is Missing( dtsumm:v[dtsummRow] ),
// Find all of the matching rows above the current looping row
Highrows = dt << get rows where( dt:batch == curbatch & dt:Samples ID == cursampleID & Row() > currow );
// If the target value lies between the current rows Y value and the next matching rows Y value then
// determine the crossing voltage value by doing an interprelation of the voltage values of the current row
// and the next matching rows value.
If( dt:Name( "Log10 I [A]" )[Row()] <= dtsumm:Log10 I[dtsummRow] & dt:Name( "Log10 I [A]" )[Min( Highrows )] > dtsumm:Log10 I[dtsummRow],
dtsumm:V[dtsummRow] = dt:V[Row()] + (dt:V[Min( Highrows )] - dt:V[Row()]) * (dtsumm:Log10 I[dtsummRow] - dt:Name( "Log10 I [A]" )[Row()])
/ (dt:Name( "Log10 I [A]" )[Min( Highrows )] - dt:Name( "Log10 I [A]" )[Row()])
);
);
);