// Copy and paste this code into the NIS macro editor // Manually set the exposure, binning, etc // Close Ports ClosePort(3); ClosePort(7); // Open serial ports (3 for the stage and 7 for the Arduino) OpenPort(3, 9600, 8, "N", 1); OpenPort(7, 9600, 8, "N", 1); //*********************************************** // Tissue 1 // Move the stage to the appropriate coordinates WritePort(3, "MOVE X=0", 13, 0); Wait(5); WritePort(3, "MOVE Y=0", 13, 0); // Wait 15 seconds for the stage to finish moving Wait(15); // Prepare the fast time lapse acquisition ND_FastTimelapsePrepare("FULL NAME (INCLUDING DIRECTORY) FOR SAVED FILE", 2500,-1,5); // Start the Arduino program // Use A for the combined ET/MCR/FFR stimulation regimen WritePortEx(7, "A",-1,0,OutBuffer,0); // Start the image acquisition LiveSync(); ND_FastTimelapse(); // Add a 5 second buffer to ensure the stimulation and imaging have completed Wait(5); //*********************************************** // Copy and past above code block for each tissue and update tissue location