![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
I started again from scratch Code:
Sub Globals Dim data(0) End Sub Sub App_Start Form1.Show End Sub Sub Button1_Click HTCGSensor.New1 data() = HTCGSensor.GetRawSensorData Msgbox(ArrayLen(data())) End Sub An error occured on sub button1_click Line number : 15 data() = HTCGSensor.GetRawSensorData Error description : NotSupportedException Last edited by Mr_Gee : 07-23-2008 at 02:21 PM. |
|
||||
|
Pity it doesn't tell us what is not supported
![]() I can't see anything wrong with the code (it's only three lines long!), but I can't test it as I haven't an HTC device. I've done the same thing the long way round with this second attempt. If this doesn't work then I am afraid that I am out of ideas without having a device to play with. |
|
|||
|
:-)
guess what... i'm getting data back! msgbox(ArrayLen(data())) is giving 20 and sending the data to a listbox is also working Now for the hard part processing the data... I have no idea where to start ![]() I get a list of values, none of them are negative so the stuff you posted in post#4 cannot be used directly... but i'm pretty sure i'm missing something is this something that can be deducted using your byteconverter lib? edit added image Last edited by Mr_Gee : 07-23-2008 at 06:07 PM. |
|
||||
|
You will need to play. Add my ByteConverter library as a component, make an object called ByteConv and use the code I posted in #11 to take the data apart. You won't see those values I posted in #4 until you have parsed the data back into the correct format.
|
|
|||
|
Man..this is cool :-)
I got it working with the above code, but it's very jittery at the moment, changes of 2 (on 2000) I'll polish the code and post it, there must be other people wanting to use your lib :-) Thanks for all your help on this ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|