xxxxxxxxxx
10241
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}let table;
function setup() {
createCanvas(400, 400);
// Create a table with columns and rows
table = new p5.Table();
table.addColumn('Time_(us)');
table.addColumn('Device1');
// Add some rows
let row1 = table.addRow();
row1.setString('Time_(us)', '100');
row1.setNum('Device1', 1);
let row2 = table.addRow();
row2.setString('Time_(us)', '200');
row2.setNum('Device1', 0);
// Print initial table
printTable('Initial table:');
// Attempt to modify a value in the first column
try {
table.getRow(0).setString(0, '150'); // This should throw an error
} catch (err) {
console.error('Error when modifying table:', err);
}
// Print the table again to verify no changes
printTable('After attempted modification:');
}
function draw() {
background(220);
}
function printTable(message) {
console.log(message);
for (let i = 0; i < table.getRowCount(); i++) {
console.log('Row', i, table.getRow(i).arr);
}
}
function hi() {
console.log("hello world");
for (let i = 0; i < 100; i++) {
console.log(i);
}
}