S5 Solutions | LabVIEW, ATE, Test Engineering Services
  • Engineering
    • Product Development
    • Custom Software Development
    • Automated Test Equipment (ATE) >
      • What is ATE?
  • Case Studies
  • Knowledge Base
    • ALOHA
    • MLA
    • LabVIEW & TestStand >
      • LabVIEW Basics
      • TestStand Basics
      • Learning LabVIEW
      • Getting Started with OOP
    • Blog
  • Contact

LabVIEW Wireless LINX

8/1/2014

5 Comments

 
Picture
  • Wireless connection for your LINX Arduino
  • Use the standard LabVIEW LINX library
  • Raspberry Pi provides a wireless bridge to your Arduino running LINX
Our simple python server for the Pi bridges your existing LabVIEW LINX programs to your Arduino without having to changing any code.

How to Do It

On the Pi:
Your Pi will need to be able to execute python code, in LXTerminal run:
sudo apt-get install python-dev
sudo apt-get install python-serial
Enabling the serial port requires editing two files, cmdline and inittab:
Cmdline
sudo nano /boot/cmdline.txt
remove all references to ttyAMA0
Change
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfs elevator=deadline rootwait
To
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfs elevator=deadline rootwait
ctrl+x -> y -> enter, to save
Remove login prompt on serial port:
Inittab
sudo nano /etc/inittab
Change
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
To
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
ctrl+x -> y -> enter, to save
Reboot your Pi
sudo reboot
Hardware:
A level shifter is required for the Pi’s 3.3 V to connect with the Arduino’s 5 V supply. (More Info)
Picture
Picture

Run Your Program

Make sure the LINX server is uploaded to the target arduino.
Download our server to your Pi: LINXServer.py
Identify you Pi’s local address by typing ‘ifconfig’ in LXTerminal,
Replace HOST with that local address, adjust the PORT to your choosing
Run the server on the Pi:
sudo python LINXServer.py
Run your LINX program, making sure to use the TCP option of the LINX init, and use the right Host and Port.
bonus: turn on DEBUG to see the LINX bits being transferred.
5 Comments
labview programming link
12/31/2014 01:52:50 am

I appreciate you taking the time to correct some of my misconceptions and provide a different perspective.
I will admit that LabVIEW does have some awesome hardware integration and definitely eases deployment.
My post was mainly a outlet for too many hours of frustration trying to get LabVIEW to do things that
I could have accomplished in much less time using a more traditional language.
And while I still prefer text-based languages


<a href="http://labviewprogr3.livejournal.com/675.html">labview programming</a>

Reply
reza
6/19/2017 01:46:57 am

where i can get file LINXserver.py ?

Reply
Mustafa
10/19/2018 02:34:11 pm

Hi

Is this method applicable for raspberry pi 3

Reply
Craig link
10/19/2018 02:44:59 pm

No reason it shouldn't work on a Pi 3

Reply
Mustafa
12/28/2018 12:03:19 am

Hi I couldn't find the file in the video time 19s please let me know how to find it

Reply



Leave a Reply.

    Categories

    All
    Events
    GUI
    LabVIEW
    Maker
    Project Success
    Special Interest

    RSS Feed

​Quick Links
Home
Services
Case Studies
ALOHA
​MLA
Privacy Policy
Picture
S5 Solutions, Inc.
LabVIEW & ATE, Test Systems, Software & Electrical Engineering Services located near Seattle, WA.


Contact Us
p: 425.298.7447
e: ​Info@S5Solutions.com
© 2023  S5 Solutions, Inc.           Employee Site
  • Engineering
    • Product Development
    • Custom Software Development
    • Automated Test Equipment (ATE) >
      • What is ATE?
  • Case Studies
  • Knowledge Base
    • ALOHA
    • MLA
    • LabVIEW & TestStand >
      • LabVIEW Basics
      • TestStand Basics
      • Learning LabVIEW
      • Getting Started with OOP
    • Blog
  • Contact