LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Several questions about LabVIEW.

Hi

I have several questions about LabVIEW.
1.Can I modify my program when it is running. I can do this in VB but I don't know is that work in LabVIEW?

2.I have a program that need to run several hours to take data from multimeter. I have a loop for doing that. If I stop the program, all data will be lost. How could I obtain the data even I stop if manually?

3.What's the function of waveform chart's "Copy data"? I click it and choose the other chart for paste but it didn't work?

4.In VB, there is a command "Exit For" to quit a for loop. Dow to do that in LabVIEW programming?

5.What's the maximum of waveform chart's Chart History length?

6.Why the blinking color of light or LED are always red with yellow border? Can I
change it?

Bill
0 Kudos
Message 1 of 7
(2,775 Views)
Hello,

1. You can't.
2. If sampling rate is low add each measurement to file immediately, else put your data to array indicator inside a loop. So if you stop program from LV stop button you will see all mesuarements in indicator.
3. This function copy wf chart to clipboard.
4. LV haven't command "Exit For". If you need exit from loop if occured some occurance use While loop.
6. Open Tools/Color and chose blinking BG and FG colors.
Message 2 of 7
(2,775 Views)
Hi nchernin

Thanks for your help. For the Q.6, I can change the LED on/off colors but not the blinking colors. How to choose blinking BG and FG colors? I can't find it in front panel. Is that work in 6.1 or 6i only and I'm using 5.1 base package.

Bill.
0 Kudos
Message 4 of 7
(2,775 Views)
Tools/Options/Colors - this is right way.
0 Kudos
Message 5 of 7
(2,775 Views)
"nchernin" schreef in bericht
news:506500000005000000177B0000-1021771306000@exchange.ni.com...
> Hello,
>
> 1. You can't.

You can if the program parts that are running contain no callers to to VI
that you want to change.
This is only posible when you load /unload parts of your entire program
dynamicly

> 2. If sampling rate is low add each measurement to file immediately,
> else put your data to array indicator inside a loop. So if you stop
> program from LV stop button you will see all mesuarements in
> indicator.
> 3. This function copy wf chart to clipboard.
> 4. LV haven't command "Exit For". If you need exit from loop if
> occured some occurance use While loop.
> 6. Open Tools/Color and chose blinking BG and FG colors.
0 Kudos
Message 7 of 7
(2,775 Views)
Here are possible answers:

1. By modify if you are referring to being able to ineract with controls and indicators yes. If you are referring to changing the acutal code while the application is running, not really. How do you do this in VB, don't you have to recompile before your changes take affect? What exactly are you trying to do, that may help us better answer your question.

2. The method you should use depends on what it is you need to do with the data. If you just need to view the data then you should be just adding the data to an array. If you need to have it in a file then you should be periodically writing the data to a file, otherwise you'll have to get the data out of the indicator and then get the data into the format you need.

3. Not sur
e.

4. There is no method to exit a for loop prematurely, you'll need to use a while loop and create an exit condition. In the while loop in LabVIEW there is an "i" icon which provides the loop interation number in case you need to make use of that in your application.

5. Not sure.

6. This can be changed by selecting the color tool. Change the LED to false and select your color and then change it to true and select your color. You can set the LED and text color.

Best Regards,
Kamran
An
Message 3 of 7
(2,775 Views)
Hi,

About 6:

The blinking colors can be set in the Tools>Options... menu, under colors.
The color of the true/false indicator state is not the same.

The blinking colors (bg / fg) is global. If you change it it'll change for
all buttons, also the ones that are already created.

If you want to customise the colors, you'll have to simulate the effect:
change the colors of each button from within your program with property
nodes, use two colors and change every .. seconds.

Regards,

Wiebe.


"Kamran S." wrote in message
news:506500000005000000327B0000-1021771306000@exchange.ni.com...
> Here are possible answers:
>
> 1. By modify if you are referring to being able to ineract with
> controls and indicators yes. If you are referring to ch
anging the
> acutal code while the application is running, not really. How do you
> do this in VB, don't you have to recompile before your changes take
> affect? What exactly are you trying to do, that may help us better
> answer your question.
>
> 2. The method you should use depends on what it is you need to do with
> the data. If you just need to view the data then you should be just
> adding the data to an array. If you need to have it in a file then you
> should be periodically writing the data to a file, otherwise you'll
> have to get the data out of the indicator and then get the data into
> the format you need.
>
> 3. Not sure.
>
> 4. There is no method to exit a for loop prematurely, you'll need to
> use a while loop and create an exit condition. In the while loop in
> LabVIEW there is an "i" icon which provides the loop interation number
> in case you need to make use of that in your application.
>
> 5. Not sure.
>
> 6. This can be changed by selecting the color tool. Change
the LED to
> false and select your color and then change it to true and select your
> color. You can set the LED and text color.
>
> Best Regards,
> Kamran
0 Kudos
Message 6 of 7
(2,775 Views)