HSI LabJack Settings Flashcards
1
Q
Handles
A
LJ_ERROR lj_cue;
LJ_HANDLE lj_handle = 0;
1
Q
Open LabJack
A
lj_cue = OpenLabJack(LJ_dtU3, LJ_ctUSB, “1”, 1, &lj_handle);
lj_cue = ePut(lj_handle, LJ_ioPIN_CONFIGURATION_RESET, 0, 0, 0);
2
Q
PWM Signal
A
lj_cue = AddRequest(lj_handle, LJ_ioPUT_CONFIG, LJ_chTIMER_COUNTER_PIN_OFFESEt, 4, 0, 0);
lj_cue = AddRequest(lj_handle, LJ_ioPUT_CONFIG_, LJ_chTIMER_CLOCK_BASE, LJ_tc1MHZ_DIV, 0, 0);
lJ_cue = AddRequest(lj_handle, LJ_ioPUT_CONFIG, LJ_chTIMER_CLOCK_DIVISOR, x, 0, 0);
lj_cue = AddRequest(lj_handle, LJ_ioPUT_CONFIG, LJ_chNUMBER_TIMERS_ENABLED, 1, 0, 0);
lj_cue = AddRequest(lj_handle, LJ_ioPUT_TIMER_MODE, 0, LJ_tmPWMx, 0, 0);
lj_cue = Go();
3
Q
A