The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Bosses way or another way? by Vetitice 2004-12-15 13:30:53
16 input/16 output video router.

Think 16 cameras and 16 monitors for the first example. Each input can go to many outputs (e.g. all monitros can see Cam#1 at once) but each output can have only one output (or none) at once.

Can have up to 16 control heads on the system, with up to 48 buttons on each. When you push any button any combination of inputs can be routed to any combination of outputs (given the above rules)

Boss suggested doing a 3-D array of all 16 control heads, with all 48 buttons, with the input for each of the 16 outputs at once.

Which works fine, apart from having 12,228 array elements to keep track of and hand-edit the matrix for different button combinations.

Got to be a better way of doing this. IF it was not ANY combination at once I could do for each 16 outputs the 16 options of having an input going to it and just store head# and button # and get the array down to 256 entries of a button struct.

Then add into the mix a shift key.....

Grrrr.....

Anyone got any ideas? I know there's got to be an easy way.
[ Reply ]
  Why a 3D matrix? by ahecht2004-12-15 14:03:29
    Answers. by Vetitice2004-12-15 14:23:50
  My head a splode. by aix tom2004-12-15 14:17:01
    Nope.... by Vetitice2004-12-15 14:37:04
      It's seems you are stuck with the 12288 by aix tom2004-12-15 14:59:54
        What I'd LIKE to do. by Vetitice2004-12-15 15:43:59
  Messed up with an important point. by Vetitice2004-12-15 14:45:15

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)