Forums > MaxMSP

trouble passing serial number into PhidgetInterfaceKit

June 28, 2011 | 2:53 am

Folks,
I’ve been using Max-Msp to interface with Phidgets controllers and it’s been working pretty well. I now am trying to interface to 6 different 8/8/8 controllers in a single patch. TO do that. I need to pass in the unique serial numbers of each controller. You can hard code the id directly on the instance call to the PhidgetInterfaceKit call like this

[PhidgetInterfaceKit 123456]
(where 123456 is the unique id for the controller) this works fine

but I want to pass it in as a message… like this

[id 123456]
|
[PhidgetInterfaceKit @id]

but this gives me the error

Invalid arguments.
Usage: PhidgetInterfaceKit [serial] [remote ["serverid" ["password"]]] | [remoteip serverip port ["password"]]

What am I doing wrong ?

Attachments:
  1. sample.maxpat


Ed
June 28, 2011 | 4:04 am

I haven’t used the PhidgetInterfaceKit object but have you tried it without the "@id" part?


Viewing 2 posts - 1 through 2 (of 2 total)