I'm using LV7 so I can't give you examples that you can open, however
there are hundreds of excellent examples on most things you want to do
reachable from the help->find examples menu in LabVIEW. If you e..g.
search for graph you will find an example that shows you how to put
multiple curves on the same graph. But let me briefly go trhough the
questions:

1. If you place a button on the panel, put a case structure next to
the terminal on the diagramme and draw a wire from the button terminal
to the case selector and then put a dialog function (from the time and
dialog palette) inside the true case you're pretty much there. Draw a
while loop around it all and wire the button to the loop condition and
run the VI..click the button and you get the dialog. If you want your
own VI to pop up when the button is clicked you need to make a subVI
and set that VI to open when called (and close when finished)...Search
for how to create a sub-VI here on the zone.

2. If you have a button and a numeric control and you want the button
to change color based on the numeric value use e.g. the In range and
coerce function to check if the number is within a range, if it's not
check if it's above or below...based on these boolean values select a
color and wire that color constant to the color property of the button
(right-click on the button and select create-> property node, then
click on the property node and select colors...you'll need to use a
bundle function to bundle the colors. Since you want to just flash the
value create a shift register with a boolean that you switch from true
to false on every n iteration and then give that value to a selector
with one terminal fed with the default colors and the other fed the
alarm colors...wire the output of the selector to the color property
of the button. If the value is within range you can just overrun the
toggling of that boolean and set it to the value that makes the
selector give the default values...

3. The color and other properties of the different curves can be
manually set from the plot legend of the graph (just expand it to show
more plots and click on the plots in the legend to set their
properties). To get more than one plot on the graph you need to build
a 2D array to feed to the graph, again this is shown in the example
that comes with LV. The plot properties can also be controlled
programmatically by selecting an active plot using a property ndoe for
the graph and then set the plot properties with the same node.

4. The color of the panel and any other item on it can be changed
manually by using the paint tool, just select the color and use the
brush tool to paint wherever you want. To change the color of the
front panel programmatically open a reference to the VI, get the font
panel reference and wire it to a property node, you can then select
the color property, set it to write and wire whatever color value you
want to it...remember to close the references afterwards.

5. This is really well documented, if you check the help-> find
examples section and search for analogue you'll see how to aquire
single and multiple channels and samples. If you have multiple
instruments on the same card they are on different channels...you
identify them with the channel number.

Reply via email to