10-30-2017 04:59 AM
Hello,
I have a problem with the program.
Since the program starts to run, I can't change the value when running.
Any ideas?
For the details, I attach the Vi and the pictures.
Thank you guys
Solved! Go to Solution.
10-30-2017 05:13 AM - edited 10-30-2017 05:32 AM
Hi Liidle,
did you take the free beginner courses offered by NI to learn LabVIEW?
Why are there so many local variables in your main VI?
Why are all those control terminals unused in your code?
Why don't you resize the IndexArray functions to index more than one element?
Why don't you clean up your code?
Why do your subVIs only use default icons?
Why do you need an additional subVI to build an array from the outputs of the other subVI?
Since the program starts to run, I can't change the value when running. Any ideas?
Why are parts of your code outside of loops?
THINK DATAFLOW!
(edit: fixed typo)
10-30-2017 05:25 AM
Hello,
I put the code outside the while, that's the reason why it doesn't work.
I will look at the beginner course.
Thank you for your advice
10-30-2017 07:22 AM
A show of hands -- how many people would start programming in c, or matlab, or visual basic, or python without taking a course, viewing tutorial material, or reading a book? [No hands?]. How many would just "jump into LabVIEW" because "How difficult could it be, it's all pictures?"?
That's actually an unfair question, as I've been to a number of Travelling Road Show presentations by NI (Sales?) people who do just that -- get a bunch of (usually undergraduate) students in a room, give them a simple DAC device, and show "how easy it is to get data from this device using LabVIEW", strongly implying you don't need to "learn anything", it's all "intuitive". Grrrrr ... I get to try to "clean up the mess".
Bob Schor
10-30-2017 08:59 AM - edited 10-30-2017 09:00 AM
@Bob_Schor wrote:
A show of hands -- how many people would start programming in c, or matlab, or visual basic, or python without taking a course, viewing tutorial material, or reading a book? [No hands?]. How many would just "jump into LabVIEW" because "How difficult could it be, it's all pictures?"?
That's actually an unfair question, as I've been to a number of Travelling Road Show presentations by NI (Sales?) people who do just that -- get a bunch of (usually undergraduate) students in a room, give them a simple DAC device, and show "how easy it is to get data from this device using LabVIEW", strongly implying you don't need to "learn anything", it's all "intuitive". Grrrrr ... I get to try to "clean up the mess".
Bob Schor
That's true - cannot express it in a better way!
Jens