Open middelink opened 8 years ago
API documentation is still on the TODO list. It's been such a rush to get this project to where it is now, we haven't had time to formally document. I can try to answer your questions quickly though.
5: request_data_stream() is unimplemented right now, but will be used for obtaining continuous data, as opposed to a finite number of samples. Useful for roll mode in a scope environment.
6: request_has_data() will return true if you have not completed reading all data from the request. If you call it too quickly (before any data has reached the host) it will return true. A quick subsequent call of read_data() will block until data is available on the host.
7: yes they are. but you can generally see what they mean by sifting through the python or matlab implementations. They will be documented eventually.
8-9: I like convenience. Always love the feeling of a library that doesn't make me do conversions.
10: Generally, there are errors for parameters being too large or too little. -110 value error, parameter too small -111 value error, parameter too large -112 value error, parameter out of range However, not all of these have been implemented, and I cannot guarantee that nScope will not crash if you exceed limits that I haven't documented yet. I'm working on it...
11: ch_level() will allow users to change the range of voltage nScope is sampling. They are not implemented yet.
12: get_num_channels_on() returns how many channels are on, from 0-4. get_channels_on() is supposed to tell you which of the channels are on. I'm open to other designs.
Thanks again for your thoughts/questions. I hope it helps you get a bit further off the ground with working with the API.
Hi, is this nscope python API only works for python3? Can I use this in python2? I got error saying no module named nscopeapi when running in python2, I'm wondering what I can do to solve this error
First off, awesome work!
After reading the API header files (which seem to be the only documentation) I am left with questions like:
Just some thoughts ^^