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

Dev/keithley2100 #3

Open
wants to merge 94 commits into
base: main
Choose a base branch
from

Conversation

adeshazer123
Copy link

Add Multimeter Keithley 2100 to pymodaq_plugins_keithley. Add keithley2100_VISADriver and daq_0Dviewer_Keithley2100.

@adeshazer123
Copy link
Author

Keithley2100 is fixed and ready to be reviewed again.

@@ -152,22 +112,20 @@ def grab_data(self, Naverage=1, **kwargs):
=============== ======== ===============================================

"""
logger.info("grab_data called")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add it as debug (not info) because it will be printed a lot on your log file which as the INFO level by default

"limits": resources_list,
"value": resources_list[0],
"type": "str",
"value": rsrc_name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the rsrc_name defined? I only say a type declaration line 11?

],
)

self.dte_signal.emit(dte)

def stop(self):
"""Stop the current grab hardware wise if necessary"""
self.emit_status(ThreadCommand("Update_Status", ["Acquisition stopped"]))
return ""
raise NotImplemented
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not raise the error otherwise you'll have issue... just return the empty string

DataFromPlugins(
name="K2100", data=data, dim="Data0D", labels=["dat0", "data1"]
)
DataFromPlugins(name="K2100", data=data, dim="Data0D", labels=["dat0", "data1"])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the data attribute should be a list of numpy array. is that the case from the data = self.controller.read() line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there two channels? The number of elements in labels should reflect this with appropriate names!

# resolution = 6
# nplc = 5

[Keithley.2100]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you use those configuration?

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

Successfully merging this pull request may close these issues.

3 participants