Hi Chris,
I’m setting up labjack as an alternative to NIDAQ and got the following error when loading the experiment (after upgrading mworks into Version 0.12.dev (2022.09.20)):
00:02:38: ERROR: Failed to create object.
Extended information:
reason: No factory for object type: iodevice/labjack_ljm
location: labjack.mwel: line 1, column 1
object_type: iodevice/labjack_ljm
ref_id: idm35182208572048
component: labjack
parser_context: mw_create
I see LabJackLJM.bundle in /Library/Application Support/MWorks/Plugins/Core.
I’m using model T7 and installed the LabJack LJM library. T7 is working fine as I did the labjack’s quick start tutorial. Is there any other procedure I need to complete?
Here’s piece of code I’m using:
iodevice/labjack_ljm labjack (
update_interval = 1ms // 3ms
device_type = T7
connection_type = USB // ETHERNET
// identifier = LJM_idANY // 192.168.1.207 // example
autostart = true // NO
) {
iochannel/labjack_ljm_digital_output(
line = FIO0 // example
value = reward_line
)
iochannel/labjack_ljm_digital_output( // target on
line = FIO2
value = labjack_target_on
)
iochannel/labjack_ljm_digital_output( // cue on
line = FIO3
value = labjack_cue_on
)
}
start_io_device (labjack)
Thanks,
Hansem