Getting Started with myRio
Hello friends, I hope you all are fine and having fun with your lives. Today, I am going to share a tutorial on new board and as you can see in the title, this new board is named as Myrio. So, today, we are gonna have a look at getting started with Myrio. NI myRIO is a combination of dual-core ARM Cortex™-A9 real-time processing and Xilinx FPGA customizable I/O. It is specially designed for engineering students by National Instruments and is a cheap as well as an awesome piece for building your dream projects.
Recently I got a chance to work on this NI Myrio board and I really enjoyed while working on them as they not only awesome but also easy in programming. Moreover, because of its awesome speed you can ask it to do any kind of embedded work. You can read more about myRio on the Official Site of National Instruments. Today, I am not gonna design any project on this NI myRio board, instead I am gonna give you a quick overview of getting started with myRio. So, what's the delay :P Let's have a look at getting started with myRio board.
Getting Started with myRio
- I ordered my myRio board about a month ago and I got it delivered within 10 days.
- Below are the items which I have received in the myRio box:
- myRio board itself.
- USB Cable to plug myRio board with computer.
- Three CDs which contains the software.
- A manual having the instructions for myRio use.
- If you have also ordered the myRio board then you must have also received the same things in the box.
- Now first of all, what you need to do is to arrange a 12V adapter for power up your Myrio board.
- The one I have used is of 12V and 1.5A.
Note:
- There are different models of myRio available online and the one I received is myRio 1900, which has the Wifi functionality in it.
- There's also another myRio board called myRio 1950 which doesn't has the WiFi functionality in it so if you got that one then there's no need to be worried as both boards works exactly the same so if you have any other model then still you can follow today's tutorial as its valid for all myRio boards.
- Now I assume that you have arranged a 12V adapter and ready to plug it in your myRio board. :P
- So, why are you waiting ??? :P Simply plug you adapter in the myRio board and two lights on it will get on as shown in the below figure:
- So, you can see in the above figure that when I plugged the adapter in my myrio, the Power LED and the Status LED turned ON.
- After some time the status LED will turned OFF.
- Now next thing you need to do is to connect your USB cable with your computer from one side and with myRio from the other side.
- As soon as you connect the USB cable, the myRio will start installing the driver on your computer. It will take some time.
- Once the driver is installed, then a pop up window will open up as shown in below figure:
- Now, if you got this pop up window then it means your myRio driver has installed successfully.
- This window is giving you some information about your myRio board like mine is NI myRio 1900, yours could be 1950.
- Now next thing you need to do is to click the first button which says "Launch the Getting Started Wizard".
- Now when you click it, a new window will open up as shown in below figure:
- Now in the above window, it is showing the connected NI myRio device, if you can't see your device then click on the Refresh button.
- If your device is listed as mine then you need to press the Next Button.
- When you press the Next button a new window will pop up as shown in below figure:
- In the above window, you can change the name of your myRio board, if you want but I have left it as it is and clicked the Next button and below window opened up:
- Now finally we have reached the control window, from this window we are gonna control all the four LEDs labelled as LED0, LE1, LED2 and LED 3 and also gonna get notification for the button pressed and will also get values for X, Y and Z axis.
- IF your check your myRio board, rite now then you will see that LED2 and LED3 are ON now and you can see in above figure that LED2 and LED3 are green.
- Now you can click these buttons to turn your respective LED ON or OFF.
- Similarly when you press the button on your myRio board then this black small circle will go green.
- Moreover, if you change the orientation of your myRio board then its axes values will also change as it has built in gyroscope.
- You can check more detail on this below video:
So, that's all about getting started with Myrio. Today, we have seen how to get started with your new NI myRio board and also how to control the built in LEDs, button and gyroscope of myRio board. I hope now you can play a little with your myRio board. That's all for today. In the coming post, I am gonna discuss How to Configure NI myRIO on Wifi. So, till then take care and have fun !!! :)
LabView Projects
Hello friends, hope you all are fine and having fun with your lives. Today, I am going to share all the LabView Projects, posted on our blog. These LabView projects are entirely designed by the TEP team and I hope they will help you in some way. Rite now the list is quite small but I am gonna post more tutorials and projects related to LabView soon. So, keep visiting or subscribe us via email so that you get these exciting tutorials straight to your inbox.
Moreover, LabView is really a difficult software and it really took us a lot of time in designing these projects so other blogger are more than welcome to share our projects on their blog but do mention the respective link from where you copied as a favor. I am gonna share the complete list here. The benefit of doing this is that it will also organize the projects and you guys can get all of them in one place. So, anyways, let's get started with LabView Projects.
LabView Projects
First of all, you should read these basic LabView Tutorial. In these tutorial, I have given the Introduction of LabView and have explained from very basics how to start working with LabView. So, I would suggest you if you are new to LabView then read these LabView tutorials one by one:
Getting Started with LabView
Basic LabView Projects
These are the basic LabView Projects. So, if you have read the above mentioned basic LabView Tutorials then you should have a look at these basic LabView Projects:
Embedded LabView Projects
Here, I have given few Embedded LabView Projects which we have designed in our lab. These Simulations are given for download in each of these tutorials. So, if you wanna communicate with your Embedded device via LabView then you should read them:
NI myRIO Labview Projects
NI myRIO is an amazing Embedded module which is FPGa supported and is designed by National Instruments itself. I have worked on it during my projects so I have shared few tutorials on NI myRIO, which are as follows:
Display Serial Data on Real Time Graph in Labview
Hello friends, hope you all are fine and having fun with your life. Today's post, as the name suggests is about How to Display Serial Data on Real Time Graph in Labview. In our previous post, we have seen that how to Get Continuous Data From COM Port in Labview. Today's post is a sequel of this previous post so I would recommend that if you haven't had a look on that post then first visit it as I am gonna start today's post from where I stopped the previous one.
In the last post, we were able to get the continuous data from COM port using Labview and we have also separated the data based on a character which I have used this one "," i.e. comma. Now, suppose you are sending 3 values from your COM port and these are the sensors' values so tthe best way to display these value is by using a graph. In the last post we separated the values and displayed them in a 1D array, so today we are gonna display those values in a graph. As I have taken three values so today I am gonna plot 3 graphs. Each graph will show one of the values and display them in real time. Let's start it.
Display Serial Data on Real Time Graph in Labview
- In the last post, we have the below vi at the end. This vi get continuous data from the COM Port and then display it in the Response and the 1D array.
- In the above image, the Data 1D displays the values separately and differentiate it on the basis of a characters "," i.e. comma.
- In other words, Data 1D has a array, which consists of three values coming from the serial port.
- So if like we have sent the values 120,221,312, then the array(0) will have 120, array(1) will have 221 and finally the array(2) will have 312.
- In order to plot the values on the graph separately, what we need to do is to simply get array(0) and then plot it vs time and so on, which is shown in below figure:
- As you can see in the above figure, the logic we used is quite simple, what we did is we simply get the array just before Data 1D and then broke it into parts i.e. array(0), array(1) and array(2) and then fed it to the Graph plots.
- In this particular example I am using accelerometer IMUv2 and displaying its values on the graph.
- After adding these blocks you are done. Now press Ctrl+T and open the Front Panel. My front Panel looks like as shown in below figure:
- Now first of all select the COM port from which you are receiving the data. If you can't find yours, then click on the Referesh, you will find in the drop down.
- Now, run the vi and then click on the Start button and you will start receiving the values. The values will be displayed in the Response as it is and then in the Data 1D and will also display on these graphs separately as shown in the below figure:
- Now, you can see the data is displayed. In this vi, we have displayed the data in three formats:
- Response: It shows the complete data coming from the Serial Port.
- Data1D: It separates the data and then displays it in digital format.
- Graphs: They plot the real time graph of the coming data.
I have attached the vi below for download but I would recommend you guys to design it by yourself so that you learn the most out of it.
Download the Labview vi
Get Continuous Data From COM Port in LabView
Hello friends, hope you all are fine and enjoying good health. Today's post is my first post on LabView Software. I have worked on LabView quite a lot in past but these days I am continuously working on LabvView so I thought to write some tutorials on it. In today's tutorial, I will explain in detail How to get continuous data from COM Port in LabView software. LabView is a very handy tool for the engineers. One can easily plot graphs and can work on different hardware modules with it. One of the best feature of LabView is its extensive help desk. There are many examples present in it which are ready to run and can help a lot, moreover their online is also very extensive. I got into many problems while working on it and I never get stuck, I just searched online and got the solutions for my problems. So, my suggestion is, if you are working on LabView then give Google a chance to help you out, if you stuck in something.
Let's start today's post, in today's post we will receive data from serial port and show it in LabView software. In order to do so, first of all you need to download LabView software, you can easily download it from their official website. They offer a trial period of around 45 days for the students and after that you have to buy it. Now, follow the below steps carefully and if you find any trouble anywhere, let me know in comments and I will try my best to sort them out.
Steps to Follow
- First of all, you need to download the NI VISA driver.
- NI VISA driver is used for serial communication, without downloading this software you can't communicate with the serial port of your computer in LabView.
- LabView has extensive list of drivers, whenever you want to communicate with any hardware in LAbview then you have to download its driver, NI VISA is the driver for communicating with serial port.
- After downloading this driver, install it and now run your LabView software.
- When you run LabView, it will appear as shown in the below figure:
Note:
- I have given the complete working vi to download at the end but I suggest that you should design it by yourself so that you learn how to design.
- Now, click on the Create Project Button and the below Window will pop up.
- Now click on the Blank VI Template and click Finish.
- A blank vi will open up, we will design the complete project in this vi.
- These are two windows, one is called the Block Diagram, where we will place all the components and the second one is Front Panel, where user can interact with LabView i.e. the Serial data coming will be displayed in the Front Panel.
- Another small window will also be there, this window is used for getting blocks.
- Now design a vi as shown in the below figure:
- In this vi, we are receiving data from Serial port and then separating it on the basis of "," character and then placing it in a Data 1D and as well as in Response box.
- The Front Panel is shown in the below figure:
- Before running the vi, first of all select the COM Port from which your data is coming.
- Now click on RUN button in top toolbar, but still you won't receive anything, now hit the Start Reading button and you will start receiving the data, as shown in the below figure.
Note:
- If you don't select the correct Com Port then it will give error and won't run so select the correct COM Port name.
-
- Now, the COM Port I am using is COM5 and you can see Start Reading button is also ON.
Response is showing the complete data whatever is coming from the Serial Port, while the Data 1D is splitting the data and showing each data in each box and the separation character I selected is "," (comma).That's all for today, now play with the vi and I hope you will find it really amusing. In order to download the complete working vi click on the below button.
Download Labview Simulation
In the next post, I have discussed how to Display Serial Data on Real Time Graph in Labview.Displaying data on graph is usually required in most of the projects. So have a look at it.