Jump to content

Parameter tables in a state machine


Recommended Posts

Hi all,

I'm trying to figure out the most efficient way to use a parameter table in a state machine.

Currently, I have converted the ~3x50 element parameter table into an array of the same size. The indexing element in this case happens to be a frequency. At each frequency I need to run the primary action/test.

In order to carry the current index through the test I am pulling the row out of the original array and placing it into a separate array that I'll call "Current Freq Index," perform the action, and then pull the next row, etc etc.

I like the modularity of the simple state machine but this method of carrying the index to operate on in a separate array seems clunky or inefficient.

How does everyone else handle something like this?

(The former version is just a for loop indexing off of each frequency, which is simple, but not as extensible as I'd like it to be)

Thanks!

-G

Edited by Gulstaff
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.