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

please add possibility to read all dc strings #16

Closed
seh-len opened this issue Apr 27, 2020 · 2 comments
Closed

please add possibility to read all dc strings #16

seh-len opened this issue Apr 27, 2020 · 2 comments

Comments

@seh-len
Copy link

seh-len commented Apr 27, 2020

Hi,

please add the possibility to read all connected dc strings via get_pvi_data.

req = self.sendRequest( ('PVI_REQ_DATA', 'Container', [
('PVI_INDEX', 'Uint16', 0),
('PVI_REQ_DC_VOLTAGE', 'UChar8', 0),
('PVI_REQ_DC_CURRENT', 'UChar8', 0),
('PVI_REQ_DC_POWER', 'UChar8', 0),
('PVI_REQ_DC_VOLTAGE', 'UChar8', 1),
('PVI_REQ_DC_CURRENT', 'UChar8', 1),
('PVI_REQ_DC_POWER', 'UChar8', 1),
]), keepAlive = False )

You can get the string count via PVI_REQ_DC_MAX_STRING_COUNT.

Thank you.
Kind regards,
Simon

@fsantini
Copy link
Owner

Hi, sorry for the delay in replying. I don't understand what you are actually asking, as the code you sent does work. Would you like to see it implemented in a high-level function?

@seh-len
Copy link
Author

seh-len commented Apr 29, 2020

Hi, sorry, I forgot to mention that it should get integrated into get_pvi_data().

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

No branches or pull requests

3 participants