Skip to content

Instantly share code, notes, and snippets.

View futureshocked's full-sized avatar

Peter Dalmaris futureshocked

View GitHub Profile
@futureshocked
futureshocked / LJ - 09.60 - blink_COMM_STATUS_LEDs.lua
Created April 26, 2021 02:27
This script shows how to control an LabJack T4 COMM STATUS LED using Lua.
@futureshocked
futureshocked / LJ - 09.70 - voltage_follower_verbose.lua
Created April 26, 2021 02:26
This script shows how to control an LED with FIO5 with a Lua script.
--[[
LJ - 09.70 - voltage_follower_verbose.lua
This script shows how to control an LED with FIO5 with a Lua script.
Components
----------
- LabJack T4
- Voltmeter/Multimeter
@futureshocked
futureshocked / LJ - 09.80 - counter_no_debouncing.lua
Created April 26, 2021 02:25
This program demonstrates how to use digital lines as simple counters.
--[[
LJ - 09.80 - counter_no_debouncing.lua
This program demonstrates how to use digital lines as simple counters.
This script is a simplified version of the one at
https://labjack.com/support/software/examples/lua-scripting/counter-examples/23-counters
This script demonstrates how to create a simple counter on FIO4.
Components
----------
@futureshocked
futureshocked / LJ - 09.90 - counter_with_debouncing.lua
Created April 26, 2021 02:24
This program demonstrates how to configure counters, with debounce, using DIO channels.
--[[
LJ - 09.90 - counter_with_debouncing.lua
This program demonstrates how to configure counters, with debounce, using DIO
channels. The debounce time for each counter will be between debounceInt and
2*debounceInt milliseconds. The debounce time is determined by the duration
of the interval and when in the interval the first input is received.
Original script:
https://labjack.com/support/software/examples/lua-scripting/counter-examples/23-counters-debounce
@futureshocked
futureshocked / LJ - 09.100 - convert_AIN_with_function.lua
Created April 26, 2021 02:23
This program demonstrates how to use a formula to scale the voltage measured on AIN0.
--[[
LJ - 09.100 - convert_AIN_with_function.lua
This program demonstrates how to use a formula to scale the voltage
measured on AIN0.
Components
----------
- LabJack T4
@futureshocked
futureshocked / LJ - 10.30 - AIN0_read.py
Created April 26, 2021 02:21
This script shows how to read voltage from AIN0.
'''
LJ - 10.30 - AIN0_read.py
This script shows how to read voltage from AIN0.
Components
----------
- LabJack T4
- Potentiometer
@futureshocked
futureshocked / LJ - 10.40 - LJ - 10.40 - DAC0_write.py
Created April 26, 2021 02:21
This script shows how to write voltage to DAC0.
'''
LJ - 10.40 - LJ - 10.40 - DAC0_write.py
This script shows how to write voltage to DAC0.
Components
----------
- LabJack T4
- Voltmeter/Multimeter
@futureshocked
futureshocked / LJ - 10.50 - FIO4_blink.py
Created April 26, 2021 02:20
This script shows how to control an LED with FIO4.
@futureshocked
futureshocked / LJ - 10.60 - lua_script_host_control.py
Created April 26, 2021 02:19
This script shows how to control an LED with FIO4 by deploying a Lua scripts to the LabJack. This script also demonstrates communication between this Python script and the on-board Lua scrip via user RAM.
'''
LJ - 10.60 - lua_script_host_control.py
This script shows how to control an LED with FIO4 by deploying a Lua scripts
to the LabJack. This script also demonstrates communication between this Python
script and the on-board Lua scrip via user RAM.
Components
----------
@futureshocked
futureshocked / LJ - 10.70 - simple_logging.py
Created April 26, 2021 02:16
This script shows how to control an LED with FIO4 by deploying a Lua scripts to the LabJack. This script also demonstrates communication between this Python script and the on-board Lua scrip via user RAM.
'''
LJ - 10.70 - simple_logging.py
This script shows how to control an LED with FIO4 by deploying a Lua scripts
to the LabJack. This script also demonstrates communication between this Python
script and the on-board Lua scrip via user RAM.
Components
----------