Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using moisture sensors to control programs
#19
I'm currently a bit confused about the number of stations and boards.

There are two variables 
  • gv.nbrd =number of board 
  • gv.nst =  number of stations 

and there are various variables where the length is the number of stations.
 
There is also code such as the following (from the proto plugin)
Code:
          $for bid in range(0,gv.sd['nbrd']):
            $for s in range(0,8):
              $ sid = (bid * 8) + s;
              $ s_sid = str(sid);

There are also boards with 1, 2 4, 8 and 16 channels.

As far as I can tell the above code will only work for a multiple of boards with 8 channels.

Will, for example, the length of gv.rs give me the number of stations  regardless of the number and type of boards?
  • 8 channel board = 8 stations
  • 2 channel board = 2 stations
  • 8 channel board + 2 channel board = 10 stations
Reply


Messages In This Thread
RE: Using moisture sensors to control programs - by cdesouza - 2024 Jan 26, 05:05 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)