Tested your sample python script stream_basic. Functions OK. Anyhow I would like to get values from AIx as INT16 not as Voltage value
Below mod to the script ends up warning: LJM library warning code 203 LJME_USING_DEFAULT_CALIBRATION
ljm.writeLibraryConfigS("LJM_STREAM_AIN_BINARY",1)
Is it possible to read non calibrated values from T7/AIx?
Thx, Tommi
Yes, you can stream binary analog input readings. Ignore that exception with the warning and continue with reading the samples. So something like this when starting your stream:
# Configure and start stream
try:
scanRate = ljm.eStreamStart(handle, scansPerRead, numAddresses, aScanList, scanRate)
except ljm.LJMError as ljme:
if ljme.errorCode == ljm.errorcodes.USING_DEFAULT_CALIBRATION:
# Display the default calibration warning. Stream mode has started.
print(ljme)
else:
# Other warning/error. Raise its exception for normal error handling.
raise ljme
Since the LJME_USING_DEFAULT_CALIBRATION warning of eStreamStart is meaningless when LJM_STREAM_AIN_BINARY is enabled, it's been disabled in the development branch of LJM. Any future version of LJM after 1.20 will not give the warning.
Thanks for reporting this, Tommi!
Thank you for the good support/service
/Tommi