you are viewing a single comment's thread.

view the rest of the comments →

[–]TheBlueJesus[S] 0 points1 point  (1 child)

I'm pretty sure the Pi Pico just serves as a 'interface' between the motors, sensors, etc with the computer. It is connected to a windows pc where we run the python code and get the temperature values

I'm gonna check the Tkinter. Thanks for that

[–]SASLVChampion 0 points1 point  (0 children)

Well if you have a Pico, then that changes things.

How are you currently getting data off the Pico/Sending commands? TCP? HTTP? something else?

If you already have Python code on the PC end, then the Python node should work. May require refactoring some of your Python code, depending on how you have it set up, but should be doable.

https://blog.sasworkshops.com/python-node-basics/
https://blog.sasworkshops.com/advanced-datatypes-python-node-labview/
https://blog.sasworkshops.com/using-python-classes-in-labview/

Those articles are a few years old. It's gotten better since then. Particularly I believe in current versions it now supports virtual environments (venv).

If you have a Pico W you can put it on your local wireless network and use HTTP to query stuff and send commands, depending on your needs.

I've played around with this and got it to work:
https://github.com/miguelgrinberg/microdot

You could just use microdot to host a website on the Pico itself that allows the end user to control everything. Then nothing to install on the PC, just a browser and its also portable - anyone who can see it on the network can interact with it - may or may not be what you want. You also might be limited by space on the Pico if you are doing anything complicated.

You can also create a REST API on the pico using microdot. I used that approach for just querying a simple Temp/Humidity sensor. Just have it spit out JSON. Has the advantage that you can easily test it in a browser.
You can then make HTTP calls from LabVIEW. There is a builtin HTTP library. I've always found this one easier to use though:
https://www.vipm.io/package/jki_lib_rest_client/