01-06-2019 01:34 PM
Hey, I'm newbe in LabView. How can I create basic test. Where I upload a file with questions. There are 300 questions. The program has to draw 10 random questions from the file and show them. At the moment I know how to load a file and show all questions in array. He added my file. Does anyone know how to do it? Thank you in advance for your help.
Solved! Go to Solution.
01-06-2019 03:43 PM
Hi bury,
load all items, then select 10 of them in a loop.
To select random items you may create a ramp from 0 to (size of array -1), then apply Shuffle function, then just take the first 10 entries of the shuffled ramp as indices for your items...
01-06-2019 03:47 PM
Yes, I know how do it with hardcode data. But how do it with file data. Could you see the txt file and perform this task?
First I must upload data from file to array. What do I have to do in the next step?
01-06-2019 04:08 PM
01-07-2019 01:07 PM - edited 01-07-2019 01:07 PM
01-07-2019 01:10 PM
Wow, I will try this and let you know
01-07-2019 01:57 PM
@Bury wrote:
How can I create basic test.
You would connect a pH electrode and see if the reading is >7. 😮
01-12-2019 09:42 AM
I will try this but I can't connect function. And why array subset isn't string format?
01-12-2019 02:45 PM
Your question is unclear. The VI you posted doesn't show you trying to connect any function and failing. Nor does it show the Array Subset function.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
01-12-2019 03:53 PM
Try this. And next, start your homework earlier. Create the VI yourself, you will learn something even if you just copy it exactly.
mcduff