LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is an event structure right?

When I said use an event structure, I meant an event structure for the whole thing, See attachment.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 11 of 25
(1,339 Views)

Hey Mike,

   Thanks for the attachment and I appreciate your help. Between you and Brian I think I will be able to get back on track Thanks again for sending a piece of code to help me see how to make things work!

Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 12 of 25
(1,329 Views)

Remember that the powerful thing about an event structure (and event-driven programming) is that it lets you break the overall job down into smaller managable tasks. For example: What do you want to happen when this button is pressed? What should happen when an other button is pressed, and so on. Then you put in the Timeout case anything that should be happening when nothing else is going on. Use the events properly and you don't need other lops and timers and things.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 13 of 25
(1,327 Views)

Will keep that in mind. I was having a problem getting the other buittons to work properly in that I couldn't get another button to work once I clicked the first button. But with the code I received from you and Brian I think I can now figure out how it works.

I appreciate the Help... Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 14 of 25
(1,322 Views)

Mike,

   Just wanted to let you know that using the little piece of code you sent me made it possible for me to get back on track with my project! Plus I learned a lot from your code. It helped me see some of the logic errors I have been making. So I just wanted you to know that and say THANKS! Brian's code was helpful, but the extra steps you added gave me the information needed to make my code work right. I was thinking I would have to rebuild from scratch. Thanks to you I just had to rework my code!

   Also the VI you sent me had Windows XP style buttons in Labview. Is there a way to convert my VI buttons to XP style without having to redo it? Just thought you might know if not no biggy. Anyway Thanks for all the help!

Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 15 of 25
(1,305 Views)
Yes, I can tell you how to change the buttons, but you'll have to pay me...
 
Just kidding... Seriously those buttons are LV's "Dialog" style button. Want to see something neat? Change XP so its using the traditional Windows look, and reopen the VI I sent you...
 
In any case, just right click on the buttons you want to change and go to the "Replace" option. You will find those buttons in the "Dialog Controls" palette.
 
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 16 of 25
(1,304 Views)

Hey Mike,

   Did as you suggested (switched to Classic Windows and back) very cool...  I just want to say thanks again. your help has helped me get back on track and even a little ahead. That is a relief as I was thinking I would be behind. So hope to hook up with you on a future project and Again Thank You!

Best Regards, Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 17 of 25
(1,284 Views)

Hello everyone!

I saw that you have had a problem with buttons. You said "I was having a problem getting the other buittons to work properly in that I couldn't get another button to work once I clicked the first button." and I think I am having the same problem. It's not the first time I have it but last time I solved it by copying and pasting others buttons of my front panel which did not have this problem. This time, this action does not solve the problem: once the button has been clicked, I can't click it again... and it seems creating errors in the whole program.

If you have ideas of where the problem comes from or better what i can do to solve it, i would be very pleased.

Cécile

Using LV7.1 with XP

0 Kudos
Message 18 of 25
(1,263 Views)
Hi Cécile,
 
   The only thing I can think of is the mechanical action might be set wrong. Not being able to see the exact problem it is hard to determine what it could be other then that. You might try right clicking on the button and try each of the options listed under mechanical action. Hope this helps.
 
Charlie
Everything is Free! Until you have to pay for it.
0 Kudos
Message 19 of 25
(1,259 Views)

Thanks, but I tried to change it and it's not the problem. Moreover, I did not have the problem before this week.

If any other idea, I'll try!!!

Cécile

 

0 Kudos
Message 20 of 25
(1,256 Views)