LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rock paper scissor game

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(3,626 Views)

@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?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 7
(3,619 Views)

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 

0 Kudos
Message 3 of 7
(3,580 Views)
Solution
Accepted by Eddie_A

@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.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 7
(3,559 Views)

Thanks for the amazingly fast response! 

Have a lovely one.

 

 Eduardo

0 Kudos
Message 5 of 7
(3,550 Views)

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

0 Kudos
Message 6 of 7
(3,533 Views)

Hello James, 

 

Indeed my questions have been answered.

Thanks a lot, 

 

 Eduardo

0 Kudos
Message 7 of 7
(3,526 Views)