03-31-2011 06:03 PM
This action engine is part of a larger test. I call it every 15 minutes to test for temperature stabilization (four consecutive readings at 15 minute intervals within three degrees)
It seems to work as far as detecting stabilization but I don't understand why it's numerical array indicators do not update.
If you run this by it's self and fill numbers in the Temperatures array control all the indicators work.
But when it is a sub-vi all the indicators remain grayed out or in their initialized state when I open it while it is running.
I even have brought the Stab Array out with a terminal thinking it would be updated every time the sub-vi ran, but it is not.
What is going on here?
Solved! Go to Solution.
03-31-2011 06:45 PM
What is the reentrency setting on this VI?
03-31-2011 07:20 PM
@Darin.K wrote:
What is the reentrency setting on this VI?
It is NOT set to be reentrent
03-31-2011 07:38 PM
It seems to work OK for me.
Here's what I did:
Put snippet on block diagram
Disconnected Function control from Type Def
Wired controls and indicators to connector pane
Then I placed the AE in a main program. Being lazy, the main uses a breakpoint to stop each execution of the loop so you can vary the Temperature inputs.
steve
Weinberg's Second Law: If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
04-01-2011 07:34 AM
I think that LV sometimes does not update indicators on panels which are closed at the time the VI runs, even though the data is processed and passed along correctly. This is an optimization to avoid doing things which make no difference (In this case not updating indicators which no one can see).
If you run your main VI for a while then open the AE FP, you see the initial state of the FP until the main calls the AE again. Have you watched it long enough to see if this is what is happening?
Lynn
04-04-2011 10:25 AM
Hello RTSLVU
I will be happy to assist you with this issue. Can you let me know if any of the community input has assisted you in your issue? Out of curiosity, which hardware are you using for temperature sensing?
Thank you for supporting National Instruments!
Greg S.
04-04-2011 10:45 AM
@Greg S wrote:
Hello RTSLVU
I will be happy to assist you with this issue. Can you let me know if any of the community input has assisted you in your issue? Out of curiosity, which hardware are you using for temperature sensing?
Thank you for supporting National Instruments!
Greg S.
I think @johnsold is right, I must not have been looking at my sub-vi(action engine) at the right time as I have left it open and the indicators are updating. The vi has been working for a long time. I just had done some optimizations recently and was concerned since it seemingly was working but did not look like it could be because all the indicators were in their default state every time I looked at it while running...
Anyway we use Agilent 34970A units with 34091A 20 channel MUX cards for thermalcouple measurements.
The 34970A is our engineering lab workhorse.
04-04-2011 05:34 PM
Hello RTSLVU
I'm happy to hear that you are content with this response.
Thank you very much for supporting National Instruments!
-Greg S.