LabJack Examples

By using MD LabJack GUIs and other MD GUIs (Graphical User Interfaces), the amount of code is reduced 2 to 5 times depending on the example.

Basic MatDeck examples for LabJack T series

Example 1 – ConfigLabJackTxAIN (PDF, MDD)

  • Configuring Analog Inputs AINs using MD C script
  • Configuring Analog Inputs AINs using GUI

Example 2 – ConfigLabJackTxDAC (PDF, MDD)

  • Configuring Analog Output DAC using MD C script
  • Configuring Analog Output DAC using GUI
  • Runs the Analog Output – DAC in Stream mode

Example 3 – ConfigLabJackTxDIO (PDF, MDD)

  • Configuring Digital PWM Output using MD C script
  • Configuring Digital PWM Output using GUI
  • Simply adding 2D Graphs by using a GUI without using code

Example 4 – MultipleConfigSameDevice (PDF, MDD)

Applying multiple configurations on the same device while it is working and creating a table of measuring results for all configurations.

  • Configuring and running device T7 – task1
  • Again configuring and running T7 – task2
  • Again configuring and running T7 – task3
  • Creating common measurement result report tables with the measurements from task1, 2 and 3
  • Exporting a report table with all measurements to Excel (Excel file will automatically be created)
  • Creating Text Report file with the names of tasks and all measurements, writing the date and time of when the report is generated.
  • If you are doing multiple tests like production testing you can generate a report again by pressing the Evaluate icon, you don’t need to close and open file again.

Example 5 – MultipleConfigWithTable (PDF, MDD)

  • Same as Example 4 – only the table is created by table cell commands

MatDeck instrument panel for LabJack T series examples

Example 6 – TemperatureVirtument (PDF, ZIP)

  • Configuring a PWM output that generates heat and measuring temperature by MD C script
  • Displaying a MD instrument panel Virtumet
    • Slider for setting up PWM duty cycle
    • Digital and Analog thermometer
    •  Temperature graph by time

Example 7 – TemperatureVirtumentGUI (PDF, ZIP)

  • Configuring a PWM output that generates heat and measuring temperature by GUI
  • Displaying a MD instrument panel Virtumet
    • Slider for setting up PWM duty cycle
    • Digital and Analog thermometer
    • Temperature graph by time

More about MatDeck Virtument

MatDeck Database for LabJack T series example

Example 8 – Labjackdatabase (PDF, ZIP)

  • Configuring Analog Inputs AINs for thermocouples using a LabJack GUI
  • Add a database and store AINs measurements in the database every 30 seconds
    • Generate temperature graphs by using a MD GUI
    • How to create a database and records table

Advanced MatDeck examples for LabJack T series

Example 9 – LabJack_PID_T_Direct_AT_example (PDF, MDD)

  • Configuring a device by MD C script
  • PID controller using MD C script

Example 10 – LabJack_PID_T_Direct_AT_GUI_PID_Script (PDF, MDD)

  • Configuring a device by MD C script
  • PID controller using GUI

Example 11 – LabJack_PID_GUI_ALL (PDF, MDD)

  • Configuring a device by GUI
  • PID controller using GUI

Example 12 – Opticalsystem (PDF, MDD)

  • IR optical communications by PWM mode in MD C script
  • Analog input AIN stream reading and displaying the graph
  • FFT GUI for filtering noise

Example 13 – OpticalsystemGUI2 (PDF, MDD)

  • IR optical communications by DIO PWM mode setup by GUI
  • Analog input AIN stream reading and displaying the graph
  • FFT GUI for filtering noise with a graph

Various additional examples written in MD C script (MD_Labjack.zip)

MatDeck Python examples for LabJack T series

Example Python 1 – Python_Document_LabJackConfig (PDF, MDD)

  • Running Python for LabJack T series DIO configuration in PWM mode within a MatDeck document
  • Compound Python code with image, text, titles and other MatDeck features
  • Improving Python limitations by generating results simultaneously in the same document (result reads the counter value after one second)

Example Python 2 – Python_in_MatDeck_LabJackConfig (PDF, MDD)

  • Using dedicated MatDeck Python Editor to code for LabJack T series DIO configuration in PWM mode. In addition you can open it in a .PY file        

Example Python 3 – Python_MatDeck_GUI_LabJackConfig (PDF, MDD)