03-04-2020 10:30 AM
Hello,
I would like to call some Python scripts in Labview. The scripts call some libraries like Panda and some functions.
This communication runs continuously in a loop between Labview and Python for thousands of folds.
I found a couple of ways like Labpython in OpenG, python node to call function, the testscript from Whineman Tech and also the Python integration toolkit ( which is not free, unfortunately).
Which one do you recommend to have a reliable and fast communication where I do not have issues to call some libraries of functions?
Thanks,
03-10-2020 11:23 AM - edited 03-10-2020 11:23 AM
Can help me in this thread, please?
I have been waiting for a week.
03-10-2020 12:24 PM
You'll have to do the benchmarking yourself.
But considering that you call a scripting environment when calling Python, you may be actually worrying about the wrong thing. If performance is really of high importance to you, calling Python is definitely NOT the best way to go ahead and keeping everything in LabVIEW is usually best (or call some highly optimized C API in a DLL, but unless you absolutely positively know what your are doing, this option will often cause worse performance than keeping it all in LabVIEW!!).
So is your worrying about calling your Python script based on any real measured problem or is it just what is commonly called premature optimization? This kind of optimization while it can be interesting is often spending lots and lots of time in optimizing a few ms of execution time from something that when compared to the overall execution performance is simply getting lost in the measurement accuracy.