Jump to content

Designing a Control System


Recommended Posts

Hello y'all,

I have a there must be a better way question. Here's what I'm trying to do.

Build a system which takes inputs serial strings encoded with address from different things. Which will say the states of those things. Then it will take the data it learns and respond with serial commands. Basically, one light turns on, phones home and so Labview responds by turning on another.

What I'm wondering is if anyone has any advice on how to architect the program.

I'm planning on a loop of:

Serial Data In -> Analyze Data -> Update States -> Calculate Necessary State Changes -> Send Appropriate New Serial Commands -> Rinse and Repeat

My biggest holdup is book keeping my state updates according to the right addresses. Any suggestions. I'm currently thinking a 2-D Array or maybe several 1-D Arrays and doing a string match.

Thanks in advance!

Brad

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
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.