01-30-2012 03:26 PM - edited 01-30-2012 03:36 PM
Hi
I want to make a program that has three steps. The first asks for file location and file name, the second step asks initiates hardware and the final step is the actual running software.
I want all the data from the first two steps to be transferred to the third step so they have to be avaliable globaly.
Oh and as you proceed through the steps it must close it but keep the variables.
Sorry if it is a bit confusing, please asks me if theres anything more you need to know. any help would be great.
Thanks
D_e
Solved! Go to Solution.
01-30-2012 03:34 PM
Destructive...
Use a Tab control on your front panel. One tab for file, one for hardware init, and one for run. You will only have one block diagram so the data is readily available. Just wire it where it needs to go.
It sounds like you are new to LabVIEW. If you have not done so, take a bit of time to work through the on-line tutorials for gettng started with LV. It willsave you a lot of time and frustration.
Lynn
01-30-2012 03:43 PM
Yes i am quite new to labview all though i have the main program working and it does everything i want i just want to make it user friendly so i decided to do it in steps.
therefore the user has to put the information in before they can proceed.
im still trying to grasp all the functions labview has to offer. some things labview make so easy others i would rather program in C lol.
I will try the tab thing but i dont want the user to be able to cycle throught the tabs so im hoping i can disable user interaction and make the program control the tabs.
I will give it a go now!
thanks
D_e
01-30-2012 03:46 PM - edited 01-30-2012 03:47 PM
Athough I don't normally recommend MOST express vi's "Prompt user for input" and "Prompt for file name" might be just what you want
01-30-2012 03:51 PM
You can use property nodes to disable individual pages.
You can make the Tab Control an indicator and write to its terminal on the block diagram to change pages.
And what Jeff said.
Lots of options.
Lynn
01-30-2012 03:53 PM
Yea cheers guys i will mess around and get back to you.
Thanks for the quick replys if you think of anything else let me know
Thanks
D_e
01-30-2012 06:33 PM
Tabs worked great!!!!!!!
Thanks!!!
D_e
01-31-2012 10:39 AM
Tabs probably do the job, but you might find Jeff's answer is a better one long term for programming. If user interaction is available then the express VIs he mentioned, or dialogue type boxes or even sub VIs which are called (you wire out the values you need later) before any other interaction might be more elegant. It is possible to launch VIs and then clse them programatically.
02-01-2012 02:16 AM
Hi guys,
Thanks for all your help!
I did do it using tabs and its working perfectly i just controlled the tabs from the block diagram and got rid of the tab selection on the front panel so it looks like its going to another page.
I am still learning all the functions this software has to offer, most of them I understand due to having programming experience but I find the structure the hardest to get my head around (guess im used to text based lol) there is still alot more to learn so I guess alot more reading!!
Thanks alot
D_e