Announcement

Collapse
No announcement yet.

Determine Slave ID programatically

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Determine Slave ID programatically

    I'm trying work work out how to determine the slave ID of a smart expansion board. I can scan and get the count, but I don't seem to be able to interrogate the board to find it's ID. I figure the function must be there because the Debugger returns the SID when select "Smart expansion board information"

    Obviously I can hardcode the SID, but I'm trying to be a whole lot smarter than that.

    Can anyone assist?
    Thanks

  • #2
    SID value can be set via a dip switch on Smart Expansion board.
    In your code, you can either hardcode or scan it by using spc_scan() function

    Comment

    Working...
    X