LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Labview .vi For Random Anatomy Course

I am learning Labview and my first challenge is to build a course for one of my daughters who is taking Anatomy in her nursing program.  I would like to find an example of a vi that asks a question or shows a picture and the users selects A/B/C/D of which one is correct and three are incorrect.  Hopefully someone from the collective can get me there close.  

 

I'm thinking I would use an array which has the following elements using a 3 dimensional array.  The three elements in index 0 would be {num, question, link to image}.  I'm thinking several hundred questions.  Also thinking of using a random number generator to randomly select the questions.  Use a second array which shows {num, wrong answer}.    

 

Request the collective point me to a vi which gets me close and I'll pick away at it.  Eventually I want to move to test equipment but trying to start somewhat simple first.  

 

Tony

0 Kudos
Message 1 of 7
(2,446 Views)

Hi Tony,

 

I would recommend  using an array of clusters, each cluster of two more clusters, one of them consisting of number, question, picture, and the other consisting of an answer. Then, use a for loop with a cluster indicator on the inside and wire the array which you have prepared into that for loop and it will auto index and go through one by one. Then you can have a time delay within the loop (let's say 10 seconds) to give her a chance to choose. Then the delay displays (from the second cluster). I hope this helps.


Regards,

Basil Beirouti

Applications Engineering

National Instruments

Regards,
Basil
Applications Engineering
National Instruments
0 Kudos
Message 2 of 7
(2,408 Views)

I wrote a similar game about eight years ago and I see that I still have the code. If you want, I can upload it, but you should keep the following in mind:

 

  1. It's fully functional, so you won't learn by doing.
  2. The code is not very good. I wouldn't say it's downright bad, but it was something I wrote quickly and without any real structure, so it might not be a good thing to learn from.
  3. Some of the text (UI, messages, folder names for classifying the image) is in Hebrew, so you would have to figure those out and change them to English.
  4. It was designed to help a five-year-old learn to read and that affects how it looks and behaves.

Let me know if you want it or if you would rather proceed on your own.


___________________
Try to take over the world!
0 Kudos
Message 3 of 7
(2,392 Views)

I would like to get a copy.  Thanks.

 

Tony

0 Kudos
Message 4 of 7
(2,367 Views)

Interesting.  Let me hack at this idea and I'll get back.  Thanks.

 

Tony

0 Kudos
Message 5 of 7
(2,366 Views)

OK, so here's the game with the images and sounds which I got off the web back then. The main VI is called main.vi.

 

Keep in mind that besides the points I mentioned previously, it also requires some OpenG VIs. You can either install OpenG or remove them and find replacements. Also, it uses some relative paths which might require some changes to the code if you build an EXE, but I'll let you figure things out.

 

And yes, the sounds are just the WAVs that Windows had. It was for a five year old and any sound was good enough for my purposes.


___________________
Try to take over the world!
0 Kudos
Message 6 of 7
(2,343 Views)

I'd go with an array of clusters, the cluster needs 4 elements, a 2D picture and a radio button control for picture and answer and 2 hidden, path to picture and the correct answer.

 

A next button after button is selected and then it should be rather self explainatory.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(2,323 Views)