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

Add support for channel #27

Merged
merged 3 commits into from
May 19, 2015
Merged

Add support for channel #27

merged 3 commits into from
May 19, 2015

Conversation

MatthieuDartiailh
Copy link
Member

This adds a 'channels' keyword to the parser. When declaring channel, for each channel one can declare the active ids ('ids') (which can be altered in the resource), whether or not the channel can be selected from within a command ('can_select') (ie Ch 1:VOLT:IMM is supported).
If a device property can be used to select a channel it should be declared under the name 'select_channel'.
This also adds support for concatenating multiple commands separated by a special character (';' by default and can be specified by declaring a 'delimiter' field.
I also re-factored some things I needed in channel away from devices, they are now in component.py

I added some very basic tests also.

This is ready for review from my point of view. I will try to prepare another PR for sending error messages to an error queue and declare a dialog to query the last error.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 0.96% when pulling 9e0dd5c on MatthieuDartiailh:channel into 30834ec on hgrecco:master.

@hgrecco
Copy link
Member

hgrecco commented May 19, 2015

Can you rebase to the current master? I will merge it right away.

@hgrecco
Copy link
Member

hgrecco commented May 19, 2015

Thanks!

@MatthieuDartiailh
Copy link
Member Author

Done. I also rebased the error queue PR.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.71%) to 84.75% when pulling d5942a3 on MatthieuDartiailh:channel into a78d004 on hgrecco:master.

@MatthieuDartiailh
Copy link
Member Author

I will fix the python 3 issue this afternoon.

@hgrecco hgrecco merged commit d5942a3 into pyvisa:master May 19, 2015
@hgrecco
Copy link
Member

hgrecco commented May 19, 2015

Great! I have merge this.

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