From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

several basics problem with a project

Solved!
Go to solution

Good morning everyone,

 

Sorry for my english in advance, you'll see some mistakes probably :3 I hope that you will understand anyway !

 

Well, i'm a beginner with labview and i'm working in a project about a system which can take some speed and strenght measures. 

 

I already created several VI :

- One for the speed

- One for the strenght 

- One in order to do a report 

- and an other to choice the type of the test. 

 

To sum up, the system have to control 2 types of measures : 24 km/h and 28 km/h and we have to be in conformity with this 2 different tests obviously. 

So the goal is : 

 

  1) Display the first VI : type of measure and let the user choice about 24 or 28 km/h and then Labview will say if it's in conformity or not after the measure.

  2) Display the VI which show speed measures for the users; 

  3) Display the VI which show strenght measures; 

  4) And finally the last VI to do the report : i integrate checkbox, etc. 

 

I would like to help the users to switch in this VI thanks to buttons "previous" or "next". 

 

I already write a "Main". If i run the main i got a first push button to go in a VI and then i got some buttons "next" to show the next VI. 

 

But now i got different problem and even if i try to solve him i really don't understand how ...

 

I'll develop my problems : 

 

- The main problem is about the execute of these VIs : The test is during 0,6s. So i would like to run every VI during the test, save data, and only then show different data for the users thanks to these VI like i explained just before. For now, if i understand, my work just run different Vi when i click on the button "Next" and finally i don't want to do this. 

 

- An other problem is that actually the user can navigate between different VI but they still aren't delete when the user click on "next" finally it's useless actually. In exemple, i want that the user look at the data speed, write them on an other file, then click on next, delete front panel and show the next, write on an other file, click on next, etc... and I don't understand how it's possible... 

 

- Finally, i think that's possible, but the best thing for me could be that different data be saved in a file, with everything which is on the front panel. If i got a graphe, i would like the graph in a file, etc. And in exemple for my last VI, the report, thanks to the checkbox. If something is check, write in a file, and if it's not ignore it. 

 

 

Sorry for this very long text and my bad english. I hope that you understand my problem... I really need help -_- I'm desappointed, it's an important project for me (apprenticeship) and i really tried a lot this last week but i'm asking you now cause i really don't have idea anymore... 

 

Thank you in advance, 

 

I join my project in order to receive a little help and explanations to solve this problem Smiley Happy 

0 Kudos
Message 1 of 10
(4,195 Views)
Solution
Accepted by topic author XFly

hi Xfly

         I think you should be using subpanel. since u have two vis(according to my understanding) and the user has the option to do work in one vi and then move to the next vi. you can use "insert into subpanel" and change between two vis.

 

hope this helps

 

regards

V.Senthil kumar

Message 2 of 10
(4,181 Views)

Hi 🙂 

 

I never used Subpanel i think... i'll try this solution then.

 

I'll think about this today then and if i have few problems or missunderstanding i'll come back here to explain :3 

 

And obviously everything is an help ! don't worry about this 🙂 i have to find a solution so everything is welcoming ! 🙂 

 

I hope that i will understand how it works anyway 🙂 i'm really a beginner. 

 

regards

 

Maxime.L 

 

 

0 Kudos
Message 3 of 10
(4,173 Views)

After... I dont' know if it was clear, but i would like run every Vis and only show them with different manip by the user. I don't know if this  solution can do this. I'll see 🙂

0 Kudos
Message 4 of 10
(4,169 Views)

The subpanel idea is good. It can be combined with a Tab control. Either you have 1 subpanel and switch which VI is inserted, or you have a tab control with a subpanel per tab, and simply change tab.

A simpler solution, which isn't as pretty, is to simply pop up the VI's as separate windows.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 10
(4,148 Views)

Ok ! 

 

Thanks a lot 🙂 I'll think about this next week 🙂 

 

 

0 Kudos
Message 6 of 10
(4,132 Views)

Hey 🙂

 

Just to be sure... Are you talking about this thing ? 

 

According to this video obviously it's interesting, but it doesn't run every VI no ? 

 

Just like my actual project, it will just open every VI and close them one by one if i want to stop watching ? 

 

But ... if someone isn't run in early, i will not see results, am i wrong ? 

 

I'll try this afternoon or tomorrow anyway, but i'm not sure about this way... or i missed something :3

0 Kudos
Message 7 of 10
(4,092 Views)

And yeah I know that i love thinking before trying ... 😄 

0 Kudos
Message 8 of 10
(4,089 Views)

How did it turn out, and which route did you take?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 10
(3,961 Views)

Hi 🙂 

 

I used Subpanel like your advice. 

 

And it works. I got 4 panels actually on the main. I'm still working on the same project actually but I have to do something else. Maybe will i ask your help soon if i don't know how to resolve this problem 🙂 

Message 10 of 10
(3,932 Views)