Search the Community
Showing results for tags 'labpython'.
Hello there: I have a big project, pretty much already coded in Labview, designed to perform monte-carlo analysis on a set of applications that use data from time synchronized measurements across the electrical power system. The project is designed to be open source and distributable using both built .exe and vipm. Therefore I include ONLY libraries that either come with LV or are OpenG (no third party tools that need to be purchased, and no TestStand). A part I have yet to code is the monte-carlo engine which needs to be end-user programmable. I have an idea for creating my o
Hi, I try to use LabPython with Python 2.7.8. After some difficulties in the beginning I am now able to run simple scripts and also import certain modules, for example the following: import numpy sampling = 1/timestep millivoltage = numpy.std(voltage)*1000 But if I now try to add a def statement (like the one below) to the script, the VI gets stuck at PYTHON Execute Script (if it is called) or throws a ZeroDivisionError (if it is just added but not called in the script): def test(): return 0 Are there certain things that are forbidden when using LabPython like certain statements?
I want to develop a C++ script server or C++ script node which it works like LabPython. So I want to run my C++ code in text mode in the block diagram of LabVIEW. Now I can run my C++ code in C++ interpreter of CERN's ROOT which can run without compilation. ROOT is good at data analysis, and LabVIEW does well in the data acqisition. I hope the two can be work together. So instead of data processing offline by using ROOT after LabVIEW finish getting the experiment data, I hope that data processing online when LabVIEW getting data. That means I must corporate my ROO
Hi All, On a system we're working on, we are allowing the operator to enter a python script. The script is executed with LabPython, which seems to work well. We implemented the script editing with ScintillaNET (http://scintillanet.codeplex.com/) We also implemented pre-execution script checking (I don’t know the right term for this) with pylint (http://pypi.python.org/pypi/pylint) Attached is an example of our implementation. I’m posting this in case anyone might find it useful. A couple of items that could be improved 1) This implementation used system exec to run pylint, could pyl