07-15-2010 08:36 AM
@jlam wrote:
Right on tbob 🙂
Is there a way I can go around LABVIEW where I can customize my key navigation?
Technically, you can't "customize" your key navigation. At least not in the way you're thinking. The keys that are in the list are what's available. Instead, you can use an event structure to listen to the Key Down event and then respond as necessary based on what key was pressed.
07-15-2010 04:49 PM
I have also come across the problem when working on my new VI. As you can see from the VI that I have just attached, there is a waveform graph on the front panel for data acquisition. The value shown right now is from time, 00:00:00 to 00:05:00 (0-5minutes).
The problem that I am faced right now is, everything when I hit the run button, LABVIEW seems to automatically chance my time value to some sort of genetic time. What I want to accomplish here is that, I want to acquire data on the waveform graph from time 0 to 5 minutes. Also, I would like to specify the increments myself. For example on the time scale (x-axis) from 0-5 minuntes, I would like a 30 seconds interval between them. How do I actually accomplish it?
Thanks for any help!
Jlam
07-15-2010 04:49 PM
Here is my VI. It is the same as the one that I posted earlier. Thanks!
07-16-2010 10:25 AM
To set your own scale, right click on the Waveform Chart and select Properties. On the properties window, select the Scales tab. There you will a slew of options. Uncheck the Autoscale box and set you minimum and maximum values. You can also select Scaling Factors and Scale Style (showing tick marks). Then save your vi.
You still have not converted your architecture to a state machine with events as has been advised by several people here. Your code will look much better and be more understandable if you did. Putting case structure with T/F constants on them is not the way to go. You should create a state machine. If you want to skip a state, just change the next state variable in the state that calls the one you want to skip. You still have two parallel loops and you still have a sequence structure. If you want to keep it this way, you will have troubles down the road when trying to make improvements or changes. We are not telling you to switch your architecture for the hell of it. We've all been at your level at one time and we know the problems associated with it.
07-19-2010 10:22 AM
Here's an example that demonstrates using an event structure to do custom navigation as smercurio_fc mentioned.