Forums > MaxMSP

Phidget Interface Kit: num vs. flonum

January 24, 2007 | 4:24 pm

This is a question for anyone who is using/has used the Phidget
Interface Kit patch with a 888 i/o board.

I have this set up and it’s working very reliably with Max-MSP 4.5.2
and 4.6 (Mac OSX PPC and Intel). The problem is that the numbers
reported by the sensors are all integers and I really need to work
with floats. I’ve tried chaning the arguments in the unpak object from
0 to 0. but it still won’t give me floats in a flonum box.

I wonder if this is something that can be changed by editing the
source code of the external, or is this number format hardwired into
the 888 device? I’m not sure if anyone has ever looked into it before,
but it would be helpful to know if there are any options.

Thank you. ::Norbert


January 24, 2007 | 5:13 pm

the phidets hardware won’t give you floats, you’ll need to scale them
to such in max.

i think the hardware will give you 0-999, so if you’re looking for a
value between 0.-1., just divide by 1000. (make sure to add the deciml
in the division obect, like so [/ 1000.] ).

~s

On 1/24/07, Norbert Herber wrote:
> This is a question for anyone who is using/has used the Phidget
> Interface Kit patch with a 888 i/o board.
>
> I have this set up and it’s working very reliably with Max-MSP 4.5.2
> and 4.6 (Mac OSX PPC and Intel). The problem is that the numbers
> reported by the sensors are all integers and I really need to work
> with floats. I’ve tried chaning the arguments in the unpak object from
> 0 to 0. but it still won’t give me floats in a flonum box.
>
> I wonder if this is something that can be changed by editing the
> source code of the external, or is this number format hardwired into
> the 888 device? I’m not sure if anyone has ever looked into it before,
> but it would be helpful to know if there are any options.
>
> Thank you. ::Norbert
>


January 24, 2007 | 5:52 pm

Yes, that’s what I’ve been doing so far. Either that or zmap since
things like temperature tend to stay within a limited range.

Just out of curiosity, how do you know that the hardware can’t produce
floats? Is that written in the documentation? I’ve had a hard time
tracking down those kinds of specifics and would like to know if
there’s a source I’ve missed.

Thanks for your input. ::NFH

On 1/24/07, Scott Fitzgerald wrote:
> the phidets hardware won’t give you floats, you’ll need to scale them
> to such in max.
>
> i think the hardware will give you 0-999, so if you’re looking for a
> value between 0.-1., just divide by 1000. (make sure to add the deciml
> in the division obect, like so [/ 1000.] ).
>
> ~s
>
> On 1/24/07, Norbert Herber wrote:
> > This is a question for anyone who is using/has used the Phidget
> > Interface Kit patch with a 888 i/o board.
> >
> > I have this set up and it’s working very reliably with Max-MSP 4.5.2
> > and 4.6 (Mac OSX PPC and Intel). The problem is that the numbers
> > reported by the sensors are all integers and I really need to work
> > with floats. I’ve tried chaning the arguments in the unpak object from
> > 0 to 0. but it still won’t give me floats in a flonum box.
> >
> > I wonder if this is something that can be changed by editing the
> > source code of the external, or is this number format hardwired into
> > the 888 device? I’m not sure if anyone has ever looked into it before,
> > but it would be helpful to know if there are any options.
> >
> > Thank you. ::Norbert
> >
>


January 24, 2007 | 8:02 pm

google gave me this : http://www.phidgets.com/documentation/Phidget%20EQ.pdf

which, on page 4 says "The sensor control can generate values from 0 to
999."

On 1/24/07, Norbert Herber wrote:
> Yes, that’s what I’ve been doing so far. Either that or zmap since
> things like temperature tend to stay within a limited range.
>
> Just out of curiosity, how do you know that the hardware can’t produce
> floats? Is that written in the documentation? I’ve had a hard time
> tracking down those kinds of specifics and would like to know if
> there’s a source I’ve missed.
>
> Thanks for your input. ::NFH
>
> On 1/24/07, Scott Fitzgerald wrote:
> > the phidets hardware won’t give you floats, you’ll need to scale them
> > to such in max.
> >
> > i think the hardware will give you 0-999, so if you’re looking for a
> > value between 0.-1., just divide by 1000. (make sure to add the deciml
> > in the division obect, like so [/ 1000.] ).
> >
> > ~s
> >
> > On 1/24/07, Norbert Herber wrote:
> > > This is a question for anyone who is using/has used the Phidget
> > > Interface Kit patch with a 888 i/o board.
> > >
> > > I have this set up and it’s working very reliably with Max-MSP 4.5.2
> > > and 4.6 (Mac OSX PPC and Intel). The problem is that the numbers
> > > reported by the sensors are all integers and I really need to work
> > > with floats. I’ve tried chaning the arguments in the unpak object from
> > > 0 to 0. but it still won’t give me floats in a flonum box.
> > >
> > > I wonder if this is something that can be changed by editing the
> > > source code of the external, or is this number format hardwired into
> > > the 888 device? I’m not sure if anyone has ever looked into it before,
> > > but it would be helpful to know if there are any options.
> > >
> > > Thank you. ::Norbert
> > >
> >
>


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