Jump to content
  • 0

How to store a_in_scan data; USB-1808x


Charlie2134

Question

Hello, i am trying to store the analog input data for further analysis. I know this should be very easy but i am a noob at programming. how can i modify the a_in_scan.py function a little bit to store the data into a file?

thanks in advance.  

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
8 hours ago, JRys said:

I recommend reviewing the Python for Windows example called a_in_scan_file.py. 

https://github.com/mccdaq/mcculw/blob/master/examples/console/a_in_scan_file.py

Pay attention to the additional scan option ScaledData. It instructs the API to return floating point numbers instead of counts from the A/D converter. 

 

Thank you! I am using python for Linux but it should be similar. 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...