Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 203601

Re: can a state machine run multiple cases simultaneously?

$
0
0


murchak wrote:

What I am trying to do is the following: We use LabVIEW to automate our test suite. That part is done and is maintained by someone else. I use LabVIEW to post process the data.

Below is how my code works at the moment:

 

1. Run the code which opens up File Dialog

2. Select data files 

3. Summarize the data into a table and format the table

4. Make over 30 different plots and format the curves (4 groups of plots)

5. Save the plots as images and export them to a PowerPoint 

6. Save analyzed data into a data base

7. Exit the program

 

Steps 3 and 4 are independent. Steps 5 and 6 clearly depend on the previous steps. I took my code and coverted into a state machine architecture for all the reasons that people promote here.

But it is forcing my code to execute one step at a time and made it slower. But the code looks less bulky.


 

I dont see how this is really a terrible problem, Wouldn't it be possible to simply rearrange the state machine so that State 3 is simply:

 

3. Summarize the data into a table and format the table & Make over 30 different plots and format the curves (4 groups of plots)

 

This way everything that is dependent on earlier stages still runs and the two stages that are independent can run simultaneously.


Viewing all articles
Browse latest Browse all 203601

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>