Brian Duncan Posted September 20, 2022 Share Posted September 20, 2022 Is there a way to change the analog output rate on a USB-1608 device? It appears as if Rate is ignored. We also use a USB-2637, can the rate be changed on that device? If it is not possible, which devices offered do allow the rate to be changed? Link to comment Share on other sites More sharing options...
0 JRys Posted September 20, 2022 Share Posted September 20, 2022 Hello Brian, For both the USB-1608GX-2AO and the USB-2637, use the AOutScan function. It will stream the data buffer out using the "rate" variable as the update rate. Create an array where every other value is 0 (-10v) and 65536 (+10v). Use the function WinArrayToBuf to transfer it into a driver buffer, which you pass into the AOutScan function. Set the scan options to CONTINUOUS + BACKGROUND. If all goes well it will write out the buffer over-n-over until you call StopBackground. The output (+/-10v square wave) frequency will be one half the update rate. If this is not working for you, could you include a short snippet of code showing how the function is called and any errors that are encountered? Best regard, John Link to comment Share on other sites More sharing options...
Question
Brian Duncan
Is there a way to change the analog output rate on a USB-1608 device? It appears as if Rate is ignored.
We also use a USB-2637, can the rate be changed on that device?
If it is not possible, which devices offered do allow the rate to be changed?
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