motor::motor(void) : DefaultGUIModel("motor with Custom GUI", ::vars, ::num_vars) { setWhatsThis("<p><b>motor:</b><br>QWhatsThis description.</p>"); DefaultGUIModel::createGUI(vars, num_vars); // this is required to create the GUI customizeGUI(); init_motor(); update( INIT ); // this is optional, you may place initialization code directly into the constructor refresh(); // this is required to update the GUI with parameter and state values }
DAQCalibration::DAQCalibration(void) : DefaultGUIModel("DAQ Calibration Utility", ::vars, ::num_vars) { setWhatsThis("<p><b>DAQCalibration:</b><br>QWhatsThis description.</p>"); DefaultGUIModel::createGUI(vars, num_vars); customizeGUI(); update(INIT); refresh(); QTimer::singleShot(0, this, SLOT(resizeMe())); }
// Just the constructor. AMAmp::AMAmp(void) : DefaultGUIModel("AM Amp 2400 Controller", ::vars, ::num_vars) { setWhatsThis("<p>Controls the AM Amp 2400 amplifier by scaling the gains on the analog input/output channels and sending a mode telegraph to set the amplifier mode (custom).</p>"); DefaultGUIModel::createGUI(vars, num_vars); initParameters(); customizeGUI(); update( INIT ); DefaultGUIModel::refresh(); QTimer::singleShot(0, this, SLOT(resizeMe())); };
Sync::Sync(void) : DefaultGUIModel("Sync", ::vars, ::num_vars), ModelIDString("") { setWhatsThis("<p><b>Sync:</b><br>This module allows you to synchronize other modules that are derived from the DefaultGUIModel class. It does not work with other custom user modules. Type in a comma-separated list (with or without spaces) of numbers that are the instance IDs of the modules you want to synchronize. Instance IDs are located in the left-hand corner of the module's toolbar.</p>"); DefaultGUIModel::createGUI(vars, num_vars); customizeGUI(); update(INIT); ListLen = 0; refresh(); QTimer::singleShot(0, this, SLOT(resizeMe())); }
NoiseGen::NoiseGen(void) : DefaultGUIModel("Noise Generator", ::vars, ::num_vars) { setWhatsThis( "<p><b>Noise Generator:</b></p><p>Generates noise of the type specified.</p>"); initParameters(); initStimulus(); DefaultGUIModel::createGUI(vars, num_vars); // this is required to create the GUI customizeGUI(); update( INIT); refresh(); QTimer::singleShot(0, this, SLOT(resizeMe())); }
Clamp::Clamp(void) : DefaultGUIModel("Current Clamp", ::vars, ::num_vars) { setWhatsThis( "<p><b>Current Clamp</b></p><p>This plugin requires the SpikeDetect plugin, which indicates when a spike has occurred using a threshold method. This plugin allows you to deliver current steps or ramps. Choose the <b>Clamp Mode</b>, then set the parameters for the input amplitudes and step size. This plugin uses an absolute delay between the end of a command input and the beginning of the next command. You can repeat the series of command inputs as many times as you like. Use the <b>Randomize</b> checkbox to randomize amplitudes within each cycle. To run a current clamp protocol, toggle the <b>Pause</b> button. You can edit parameter values directly in the textboxes, but you must click <b>Modify</b> to commit the changes. In <b>Step Mode</b>, you can choose to plot the FI Curve as it is generated and save a screenshot of the plot or save the data to a plain text file. The frequency is computed by averaging all the ISIs detected during a command step and taking the reciprocal. A linear fit is performed on all data points currently displayed in the scatterplot, not simply the data points acquired in the last run. Saving data points to a file will only save the data points acquired in the last run. You can completely overwrite or append the data to an existing file.</p>"); initParameters(); initStepArray(); DefaultGUIModel::createGUI(vars, num_vars); // this is required to create the GUI customizeGUI(); update(INIT); refresh(); // this is required to update the GUI with parameter and state values QTimer::singleShot(0, this, SLOT(resizeMe())); printf("Loaded Current Clamp:\n"); }