<< Main Manual

Tutorial #4. Online acquisition of ΔF/F data

With a Labjack U3 LV or similar device, PhysImage can also send online-detected ΔF/F signals from live imaging to a ADC like a Axon Instruments Digidata. This is accomplished using the Micro-Manager plugin to ImageJ and BeanShell scripts that can be used by Micro-Manager to calculate the online ΔF/F as a voltage value as each image in a time-series is acquired. Then, this voltage value can be sent through the Labjack to a ADC (like a Digidata) using a BNC cable attached to DAC0 and GND on the U3.
    For the software side, the Labjack driver must be installed and a simple custom Java->Driver binding library used to control the U3 from Java, BeanShell, or Jython. This binding library is called org/jah/SimpleLabjackControl and requires the native SimpleLabjackControl.dll on Windows. Further details on this custom library built on 64-bit Windows 7 can be found on the Labjack Forums.

Example #1

Below is a simple Jython example of setting the DACs on the U3 and does a voltage ramp on both channels:

>>> import time
>>> labjack = LabjackFactory.getLabjack()
>>> labjack.initializeLJ()
>>> labjack.setDAC0Voltage(0.0)
>>> labjack.setDAC1Voltage(0.0)
>>> voltage = 0.0
>>> for i in range(2000):
...    voltage += 0.001
...    labjack.setDAC0Voltage(voltage)
...    time.sleep(0.001)
>>> labjack.setDAC0Voltage(0.0)
>>> labjack.setDAC1Voltage(0.0)

After the data is in the WaveManager it can be manipulated or plotted as a chart in the previously demonstrated ways.

<< Tutorial #3. Importing electrophysiological data
>> Tutorial #5. Auto-generated figures using Layouts

<< Main Manual