| | VB Upload Problem
|
| I'm having trouble uploading data from within VBA (Microsoft Word). I wrote the Example program from page 93 of the SDK, and added an .InitComm before the UploadDatalog command. When I run the script, the green light comes on in the tower as if data (...) (24 years ago, 20-Jun-00, to lugnet.robotics, lugnet.robotics.rcx)
| | | | RE: VB Upload Problem
|
| I have source coding sample of it, www.pronerd.com/lego should have a link, else goto my old page, (URL) Rutkas Faith in Chaos www.PRONERD.com -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...net.com]On Behalf Of Ben (...) (24 years ago, 20-Jun-00, to lugnet.robotics, lugnet.robotics.rcx)
| | | | Re: VB Upload Problem
|
| Ok i'm lame. i had the vb uploading code in a random code module instead of a module specifically for the click of the upload button. anyway, now the data comes up in the vb list box, but it is all screwy. for example, for some data that i just (...) (24 years ago, 24-Jun-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| | | | Re: VB Upload Problem
|
| Well, you must set the datalog's size again in order to clear out the old values. What you are getting in VB is the type(sensor, timer,ect) of the value, the number the value, and then the value itself that was logged. The type is so if you log (...) (24 years ago, 24-Jun-00, to lugnet.robotics)
| | | | Re: VB Upload Problem
|
| (...) Variables are 'type' 0, but there's a disagreement between NQC and VB about which var is in the log. I haven't heard of any problems with NQC in this respect, but I can test it out a bit and see. ... (...) At the bytecode level, the datalog is (...) (24 years ago, 24-Jun-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| | | | Re: VB Upload Problem
|
| (...) But I wasn't logging variables... and I never have... I was logging sensor values... and the values were certainly not things like 9, 0, 1, 3, ... (what showed up for values) but were more like 16, 23, 32... (which show up 70 or so values into (...) (24 years ago, 24-Jun-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| | | | Re: VB Upload Problem
|
| ok, so i'm getting a little closer to answering my own question, but i'm still stuck. if i write a new robolab program to take 10 points of light data and then upload it with VB, those 10 points get put into slots 10-20 in the datalog, and points (...) (24 years ago, 24-Jun-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| | | | Re: VB Upload Problem
|
| (...) I think chris is putting some other info in the datalog. I poked at this briefly when using an early version of Robolab 2.0, but I don't recall the exact details. I think it comes from Robolab trying to use the datalog to record multiple (...) (24 years ago, 24-Jun-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| | | | Re: VB Upload Problem
|
| You can use RcxCC to simply clear the datalog. Duncan ----- Original Message ----- From: Andy Gombos <lego-robotics@crynwr.com> To: <lugnet.robotics@lugnet.com> Sent: Saturday, June 24, 2000 1:04 PM Subject: Re: VB Upload Problem (...) values. (...) (...) (24 years ago, 24-Jun-00, to lugnet.robotics)
| | | | Re: VB Upload Problem
|
| You could always check how big your datalog is by uploading the first point of the datalog in VB. The third element of the first point (point 0) is the size of the datalog. Throw that in a databox and see what it gives you. I would agree that VB (...) (24 years ago, 26-Jun-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| | | | Re: VB Upload Problem
|
| Well, Chris verifies that he uses variable 23, 24, and 25 to log values in ROBOLAB, and that he also puts in random stuff such as which sensor it is, etc. in the beginning of the datalog. But this still leaves the problem of how to clear the (...) (24 years ago, 3-Jul-00, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| |