|
How to use Labjack U12 along with LJController object? This is quite simple:
- Connect any kind of switches to your LJ U12 digital inputs
- Connect LEDS, or relay, ... to your LJ U12 digital outputs
- Connect pedals to your LJ U12 analog inputs
- Connect digital voltmeter, ... to your LJ U12 analog outputs
- Connect a button to the LJ U12 counter input. The counter will count events on this button
- Here is an example, the foot controller board (inside view) we made. Full details in Foot controller board page. As you can see, the inside of the foot controller board is similar to a Max/Msp patch...
|
In your Max/Msp patch, you then need:
- One ljcontroller to control the driver (start/stop scan, set the scan frequencies, get version, get serial number of your LJ U12, ...
- One ljcontroller for each switch. It has one output for pressed state (bang when switch is pressed) and one for released state (bang when switch is released).
- One ljcontroller for each LED. You can order to led to switch ON, to blink, to double blink (delay are configurable)
- One ljcontroller to manage the counter (reset/read/write value)
- You can have as many ljcontroller listeners as needed for any digital/analog input. All the listeners are receiving events coming from their input.
- You can configure ljcontroller listeners to listen at PRESSED only, or RELEASED, or both events
- You can encode the 4 main digital inputs to control 15 buttons (so you can have 16+15 switches!). You then just tell the listeners which particular number they have to listen at. We're using this configuration in the foot controller board we made.
- Even if you application is hidden in the background, it will listen at LJ U12 events
- You can ask objects about their internal state, for debugging purpose
- You can ask information about the Labjack currently connected
|
|
|