Hi, I'm using AD2 to generate precise SPI commands for my application using Intan's RHS2216 IC.
The IC is a sort of constant current source which on/off and polarity is controllable via SPI. And I use it to make two different patterns, one is a maximum-length sequence and another is a simple biphasic pulse.
The problem is that the AD2 supports up to 16k bits pattern and my MLS pattern requires about 15k bits so I have to divide two patterns.
It was able to store both patterns using two separate pattern generators in WaveForms 3.19.5, but it seems that a single run using the script gives me an unintended amount of delay between two patterns.
I want the patterns to appear with a specific amount which is an integer multiple of my recording device's sampling period but how can I achieve this?
I think the first possibility is manually adjust the delay between patterns with the wait() function but it jitters according to the PC's OS. Then, maybe the trigger can be used but is it work well even if the two pattern generators are sharing the same pin?
Question
DYLee
Hi, I'm using AD2 to generate precise SPI commands for my application using Intan's RHS2216 IC.
The IC is a sort of constant current source which on/off and polarity is controllable via SPI. And I use it to make two different patterns, one is a maximum-length sequence and another is a simple biphasic pulse.
The problem is that the AD2 supports up to 16k bits pattern and my MLS pattern requires about 15k bits so I have to divide two patterns.
It was able to store both patterns using two separate pattern generators in WaveForms 3.19.5, but it seems that a single run using the script gives me an unintended amount of delay between two patterns.
I want the patterns to appear with a specific amount which is an integer multiple of my recording device's sampling period but how can I achieve this?
I think the first possibility is manually adjust the delay between patterns with the wait() function but it jitters according to the PC's OS. Then, maybe the trigger can be used but is it work well even if the two pattern generators are sharing the same pin?
Link to comment
Share on other sites
5 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