LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in accessing another screen

Solved!
Go to solution

Hi,

 

I have a small problem.

I have a main screen with two commands. >>Login and Operation.

I can access to my Login and no issues.

When it bounces back to operation, I cant go into my operation screen.vi.

Why is this so?

 

PLs do advise.

 

Thsk N Rdgs

 

Titano

Download All
0 Kudos
Message 1 of 9
(4,304 Views)
You have not set the windows properties of the operation VI like you did the login VI.
0 Kudos
Message 2 of 9
(4,296 Views)

HI,

 

Do you mean the connectors?

 

 

0 Kudos
Message 3 of 9
(4,291 Views)
Solution
Accepted by topic author Titano

Of course not. Look at how you have set VI Properties>Window Appearance in the login VI. It's been customized.

 

Though if the login VI is not your code, you probably don't know anything about it. Before you do anything else, you might want to spend some take time taking the tutorials.  The process done for the login VI is also explained in one of the shipping examples. Look for an example called Dialog Box Demo and look at the block diagram of the popup subVI.

0 Kudos
Message 4 of 9
(4,285 Views)

HI,

 

Thanks. 1 more query.

Once I run my main screen, I want only the login button to be enabled. Once I'm successfully logged in, then the operation screen must be enabled.

How do i go about it?

I tried property node but could not get a successful result.

Pls advice.

 

Thanks

Download All
0 Kudos
Message 5 of 9
(4,278 Views)

You don't have any property nodes in the program. If you want something fixed, you need to show what you have done. It's simple to wire the result of the login VI to a couple of Disabled property nodes.

 

p.s. You've already been warned about this silly 'one more thing' habit that you have. Please break it.

0 Kudos
Message 6 of 9
(4,244 Views)

Hi,

 

I tried implementing the property nodes.

I could disable the operation screen but do not know how to enable it after the login authentication is successful.

From my, operation screen, tried to put a back button to latch it back to the main screen, but unsucessfull also.

 

Pls advice.

 

 

 

0 Kudos
Message 7 of 9
(4,230 Views)

Sorry, forgot to attach the attachments.

Here they are...

Download All
0 Kudos
Message 8 of 9
(4,229 Views)

Think about what you want to do and then look at your code. You have said that if the login in successful, you want to enable the operation button. You've done nothing in the login event. You just have to check the result coming back from the login VI as I've already said. If it's true, you enable the operation button and disable the login button. The operation event should not have any property node. What you have there is just plain wrong. You do want to set the properties before the while loop runs.

 

Your back button in the operation subVI also makes no sense. As soon as the stop button is clicked, you will return to the main.

0 Kudos
Message 9 of 9
(4,218 Views)