This instructable will walk you through the "Add" LabVIEW VI I made for my LIRCRaspberry Pi Universal remote. The Add VI allows users to add remote profiles from the LIRC index of remotes which contains hundreds of remote profiles. This is only one of six instructable in my LIRC instructable collection, I recommend that you start by reading my LIRC overview instructable.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: User Interface
When you start the VI you are asked to select one of the two selectable actions. The first action is "Create New Remote file," select this action if this is the first remote profile that you have created or if you want to start fresh. This option will overwrite the current remote profile.
The next action is "Add New Remote to file," select this action when you have an existing config file that you want to add to. This option will not overwrite your current remote profile. Instead, it will add a new remote to it. Once you select one of these two options, you press start to move to the next step which is the same for each one. Paste the remote profile found in the LIRC index of remotes into the control and press program.
Step 2: LabVIEW Block Diagram
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."
The command below creates a conf file with the data included. Another command moves this file into the appropriate place.
To make the front panel run smoothly I have a case structure running in a while loop outside of the rest of the code. This allows me to change the value and visibility of each of the buttons throughout.
Step 3: The End
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.