To drive arbitrary data to an external device, but this seems to be limited to 32k cycles -- if I pass a value higher than ~32k to self.numSamplesBits, all subsequent outputs get driven to 0, and the entire datastream is lost. This seems to line up with the spec of:
Custom pattern buffer/ch.: 32Ksamples
I am hoping to drive/sample up to 500k samples of data to a given device in a single pass without interruption, is there a way to do this?
I tried running a basic loop of drive/sampling 16k cycles at a time, using this function:
to "hold" the Digilent outputs at the last sample's values, until the next 16k cycles are loaded, but this seems to not always produce the expected results. Is there a better code flow design to accomplish this?
Question
JeffD
Hi,
I am using
self.dwf.FDwfDigitalOutDataSet(self.hdwf, c_int(channel), byref(rgBits), c_int(self.numSamplesBits))
To drive arbitrary data to an external device, but this seems to be limited to 32k cycles -- if I pass a value higher than ~32k to self.numSamplesBits, all subsequent outputs get driven to 0, and the entire datastream is lost. This seems to line up with the spec of:
Custom pattern buffer/ch.: 32Ksamples
I am hoping to drive/sample up to 500k samples of data to a given device in a single pass without interruption, is there a way to do this?
I tried running a basic loop of drive/sampling 16k cycles at a time, using this function:
self.dwf.FDwfDigitalOutIdleSet(self.hdwf, c_int(channel), c_int(int(last_cycle[channel])))
to "hold" the Digilent outputs at the last sample's values, until the next 16k cycles are loaded, but this seems to not always produce the expected results. Is there a better code flow design to accomplish this?
Link to comment
Share on other sites
1 answer 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