04-15-2013 10:51 AM
Hello
I just want to ask can I use arduino with labview for real time programming!?
My main concept is to play a game called rock paper Scissor, the famous one using labview and hardware of arduino!
A person will be playing this game against computer(that will randomly choose rock, paper, scissor).
Another bit added to it to make this game to make it different from a conventional one is that I am using pneumatic pressure(FESTO) to make hand against the persons will. So in other words its always the computer that wins!
So can I do this real time programming using labview and ardunio?? Or do I have to use some other hardware necessarily like CompacRio??
Can you please help me out!
Thanks alot!
Eduardo
Solved! Go to Solution.
04-15-2013 10:56 AM
@Eddie_A wrote:
Hello
I just want to ask can I use arduino with labview for real time programming!?
My main concept is to play a game called rock paper Scissor, the famous one using labview and hardware of arduino!
A person will be playing this game against computer(that will randomly choose rock, paper, scissor).
Another bit added to it to make this game to make it different from a conventional one is that I am using pneumatic pressure(FESTO) to make hand against the persons will. So in other words its always the computer that wins!
So can I do this real time programming using labview and ardunio?? Or do I have to use some other hardware necessarily like CompacRio??
Can you please help me out!
Thanks alot!
Eduardo
Hope you have liability insurance in case you injusre someone. 😉
For "real time" do you mean using a realtime operating system?
04-16-2013 03:30 AM
Hello Bill,
I'm not sure if I understood correctly your question about real-time operating system. I'll explain here further the project, so it may be clearer; the device I'm working on has a glove with sensors (both pressure and flex sensors - making it safe! ;D). I would like to use Labview and an arduino to read the sensor's values. The person playing the game against the machine will "mold" the glove into the desired choice of rock, paper or scissors. The computer on the other hand will choose randomly a hand. If the computer wins, great, nothing needs to be done. Now, if there is a draw or the computer loses, imediately the glove will slowly shape into a losing hand. Since speed is quite important for this scenario, I would like to know if the response would be fast enough to play a "working" game.
Many thanks,
Eduardo
04-16-2013 07:43 AM
@Eddie_A wrote:
Hello Bill,
I'm not sure if I understood correctly your question about real-time operating system. I'll explain here further the project, so it may be clearer; the device I'm working on has a glove with sensors (both pressure and flex sensors - making it safe! ;D). I would like to use Labview and an arduino to read the sensor's values. The person playing the game against the machine will "mold" the glove into the desired choice of rock, paper or scissors. The computer on the other hand will choose randomly a hand. If the computer wins, great, nothing needs to be done. Now, if there is a draw or the computer loses, imediately the glove will slowly shape into a losing hand. Since speed is quite important for this scenario, I would like to know if the response would be fast enough to play a "working" game.
Many thanks,
Eduardo
Yes, LabVIEW will be plent responsive for your needs. For maximum responsiveness, make sure to stick to LabVIEW best practices. 🙂
04-16-2013 08:08 AM
Thanks for the amazingly fast response!
Have a lovely one.
Eduardo
04-16-2013 09:32 AM
Hi Eduardo,
This sounds like an interesting project. Just to confirm, the glove that you wear will be forcing your hand into a certain position using pneumatics!?
To try and answer your question:
To use “Real time programming” you would be running on a real time operating system, and you are quite right, for that you would need a cRIO or similar device. If you are writing LabVIEW code to interface with the Arduino you will be running the code on your PC and not on the actual Arduino, the Arduino will just be used for the input and output of the signals etc.
However for your application I don’t think you would need to operate in real time. You should be able to control I/O fast enough using just LabVIEW. Have a look at the example that one of our engineers has already created:
Arduino Baby Mobile Youtube Video
I hope this answers your question,
James O'Neill
National Instruments
04-16-2013 09:56 AM
Hello James,
Indeed my questions have been answered.
Thanks a lot,
Eduardo