Jump to content

Search the Community

Showing results for tags 'python'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Software & Hardware Discussions
    • LabVIEW General
    • LabVIEW (By Category)
    • Hardware
  • Resources
    • LabVIEW Getting Started
    • OpenG
    • Code Repository (Certified)
    • LAVA Code on LabVIEW Tools Network
    • Code In-Development
  • Community
    • LAVA Lounge
    • LabVIEW Feedback for NI
    • LabVIEW Ecosystem
  • LAVA Site Related
    • Site Feedback & Support
    • Wiki Help


  • *Uncertified*
  • LabVIEW Tools Network Certified
    • VI Scripting
    • JKI Right-Click Framework Plugins
    • Quick Drop Plugins
    • XNodes
  • General
  • User Interface
    • X-Controls
    • Custom Probes
  • Database & File IO
  • Machine Vision & Imaging
  • Remote Control, Monitoring and the Internet
  • Hardware

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Personal Website

Company Website

Twitter Name

LinkedIn Profile

Facebook Page



Found 10 results

  1. Hello, I'm trying to send data from my RPI b+ to labview and store the information in a spreadsheet, right now the data I'm using is just a sawtooth generated in the python code but eventually it will be sensor data adquired via spi, the data comes at =~ 6-7khz but the time it takes to send the data to labview is much greater, I fear the circular buffer I intended to use to store the data before sending it via tcp will get filled pretty fast. I'm not very experienced in either python nor Labview, I was wondering if i could get some advice in the optimization of the code. I attached the VI of the client and a VI that graphs the data on the spreadsheet, also the python code. Thanks in advance, sorry for the mess. Waveform Grapher.vi Client.vi serverSerial.py
  2. https://www.winemantech.com/blog/testscript-python-labview-connector From release blog... Summary: Test engineers typically add manual-control screens to LabVIEW applications. While it would be helpful to repetitively execute varying parts of those manual-control screens, LabVIEW is not optimal for dynamic scripting, or on-the-fly sequencing with flow control. (Imagine editing the source code of Excel each time you wanted to create a macro.) And while Python is built for scripting, it requires advanced custom coding to interface with LabVIEW. Announcing TestScript: a free Python/LabVIEW connector from Wineman Technology that is simple to add to your existing LabVIEW application and abstracts complex Python coding, allowing you to easily use Python to control LabVIEW or vice versa.
  3. Senior Engineer Cupertino, CA 95014 1 year and extendable Domain: Consumer Electronics Must have : Python, C/C++ (preferably Python), LabView • Work closely with the design team to analyze the requirements and help with defining the test criteria • Work with the team to develop the automated functional and regression tests using apple’s testing framework. • Actively participate in code reviews conducted by the developers • Evaluate existing testing methodologies and suggest new techniques that will help us deliver high-quality features faster. • Improve, maintain, and execute automated functional, regression, testing codebase • Maintain a solid understanding of Test workflows, automation best practices, and agile methodologies • Maintain proficiency in application and use of systems, tools, and processes within the Technology department. • Take a lead role in QA Roadmap initiatives Basic Qualifications: • BS/MS in Computer Science, Computer Engineering, electrical engineering or similar technical field • 3+ years of experience as a Software Development, Test Automation. • Experience in embedded hardware, software test automation. • Demonstrated experience in test framework design and development • Excellent communication, collaboration, reporting, analytical and problem-solving skills • Proficient with Agile testing methodologies and best practices Mandatory Skills: • Strong programming skills with Python, C/C++ (preferably Python), LabView Expert • Excellent fundamental knowledge of data structures, algorithms, and object-oriented design • Experience with embedded system hardware/software test automation. • Experience with Functional, factory line, diagnostic, reliability testing • Experience defining test plans and designing/developing the automation. • Experience with Linux, real time operating systems (bonus) • Passion for testing and quality engineering • Experience with bash scripting Reach me at chaitu@fraank.com for more information
  4. Hi everyone I'm doing some preparations for my future project, which has to display a bunch of different measurements on the 3d graph. Those measurements will be taken from IMU sensor and GoPro camera and based on what the user selects they should appear ideally on the same picture. The data from the IMU sensor will display the way that the object went and will be something like this. The images from the GoPro should be displayed after user clicks on some part of this 'road'. I'm trying to use Blender to creates a nice renders of this "road" and paste images or video from GoPro ect. I've just started to use it and it looks amazing. Have anyone used it to create some project? What is the basic idea behind it? Do I have some .blend file that I'm applying changes and render it in the loop? How does the communication looks like? How do I load data back in LabVIEW? Do I read the exported image, or I send data over TCP/IP? I don't think I'll be using some big files, is the rendering fast enough to view it in picture control as I e.g. drag view to change the camera position? Do you have some basic LabVIEW projects or some documents other than Blender documentation, that I can use? Thank you for any information
  5. How do you decode, unpack a flattened string in python which was sent by a LabVIEW TCP server? I want to exchange data via loopback. Therefore I take a sine wave and flatten it to string and sent over the network Simple TCP - ServerSINE.viSimple TCP - ServerSINE.vi. Then I have to decode the incoming data in a way that I have the correct numerical values like when I plot them in LabVIEW. I did this so far in python_client.py but the values are wrong. Does anyone know how to work with the transferred Data in python?
  6. Jupyter (formerly known as IPython) is a language-agnostic architecture for Interactive Computing with a nice interactive notebook frontend. It is a very powerful project and it is increasingly widely used. It is becoming the go-to tool for many Scientific Computing and Data Science workflows. It is glaringly missing a LabVIEW kernel, however. See here for a list of available kernels - https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages. I know that I would use a LabVIEW kernel regularly in Jupyter (inline with some Python, Julia and Bash scripts) for hardware control and data acquisition. Unfortunately, I lack the skills to develop it. There is a guide here - https://ipython.org/ipython-doc/dev/development/kernels.html. I don't know where to start. I can understand 0MQ to a certain extent but then I get confused about what would be passed to the LV kernel - text, graphics? Maybe VI snippets could come into their own here. It actually looks like a really neat challenge. TL;DR If someone helped to create a LabVIEW Kernel (iLabVIEW?) for Jupyter I (and many many people) would be eternally grateful. As an added bonus, if you are an academic, you could request that users cite your contribution on any research they subsequently output. Edit: Here is an example Jupyter Notebook interacting with the MATLAB kernel, iMATLAB.
  7. 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 just noticed that I have to put the def to the beginning. If I now try to add a self written module to python and try to load it the PYTHON Execute Script VI freezes as well. I attached the file. What would be the right way to use a self written module in LabPython? Can I put the file somewhere, where LabPython is checking? In which directory is LabPython running? Furthermore I wonder if there is any way to run a script file in LabPython, or do I always have to copy the code to a String-Box? Best, Erik timetrace_processing.zip
  8. I want to use the Python extension libs such as ROOT (http://root.cern.ch/drupal/content/how-use-use-python-pyroot-interpreter and http://root.cern.ch/drupal/content/production-version-528), but it is strange for me to use the labpython. I write a demo.py to import ROOT(just like this "from ROOT import gROOT, TCanvas, TF1") which is running in LabPython, but it seems to crash for LabVIEW, but it can be used outside of LabVIEW if python it in the command line. And If I run the python script without ROOT lib, it is normal in LabPython. How can I solve it? My python version is 2.6, the ROOT version 5.28, and LabVIEW version is 2011. LabPython version is 4.004. The Python file could not be uploaded, so I change the name from demo.py to demo_python.vi. Please change it after download. And LabVIEW file is also uploaded. My ROOT env config variables are set PATH=%ROOTSYS%/bin;%PATH%set PYTHONPATH=%ROOTSYS%/bin;%PYTHONPATH% So after setting config variables, you can type the command "python -i demo.py" in the python installation directory in the command line. It is normal running, but you could not do it in LabPython using the same code. And My LabVIEW.ini is setting like this: PythonServer=C:WINDOWSsystem32python26.dll Thanks! demo.vi demo_python.vi
  9. I've posted this in the NI forums, but I thought I might get some more traction here... Does anybody have any ideas on a way to stream commands to a python console? A little background on the issue: I am able to control instruments in a system through a .dll that I call using python. I have already implemented a VI that can create a script "on the fly" and execute it to perform simple commands. The problem is that this creates a new instance of python every time I execute a command. It would be very advantageous for me to keep python running and only stop execution when I'm done sending commands. I have tried accessing python directly from the python .dll through LabVIEW, but this got ugly very quick and I'm not a software engineer I have also tried using labpython, but it doesn't seem to be compatible with python 3.3 which is a requirement in the system. Please let me know if you have any suggestions on what path I should head down, Thanks.
  10. 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 pylint be run via LabPython? How would you retrieve the output string? 2) Disabling the scintilla .NET control (via a property node) doesn’t fit visually with other LV controls. Could the right look be achieved by manipulating the control's colors 3) Auto indentation hasn’t been implemented. In order for this to work you'll need to install: Python 2.7.2 (This might work with newer version, I haven't tried) http://www.python.org/getit/releases/2.7.2/ logilab-astng-0.23.0 http://pypi.python.o...i/logilab-astng logilab-common-0.57.0 http://www.logilab.o...b-common/0.57.0 pylint-0.25.0 http://pypi.python.org/pypi/pylint SintillaNET 2.2 http://scintillanet.codeplex.com/ If anyone does make improvements to this, please post your updates. Thanks Denis Python Trial.llb
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.