LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modifying variables

Hi,

I need some help with something.

Is it possible to set a local variable in a sequence diagram and then modify it in the while loop once the program is running?
To break down the code....I am using a sequence diagram to initialize some values for a PPL that is running in the main while loop in my program. But once it is running, I want to be able to adjust these parameters live....is this possible?

My thinking was to use a local variable and pass is across. Either by creating it in the while loop and passing the value to the sequence diagram for inialization or to the while loop. But then I don't think I can change the value as it starts in the sequence diagram and it only runs the one time.



0 Kudos
Message 1 of 5
(2,751 Views)
local variable, by their nature, can ocur multiple times in a program and just refer to a front panel object (control or indicator). You can set them to read or write mode.
 
If this does not clarify the issue, please show us some of your code. What is a PPL?
0 Kudos
Message 2 of 5
(2,745 Views)
 A PPL stands for Phase Locked Loop. We're using it aquire our signal through all the noise:) I can't post the code as it is involved in non-disclosure agreement. I think that this answers my question. I just have to dig  out the documentation on the PPL subVI to see if it well allow on the fly changes.

My mian issue was the race conditions I might run into. The code is setup to read some parameters from the front panel to inialize the PPL and filter. But after the sequence diagram runs it isn't ment to run again. But it's running outside the main while loop. So would my program be able to take the data from the while loop and pass is through a local variable to the sequence structure. I was thinking that the sequence structure would run before everything else.

0 Kudos
Message 3 of 5
(2,739 Views)

B@frontiergeo wrote:
 A PPL stands for Phase Locked Loop.
Simlar to a PLL, maybe? 😉
0 Kudos
Message 4 of 5
(2,729 Views)
Absolutely NOT! nothing like that:P
0 Kudos
Message 5 of 5
(2,725 Views)