Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66645

Automated loading and executing array of presets sequentially

$
0
0

Hi,

 

I have built a system that allows a user to set certain parameters and send those parameters to another program using an event case.  In order to have my controls update in real time I had to use nested while loops.  The inner loop contains the controls which is halted by the event trigger that is housed in the larger while loop along with the inner while loop.  I have recently built functionality to be able to save and load preset files in order to make it easier to set these controls.  My end goal is to allow the user to load in multiple preset files sequentially and have those values pass through to the other program where the hardware I am using can utilize it.

 

The problem I am having is in figuring out how to automate this loading and execution of presets.  I can automate the loading of presets outside of the main VI, but due to the while loops I am confused on how to have only one preset be executed at a time.  Essentially, the pattern I am looking to create is to have a preset automatically load and then pass those control values on to the rest of the program.  Then the system will wait for a signal that the hardware has done its job and will then proceed to load and pass the next set of preset control values.

 

I have attached a VI that shows how the main controller operates.  I would attach the whole thing, but it would contain too many files as there are multiple subVIs being called.  Any help in figuring this out would be greatly appreciated.  Thanks!


Viewing all articles
Browse latest Browse all 66645

Trending Articles