07-27-2017 10:41 AM - edited 07-27-2017 10:45 AM
I' m doing some simply osciloscope for school and I have few question about it.
1. Is it true that one program can only have one event structure? Because when
I do another program is blocking.
2. When I change something on the front panel it doesn't register until I change
something inside the event structure. How do I set up to receive new data?
3. How do I make that all data from the knobs are taken when starting the program?
4. How I can make knobs for change a nivo of 0V?
07-27-2017 01:08 PM
@mgudel00 wrote:
I' m doing some simply osciloscope for school and I have few question about it.
1. Is it true that one program can only have one event structure? Because when
I do another program is blocking.2. When I change something on the front panel it doesn't register until I change
something inside the event structure. How do I set up to receive new data?3. How do I make that all data from the knobs are taken when starting the program?
4. How I can make knobs for change a nivo of 0V?
1. No, but you should have a very good reason to have more than one. There are settings in the event structure properties to lock the front panel or not, and you can easily lock your program up by having multiple event structures.
2. Your code is in a while loop. One iteration of the loop means EVERYTHING inside the loop has run one time. This means the event structure has to execute. You can put a timeout case in your event structure, and wire up something like 50ms to make sure the event structure will run after some time even if you don't trigger an event. As an example, if you put another piece of code inside your while loop that takes 10 minutes to run, your while loop will only run once every 10 minutes.
07-28-2017 10:33 AM
How I can lock the front panel?
07-28-2017 11:12 AM
configure an event the pop-up will have a button near the bottom left that will let you control if the event locks the front panel until the event is handled. That selection is "on" by default.
Uncheck that box if you do NOT want your GUI to lock-up when he user punches a button that has an event registered.
Ben
07-28-2017 11:57 AM
Have you tried this?
07-28-2017 12:59 PM - edited 07-28-2017 01:08 PM
Why you think I need that ? I just learned to program in labview so I don't know much about it.
07-28-2017 01:42 PM
OOW .. Now I understand. I didn't mean on that lock. I thought of what Gregoryj was talking about. I solved that.
Thanks everyone. 😄