Page 1 of 1

Problem with multiple PhidgetVoltageInput

Posted: Thu Jul 04, 2019 4:56 am
by davidestevens
So I'm attempting to convert my existing max patch from V21 to V22. This is on a latest version Mac Mini (ie the one with lots of USBc inputs), with latest OSX and Max. The Phidget patch is pasted below (Max compressed format )
The problem I'm currently having is that when the patcher loads, the first 7 PVI objects get their channel set correctly, but the 8th channel gets set to channel 0, which causes the patch to not work. Trying to set that PVI to channel 7 by sending the setChannel message doesn't work after the initial channel setting is made, so I can't reset it.
I'm also having a lot of problems with the connection to the board - it stops sending data. Quitting Max and opening Phidget Control Panel, the interface shows up, but when I open one of the voltage inputs, the Data panel shows no data arriving. Physically dis/reconnecting the board (which is on one of the USBc ports with an adaptor lead) will get the data flowing again.If I then reopen Max and load the input patcher, the 8th PVI is again on channel 0. I have IR sensors on inputs 0 & 3. The data shows coming in on 3 & 8. Closing and reopening the patch - the channels seem to be correctly attached, but now no data is coming in.

I'm setting up 2 installations at the moment. On the other Mac mini, I'm still using V21 with PhidgetInterfaceKit, and having no problems with it (touch wood!). It doesn't seem be dropping the connection (though I had to do the dis/reconnect thing the first time I ran the patch).

Any ideas how to solve this? I have to install the system I'm trying out V22 on in 2 weeks, so I'm either going to have to get this working, or go back to using V21.

Let me know if there's any more info you might need.

thanks

David

<pre><code>
----------begin_max5_patcher----------
2770.3oc0cszaiibD9r8uBBgbXCfyft52busH4xdKmxkffAzxzi0FKJAIpIS
xh8+dD6poUSYIxxtaZR6AvBkFZq5q5p955QS5e+1aVb+leTteQ1Om8Oyt4le
+1atw8VMuwMd4aVrt3GKetXu6xVr4P8yk0KtC+upNrdU0QY2+G3eyUOfW48+
1eQJBtR7G0coL+6tsnd4Sqp91W2UtrFUCA7E1cYRin4EAq86Y+K+OxxMqWWV
UGnLY+ziGppJe9O29Ysp5gRGFXMx+ws217s6HBPGdtH9XW.e7KiuVSA9V0+2
skH3Vr3EbbAnCLsxgWJPu5qad7wreB9JKM3tp7+bDQs+ppK+A94fl1LaFbQa
h8B1D1az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DutNzZdyiylqulyCtSYZFk
uIUGoe.RPI.AY5FJEqp8FNHXQ+AMXHo9UeP3ipfhsa+d4t89q18YrXcwusY2
K+Et+nAqBEcOmLVrq76qZud2CWkEE6V9zp5xk0G1gObL9gFexesX8lidfUGV
4cBOhtiejtm0CMOHM1us.Ah6QBws+ws+ec5p+3A
-----------end_max5_patcher-----------
</code></pre>

Re: Problem with multiple PhidgetVoltageInput

Posted: Thu Jul 04, 2019 10:11 am
by jdecoux
I'll repeat my response to your other threads here as well, for visibility of future users reading through the forum:

Instead of using the SetChannel message, we recommend setting the channel along with any other addressing information in the text of the object itself, as outlined in the Specifying a Phidget section of the Max/MSP Language Page

For example, to specify a channel, you would use:

Code: Select all

PhidgetVoltageInput channel=1

Re: Problem with multiple PhidgetVoltageInput

Posted: Fri Jul 05, 2019 9:24 am
by davidestevens
Thanks. I'll restrict my messages to the "Using PhidgetVoltageInput with multiple sensors (8/8/8)" thread now.