I have written several python scripts working both on Windows 7 and Ubuntu 16.04LTS for my 6404D.
But I am facing an issue in streaming mode, a script working fine on Windows reports an error on Linux (0x0D, PICO_INVALID_PARAMETER, A parameter value is not valid.) when calling the RunStreaming function of the driver.
Here are the values of the parameters for the call:
I am using the latest version of the driver libps6000 is already the newest version (1.4.6-6r13).
Is there any known issues for the linux driver with streaming mode or is there anything wrong with my code?
The parts of code responsible for evaluating parameters are exactly the same between Windows and Linux. The only thing that comes to my mind is the difference in declared types and how ctypes handles it between windows/linux - especially int32 vs uint32 or on system level long in win is int32 while in linux it is int64. What types do you pass while declaring argtypes?
Thanks for the snippet. I can already see that you have used c_int16 for enums, where it should be c_int32.
In my examples I use the following argtypes: