03-20-2017 06:23 AM
Dear All,
I was wondering whether we can do something more dynamic in Labview. I am quite new to LV, working on a project. My task is to make a test setup which will grow dynamically upon user request. whole scenario can be explained here.
Get input from user 'how many cycles do you want'?, upon user input number of prompt user dialogue boxes will grow. Let's say user enter 4, then 4 prompt user dialogue boxes should be opened one by one (which further contains 4-5 inputs), Each with different values (Which will further be used in another program).
I know use prompt user (And further making it typedef if needed). But don't know how we can expand or reduce number of dialogue boxes upon user request.
I hope you'll understand the problem.
It would be really appreciated if you could suggest or help me with this.
Thanks
Khan.
Solved! Go to Solution.
03-20-2017 06:45 AM
Hi Khan,
open the LabVIEW options as an example!
It's made of a listbox and a subpanel container. Each time you select an option topic a different VI is presented in this subpanel container…
(When you do the same "in each cycle" you should think about using arrays!)
03-20-2017 07:09 AM
Are these cycles supposed to run in parallel or in series? If in series, the just use a FOR loop (set N to the number of cycles) and use an autoindexing output tunnel with your configurations for each cycle to store them in an array.
03-20-2017 08:48 AM
Dear GerdW and crossrulz,
That's exactly i need to build which GerdW suggested but could not figure out how? I tried using ideas from both of you and end up with attached VI. But I could not save these values for further use. These individual prompt user values will be further used in a seperate VI as set point of serially connected devices and some delay elements. And yes, the cycles will run in series (One VI will get these inputs serially after one cycle will be finished). I am not sure i could explain it correctly or not. Here i tried to explain in a diagram, hope you will understand.
Thanks for help and support.
Khan.
03-20-2017 09:06 AM - edited 03-20-2017 09:06 AM
Bundle the data inside of the loop. The output should be an array of clusters. Now when you go to run the tests, you just use a FOR loop with an autoindexing input tunnel. Inside that loop, you just unbundle the data.
03-20-2017 09:36 AM
Dear Crossrulz,
Can you attached the VI (in LV2014 format) so that i can better look into it.
Thanks
Khan.
03-20-2017 10:18 AM
I already threw that code away. It is quite simple: Bundle By Name inside of the FOR loop.
03-21-2017 03:02 AM
Dear Crossrulz,
I tried to implement it but got one error. I am new to LV that is why don't know much of the things. Can you guide me why this happening?
Thankyou so much.
Khan.
03-21-2017 03:41 AM
03-21-2017 03:49 AM
Dear Udka,
Yes i can see error but don't know how to fix this. I tried to put array elements inside it but it does not work. Can you please elaborate.
Thanks