LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset and storage

Hello

How i can do reset of inductors during while loop run while and stoker based on a variable variable 3 values local variable in an array

0 Kudos
Message 1 of 14
(2,047 Views)

@MalekLam wrote:

Hello

How i can do reset of inductors during while loop run while and stoker based on a variable variable 3 values local variable in an array


This is pure gibberish! What is an "inductor"? What is a "stoker"? What is a "variable"?

 

Attach your VI and explain what it should do as a function of user input.

0 Kudos
Message 2 of 14
(2,014 Views)

I don't have a vi file yet, I'll explain more, when I run the program, I press an OK button, I would have a value indicated on an indicator, I reset the default indicator by "reintialize to default " in order to indicate another value again when I press OK without stopping the program and launching it another time. my question how can i overwrite the default value 0 when i press ok because when i click ok the 2nd time the indicator shows 0 it doesn't change.

0 Kudos
Message 3 of 14
(1,956 Views)

Yes, I think it would be best to post your code just so we can get a visual understanding of what you want to accomplish. 

I think I understand your question, You want to know how to overwrite the default value 0 when you press OK. 

When you're done with the VI file, attach it. I'm pretty sure you will get your problem solved. I've learned the quickest way to get your problem solved here is by showing what you've done and explain what you are struggling with. 

0 Kudos
Message 4 of 14
(1,925 Views)

@MalekLam wrote:

I don't have a vi file yet, I'll explain more, when I run the program, I press an OK button, I would have a value indicated on an indicator, I reset the default indicator by "reintialize to default " in order to indicate another value again when I press OK without stopping the program and launching it another time. my question how can i overwrite the default value 0 when i press ok because when i click ok the 2nd time the indicator shows 0 it doesn't change.


Thank makes no sense! If you don't have a VI for testing, how can you possibly tell what does or does not change?????????

 

Please attach what you use for testing, because there is an infinite number of possibilities to do it wrong (and dozens to do it right!) and the solution depends on many details that we don't have. I suspect that you have a race condition. An indicator always shows what is in the wire going into it, so any default property will only last for one iteration. Dataflow!

 

"Reinitialize to default" is typically pointless. Normally you would just write the desired value to a control using a local variable. Much less overhead and you can write any value, not just the default. It should never be needed for indicators!

 

(If you want default values for indicators when the VI is called and before the indocators are updated, you can set the vi execution property "clear indicators when called".

0 Kudos
Message 5 of 14
(1,903 Views)

I'm  a student I need help to finalize my project, I can share my project on the forum before presenting it 

 
 
0 Kudos
Message 6 of 14
(1,888 Views)

All you need is attach a tiny, simplified VI that has the numeric control, the numeric indicator, an OK button, and a stop button. The diagram should shows how things are currently connected and architected.

 

Then.

  1. explain how you run it
  2. explain how you operate it
  3. explain what you see (i.e. what part we should focus on)
  4. explain what you expect to see instead

 

 

0 Kudos
Message 7 of 14
(1,881 Views)

Hi,
here is part of my project, I will explain the situation, when I click on start it does an inflation and deflation using the pump and valve, it displays a PA value during deflation, when I launch start another time without stop the loop and launch it another time the program by run, I will have the inflation and deflation but the PA value always remains the previous value, I will normally launch start three times to store PA the three times and average the three values , I hope you will understand my explanation and I await your support thank you.

0 Kudos
Message 8 of 14
(1,868 Views)

Hi 

did you find a solution?

0 Kudos
Message 9 of 14
(1,821 Views)

Hi Maleklam,

How did you accomplish what you are describing with a broken VI?

0 Kudos
Message 10 of 14
(1,800 Views)