Send38k & Receive38k
#1
Posted 03 October 2004 - 12:01 AM
I've read that these procedures were made to work with data analisers (like EA200).
Would be very useful them, since they have a small timeout, compared with GetVar38K.
I also would be interested in protocol information. Where I could fim something about without connecting a logical data analiser to my classpad
Thanks
ps.: excuse me for my bad english, it's not my native language
#2
Posted 04 October 2004 - 01:05 AM
Somebody knows if its possible connects two classpad using 3pin cable and use Send38K/Receive38K to send and receive data?
I've read that these procedures were made to work with data analisers (like EA200).
Would be very useful them, since they have a small timeout, compared with GetVar38K.
I also would be interested in protocol information. Where I could fim something about without connecting a logical data analiser to my classpad
Thanks
ps.: excuse me for my bad english, it's not my native language
The procedures you talk about can be used to communicate two calculators, they are compatible with themselves. Do a search of posts from MKanter , he has done research on the protocols topic.
#3
Posted 04 October 2004 - 01:27 AM
#4
Posted 04 October 2004 - 01:39 AM
I did to programs... for the first calculator, sender:
OpenComPort38K
SendVar38K t **** se a note about this line
CloseComPort38K
the second, receiver:
OpenComPort38K
I=0
do
Receive38K t
I=I+1
while (I<5)
CloseComPort38K
note: I tried SendVar38K and Send38K, sending the same variable, if no sucess
maybe there are errors casiobasic languagein the implementation, but there weren't in the calculator...
With these codes, the second calculator, the receiver one, did no receive the value assigned to t var.
There is an advantage in Receive38K. It has a very small timeout value, when compared with GetVar38K.
Thanks
#5
Posted 04 October 2004 - 02:24 AM
#6
Posted 05 October 2004 - 08:56 AM
An explanation about them are in
http://216.239.37.10.../language_tools
This link is a google translation of original website, in germany
I looked it for in classpad manual, and some information about send38k/receive38k are avaliable. A restriction exists: the variable that has the information to transferring, must be a real number or a list. I think we'll cannot use them to transferring texts
If somebody has the EA200 manual, please look it for these functions. There are more information about them there.
#7
Posted 05 October 2004 - 10:14 AM
i cant test it on my end atm cause my friend needs to bring me his classpad, if you can do it go ahead.
#8
Posted 06 October 2004 - 08:22 PM
The procedures you talk about can be used to communicate two calculators
Sorry, I began doing tests on this topic and confirmed that it is not possible to use Send38K/Receive38K to communicate two calcs . What I tryed was:
1) Send38K Receive38k
In this case both programs end quickly. No results with reals neither lists
2) SendVar38K Receive38k
No results.
3) Send38K GetVar38k
Both programs end quickly, since, for some reason, Send38K causes GetVar38k to end, like if it accepted its format without complaining. No variable could be transfered nor any value.
I do have here an EA-200, and did a test with it using not the ECON-EA200 but a small program in the Cp300:
OpenComPort38k {0}->a Send38k a {1,1,9}->a Send38k a {3,1,60}->a Send38k a Message "Now press the EA-200 [START/STOP] key. and wait for the sampling of the data." Receive38k list1 Receive38k list2 Print list1 Print list2 CloseComPort38k
This program initializes the EA-200, sets up the optical probe, the total sampling time and the number of samples. It also return in two lists (viewable directly with the Statistics application) the time and values.
I could be of more help if I had the cable to monitor the serial comm between the calc and the EA-200. (I am working on that)
On the other hand, why is the long timeout of GetVar38k a problem.. In my test I ran the receiver prog and it kept waiting, when I ran the sender prog then the receiver progr ended immediatly.
I looked into the EA-200's manual. It comes with information related to other supported calcs like AFX and CFX. They say one should go to the calc's manual to see details of the comm functions.
Finally, in that manual there is a complete description of the protocol used by the EA-200. The only pending thing is to know how do Send38K/Receive38K work .
#9 Guest_Guest_mkanter_*_*
Posted 17 October 2004 - 12:33 PM
the problem is that the receive commands (any of the three) have to be executed first.
They don't return until something is received.
The backward compatibily to CFX is granted with send and receive with use the protocol of the CFX.
AND IT IS POSSIBLE TO SEND STRINGS: my program sinkship takes an excessive use of it (is the first multi-player game for classpad)
I'LL BE BACK
#10
Posted 18 October 2004 - 04:30 AM
They don't return until something is received.
I experienced this with GetVar38k, but not with Receive38k.
AND IT IS POSSIBLE TO SEND STRINGS: my program sinkship takes an excessive use of it (is the first multi-player game for classpad)
I thought you were using Send38K/Receive38K there.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users