02-17-2016 11:45 PM
Hi,
I need to design a LabVIEW vi which displays questions for a Quiz.
I want the vi to randomly display questions from an already prepared database and evaluate the answer.
How do I proceed with this?
02-18-2016 04:20 AM
I am not familiar with databases, but you should specify more your project in details, so others can help you. What kind of database you want to use?
02-18-2016 05:59 AM
read this
it is helpful this
02-18-2016 07:46 AM
02-19-2016 12:46 AM - edited 02-19-2016 12:47 AM
Okay.Let me put it this way:Each question has to be chosen from a collection of questions classified as simple,medium and advanced.It could even be a 2D array of 1000 questions with their answer.
This is not a HW question.
The details are:
02-19-2016 01:07 AM
02-19-2016 04:01 AM
02-19-2016 04:37 AM
Multiple choice format may lead to mere guessing of answers.
I have an Intro VI and Qst VI as attached below.
I need to introduce a timer where the maximum is set differentely for different participants based on his/her training session.
02-19-2016 04:41 AM
Initial thought was to use MySQL database and hence that was mentioned.
02-19-2016 10:07 AM
Nothing wrong with using a database for this application although it is a little overkill. If you're familiar with databases go for it. If not just use a simple flat file with your questions and answers. If you try to use the Database Connectivity Toolkit you'll find that it stores everything as binary variant datatypes and then converts it back to LabVIEW datatypes when you query the data back into LabVIEW code. That means you can't always even view or modify your database info with other tools (depending on how complex your LabVIEW datatypes are).
This guy has a pretty nice tutorial and toolkit that uses the simpler ADODB (ActiveX) calls that just involve invoke nodes instead of the toolkit: http://home.hit.no/~hansha/documents/labview/training/Database%20Communication%20in%20LabVIEW/Databa...
There's a link to his blog and DB toolkit in the PDF. The tutorial is very in-depth including database theory, setup, access, etc...