GoranP Geschrieben November 18, 2019 at 19:30 Share Geschrieben November 18, 2019 at 19:30 Hello. I'm using your library for Python, version 2.1.23, When I try to use function "set_voltages_callback_configuration", (see link https://www.tinkerforge.com/en/doc/Software/Bricks/HAT_Brick_Python.html#BrickHAT.set_voltages_callback_configuration), then I got an error in my code. When I open your file brick_hat.py, then I see that this is missing... Best regards Göran P Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
photron Geschrieben November 19, 2019 at 10:58 Share Geschrieben November 19, 2019 at 10:58 The set_voltages_callback_configuration function is new and not part of Python API bindings version 2.1.23. It will be part of version 2.1.24 that will be released this week. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
GoranP Geschrieben November 19, 2019 at 13:59 Autor Share Geschrieben November 19, 2019 at 13:59 OK. I found it in the description on the page, see my earlier link, and therefore I thought it was OK. In any case, that what the function I like to use. Understand, I'll wait until next release. .. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
photron Geschrieben November 22, 2019 at 18:06 Share Geschrieben November 22, 2019 at 18:06 Sorry, I didn't manage to finish the release today. It'll be released on Monday. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
photron Geschrieben November 25, 2019 at 17:00 Share Geschrieben November 25, 2019 at 17:00 Python API bindings version 2.1.24 is now available. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
GoranP Geschrieben December 14, 2019 at 18:56 Autor Share Geschrieben December 14, 2019 at 18:56 I'm using Python API version 2.1.24 and is testing callback_voltages. With the function "BrickHAT.set_voltages_callback_configuration(period, value_has_to_change)" I should be able to set value_has_to_change with True or False. But when I test it, with False or True I still get values every period time. I could change the period and it work's, I have tested for example with different times like 1000, 2000 3000. What do I do wrong ?? Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
rtrbt Geschrieben December 16, 2019 at 09:22 Share Geschrieben December 16, 2019 at 09:22 Hi, Have you printed the values each period? I'm assuming, that your power supply is fluctuating enough, that the HAT can measure this. (I've just tried this here with a USB power supply and can reproduce it.) So the value is in fact changing every period. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.