The maximum for cSamples seems to be 1024, even though in the GUI I can select a value up to 8192, why is that? (I did adjust the length of rgdSampleTmp)
Also, if I just setup up the rdgSamples, I cannot observe an output, I had to find a work around using bytearray and then creating a ctype. I did not find a clear explanation why that is.
rgdSampleTmp = bitstring.BitArray('0x''0000000000000000000000000000000000000000000000000000000000000000''FFFFFFFFFFFFFFFFFFFFFF0000000000000000000000''0000000000000000000000FFFFFFFFFFFFFFFFFFFFFF''FFFFFFFFFFFFF0000000000000000000000000000000''00000000000000000000000000000000000000000000''0000000000000000')# 256 bytes --> 1024 bit
ba = bytearray(data.bytes)
rgdSample =(c_uint8 * len(ba)).from_buffer(ba)
Thank you very much for reading this and trying to help out, I am available for further questions. Have a nice day!
Question
Citronjack
Hi there,
I am currently working on generation patterns with the AD2. I am using python. I closely looked at the example. Among other functions it calls:
The maximum for cSamples seems to be 1024, even though in the GUI I can select a value up to 8192, why is that? (I did adjust the length of rgdSampleTmp)
Also, if I just setup up the rdgSamples, I cannot observe an output, I had to find a work around using bytearray and then creating a ctype. I did not find a clear explanation why that is.
Thank you very much for reading this and trying to help out, I am available for further questions. Have a nice day!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now