I'm a postdoc with limited programming expertise. I am working with a USB-1608FS-Plus device, which I use to collect data from a photodiode. My setup involves using a single channel in 10-volt mode. I work on Linux Mint and uldaq 1.2.3. My data is saved to a CSV file at a resolution of 500Hz. In my code, I specify the "rate" parameter as 500 Hz, but saving the data also requires additional time. This means each data point is saved approximately every 0.00023 seconds (not 0.0002), though this value varies slightly.
Currently, I'm using a higher rate and then resampling to achieve the needed rate. I found in the documentation the parameter 'scan_options = ScanOption.CONTINUOUS', which can be altered to 'PACEROUT' for using the internal pacer output on a DAQ device. If I understand correctly, this should allow me to save data at a specific speed without needing to resample. However, due to my limited programming skills, I'm not sure how to implement this.
Could anyone please provide an example or guidance on how to save data at a specific frequency using this device and library?
Question
SimonV
Hello!
I'm a postdoc with limited programming expertise. I am working with a USB-1608FS-Plus device, which I use to collect data from a photodiode. My setup involves using a single channel in 10-volt mode. I work on Linux Mint and uldaq 1.2.3. My data is saved to a CSV file at a resolution of 500Hz. In my code, I specify the "rate" parameter as 500 Hz, but saving the data also requires additional time. This means each data point is saved approximately every 0.00023 seconds (not 0.0002), though this value varies slightly.
Currently, I'm using a higher rate and then resampling to achieve the needed rate. I found in the documentation the parameter 'scan_options = ScanOption.CONTINUOUS', which can be altered to 'PACEROUT' for using the internal pacer output on a DAQ device. If I understand correctly, this should allow me to save data at a specific speed without needing to resample. However, due to my limited programming skills, I'm not sure how to implement this.
Could anyone please provide an example or guidance on how to save data at a specific frequency using this device and library?
Edited by SimonVLink 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