Functions
LabjackU6Library.openUSBConnection
— Method.openUSBConnection(localID)
Open USB connection to Labjack and return a HANDLE. Use -1
for "first found" or specify local ID for unit.
Examples
julia> HANDLE = openUSBConnection(-1)
Ptr{Nothing} @0x0000000001sx243
julia> HANDLE = openUSBConnection(-1)
Open error: No U6 devices could be found
Ptr{Nothing} @0x0000000000000000
LabjackU6Library.closeUSBConnection
— Method.closeUSBConnection(HANDLE)
Closes USB connection to Labjack with HANDLE.
Example
julia> closeUSBConnection(HANDLE)
getCalibrationInformation(HANDLE)
Retrieves calibration
Example
julia> caliInfo = getCalibrationInformation(HANDLE)
LabjackU6Library.labjackSend
— Method.labjackSend(HANDLE,sendIt)
Sends package sendIt to device. See example in the examples directory and the LabJack documentation on how to construct the buffer
LabjackU6Library.labjackRead!
— Method.labjackRead!(HANDLE,recordIt)
Reads the return package from the device and stores it in recordIt. See example in the examples directory and the LabJack documentation on how to construct the recordIt buffer and how to interpret the output.
LabjackU6Library.labjackStream!
— Method.labjackStream!(HANDLE,recordIt)
Reads the return package from the device in streaming mode and stores it in recordIt. See example in the examples directory and the LabJack documentation on how to construct the recordIt buffer and how to interpret the output.
LabjackU6Library.calibrateAIN
— Method.calibrateAIN(caliInfo,recordIt,resIn,gainIn,bits24,i,j,k)
Calibrates the voltage from the AIN reads. See example in the examples directory and the LabJack documentation on how to pick i,j,k for each channel (which depends on the structure of the recordIt package). Also see u6Feedback.c for another example.
- caliInfo is the calibration data
- recordIt is the package retrieved
- resIn is the resolution of the voltage read
- gainIN is he gain setting
- bits24 is the bit setting
- i,j,k are indices corresponding to the return bytes for the channel