The GalvoAnalog
class controls a Galvo mirror by setting its
position through a fixed output voltage using an NI (National
Instruments) DAQ device. The Galvo mirror is positioned by adjusting
the analog output voltage within a specified range (-10V to 10V).
The class sets the galvo mirror to a fixed angle corresponding to
the voltage specified by setVoltage
. See also the GalvoDigital
class which does dynamic or continuous scanning.
-
InstrumentName
-
Description: Descriptive name for the instrument.
-
Type: String
-
Default:
'GalvoAnalog'
-
Voltage
-
Description: Current output voltage applied to the galvo system.
-
Type: Float
-
Units: Volts
-
DAQ
-
Description: The NI DAQ session used for controlling the analog output voltage.
-
Type: DAQ Session Object
-
MinVoltage
-
Description: Minimum allowable output voltage of the NI DAQ card.
-
Type: Float
-
Default:
-10
-
Units: Volts
-
MaxVoltage
-
Description: Maximum allowable output voltage of the NI DAQ card.
-
Type: Float
-
Default:
10
-
Units: Volts
Hidden Properties
StartGUI
- Description: Flag for determining whether to pop up a GUI upon object creation.
- Type: Boolean
- Default:
false
obj=mic.GalvoAnalog('Dev1','ao1');
- Initializes the GalvoAnalog object using the specified NI device (e.g., 'Dev1') and analog output channel (e.g., 'ao1').
- delete: Cleans up the object and sets the output voltage to 0V.
- exportState: Exports the current state of the Galvo.
- setVoltage: Sets the Galvo position by adjusting the output voltage.
mic.abstract.m MATLAB NI-DAQmx driver installed via the Support Package Installer