LIRC - LabVIEW - Sending a Remote Command From LabVIEW

by Austin Stanton in Circuits > Raspberry Pi

2155 Views, 1 Favorites, 0 Comments

LIRC - LabVIEW - Sending a Remote Command From LabVIEW

FWRSXJVIWMF22JT.MEDIUM.jpg

This instructable will walk you through the "Send" LabVIEW VI I made for my LIRC Raspberry Pi Universal remote. This VI allows you to control your Raspberry Pi universal remote from your computer. This is only one of six instructable in my LIRC instructable collection, I recommend that you start by reading my LIRC overview instructable.

User Interface

Sendp.png

When you start the VI the "Remote info" section will generate, the names of a remote will be shown first with its buttons listed beneath it, each button will have a number in front of it. In the first drop-down menu, you can select the remote you would like to use. Once you select the remote the second drop down menu will contain all of its buttons, once you select one of those the "Select" button and you will send that command.

LabVIEW Block Diagram

Screen Shot 2017-01-05 at 3.46.48 PM.png

To control LIRC running on the Raspberry Pi from the chroot I used a system exec VI to send commands over SSH. Every command started with "ssh pi@localhost," the commands were entered as strings into the system execs "command line."

I use a custom subVI to generate the "Remote info indicator.

In this step, I use a LIRC command to list the available buttons for the remote that the user picked. The output is sorted into a menu ring so the user can choose which button they want to send.

Once the user has selected the button they press the select button. This sends the LIRC command that sends that button, this command can be seen below.

Downloads

The End

F1UYJHSIWMF2VA9.LARGE.jpg

Thank you for reading my instructable, if you are interested in making this project yourself but don't have the right supplies you can purchase the LabVIEW computing kit for the Raspberry Pi 2. This kit includes a copy of LabVIEW 2014 home edition and everything you will need to run LINX 3.0 and start making projects. Please comment with any questions or comments you may have.