06-04-2023 08:13 AM
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
06-04-2023 10:17 AM
@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.
06-05-2023 04:53 AM
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.
06-05-2023 09:27 AM
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.
06-05-2023 11:07 AM
@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".
06-05-2023 11:34 AM
06-05-2023 11:52 AM
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.
06-05-2023 12:35 PM
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.
06-06-2023 07:30 AM
Hi
did you find a solution?
06-06-2023 08:56 AM - edited 06-06-2023 08:57 AM
Hi Maleklam,
How did you accomplish what you are describing with a broken VI?