Greetings:
I am having an issue when initializing my STREAM_OUT0_BUFFER_SIZE smaller then 32 Bytes. When I run my "STREAM_OUT0_ENABLE" I get an error that my buffer size is invalid. My understanding is that the Buffer size is any value that is a power of 2. Please see the error bellow. There is no problem when I set the buffer to 32 and then enable but at 16 i get the error.
Thanks.
>>> from labjack import ljm
>>> Switch = ljm.openS("T7", "USB", "ANY")
>>> ljm.eWriteName(Switch,"STREAM_OUT0_BUFFER_SIZE",32)
>>> ljm.eWriteName(Switch,"STREAM_OUT0_ENABLE",1)
>>> ljm.eWriteName(Switch,"STREAM_OUT0_BUFFER_SIZE",16)
>>> ljm.eWriteName(Switch,"STREAM_OUT0_ENABLE",1)
Traceback (most recent call last):
File "<pyshell#22>", line 1, in <module>
ljm.eWriteName(Switch,"STREAM_OUT0_ENABLE",1)
File "/usr/local/lib/python2.7/dist-packages/labjack/ljm/ljm.py", line 545, in eWriteName
raise LJMError(error)
LJMError: LJM library error code 2615 STREAM_BUFF_SIZE_INVALID
The stream out buffer needs to be at least 32 bytes.