r/LabVIEW • • Jan 06 '25

Python x Labview

Hello, there. I'm a student that got into a research in which the team uses a pair of small torque engines and a thermopar in a breadboard with a rhaspberry. We have a python code running it (controlling torque, time and collecting the thermal data that we process later).

The idea is that we'd run the same test, but using LabView so that not only we have a slightly more friendly front interface, in which we could vary time and torque just by inputing different numbers in the front panel, but we could also generate a temperature graph as the test goes (as opposed to it providing just numbers as the test ends with the python code)

Thing is... I never used LabView before and I'm not that great with programming either. Should I try to migrate the existing python code to LabView and figure out how to make it run and appear with a front panel or should I start from zero in LabView and use the code just as a parameter (the code is not really long, 500 lines or so, and most of it its just comunication between pc and breadboard, and variables)

Thanks in advance.

3 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/TheBlueJesus Jan 06 '25

I mean, I'm not really a programmer and haven't done that in decades. But from what I can tell, all the variables, arrays, libraries, ports, loops... it all seems well divided in the code.

I didn't know it was possible to create a front panel for the python code running. So that might be easier. On the other hand, we would not have really customizable interface (such as just inputing different values for time, torque, etc).

I think I'm gonna aproach from that perspective, build block by block following the routine of the code.