Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need precise timestamps along with each datapoint from the PQMS modules #1

Open
gitansh95 opened this issue Jul 3, 2017 · 2 comments

Comments

@gitansh95
Copy link
Collaborator

gitansh95 commented Jul 3, 2017

@QuazarTech/support
The commit tag referring to this issue is : e9c9fa1
Link to file : https://github.com/vishnu2709/Qrius/blob/IV_script/user_scripts/time_resolved_IV.py

We have written a python script to set a DC Voltage on the XSMU, and then make multiple measurements of current using the function CM_getReading (filterLength=1) from /modules/xsmu/xsmu.py.

The code for the measurement :

    f = open("I-Data.txt", "a")
    for index in range(iterations):
        current = xsmu_driver.CM_getReading( filterLength = 1 )
        temperature = xtcon_driver.getSampleTemperature()
        f.write(str(current) + "," + str(temperature) + '\n')
    f.close()

We were able to make roughly one current measurement every 200 milliseconds (time measured approximately using the function time.strftime() from standard python library time), using the code below :

import time
    f = open("I-Data.txt", "a")
    for index in range(iterations):
        current = xsmu_driver.CM_getReading( filterLength = 1 )
        t = time.strftime('%H:%M:%S')
        f.write(str(current) + "," + t + '\n')    
    f.close()

But time stamps obtained this way include the time taken for the communication between the PQMS and the computer, and the time taken to execute any python instructions, etc.

We have obtained the following plot of Measured Current vs Number of Datapoints, for CM_RANGE_1mA on a 6.2 V Zener Diode forward biased using a Voltage Source with a value 0.67 V.
current_vs_datapoint_0 67v

In the above plot we want to replace the X-Axis (Number of Datapoints) by the precise time stamp at which each datapoint was generated (ignoring the communication time with the computer, the python script execution time and other possible overheads).

@kchat79
Copy link

kchat79 commented Jul 3, 2017 via email

@gitansh95
Copy link
Collaborator Author

gitansh95 commented Sep 7, 2017

@kchat79 Can you provide us with a function that streams data faster from the PQMS, something of the form getReading() that returns (data, dt, time_interval), where data is the datapoint, time_interval is the time interval of acquisition, and dt is the time duration of acquisition of each datapoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants