LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to boolean within cluster

I want to write true to a boolean when a case starts and then write false when the case completes. This will show which step is currently running.

Download All
0 Kudos
Message 1 of 11
(5,237 Views)

I am using labview 2009. If I make a change to the values in the array while running, they are discarded. I want to maintain any changes to the string while the vi is running. Also, when the vi stops running, or at the begining of a run, I would like to set all boolean to false and numeric to zero (default values).

Download All
0 Kudos
Message 2 of 11
(5,219 Views)

Well, I hate to say this but,  why not use a timed loop and a case structure?

 

An indicator on your enum would show the executing case just as well Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 11
(5,217 Views)

The application has 50 or more sequences. Each array dim will be a sequence that can run once or numerous time. Each time the sequence runs I need a visual indication that the sequence is running. Inside the array is a lot of data that will be used to ramp voltage and current and turn on relays ...ect. The main thing is I want to have a way to indicate which seq. is running and then reset it all back to its default state when complete. While the program runs it is very important that the user is able to adjust things such as current output and voltage output. I made this vi as an example. It is in no way the application. I am just trying to get this to work.

0 Kudos
Message 4 of 11
(5,204 Views)

I don't quite understand what you're trying to do, but based on just having a "moving" value perhaps the attached modification is closer to what you're trying to do...

0 Kudos
Message 5 of 11
(5,175 Views)

This is close. I want to be able to identify which dim is running (thus the boolean lights when that dim runs), this is doing that. I need the array to initialize to default values, this is doing that. I need to be able to change all the other values inside the array (only have a string in this example) as the program runs, this isn't doing that.

0 Kudos
Message 6 of 11
(5,170 Views)

 


@bassinbc wrote:

 I need to be able to change all the other values inside the array (only have a string in this example) as the program runs, this isn't doing that.


Oh, come on, now. You have a Bundle By Name function right there to select which element of the cluster to change. Use it!

 

0 Kudos
Message 7 of 11
(5,167 Views)

From the front panel the user needs to be able to change values (in this example the string) on the fly. It will start with a value and as the program runs change that value and be able to use the new value within the program case structure (on the fly).

0 Kudos
Message 8 of 11
(5,162 Views)

I don't need an indicator.

0 Kudos
Message 9 of 11
(5,139 Views)

Here's the file we talked about on the phone.

Stephen Meserve
National Instruments
Download All
0 Kudos
Message 10 of 11
(5,132 Views)