Subject:
|
Re: Problems with if-close with phantom.dll
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Wed, 28 Jan 2004 15:49:12 GMT
|
Viewed:
|
3169 times
|
| |
| |
Hi Valeria,
> BeginOfTask(0);
> If(2,1,2,2,1); //obviously a right sentence ;)
> PlayTone(500,100);
> EndIf();
> EndOfTask();
I can't understand the language you are using,
but, as far as I know, in many other languages for the RCX
you have to wait for the PlayTone to complete before exiting the task.
Probably you need to insert a Wait instruction, your program should look
like this:
BeginOfTask(0);
If(2,1,2,2,1); //obviously a right sentence ;)
PlayTone(500,100);
Wait(100); // Wait for PlayTone to complete
EndIf();
EndOfTask();
> I don't hear any tone... actually the program doesn't even run
> do you know what's wrong with it? I use phantom.dll
If I guessed right, you can't hear nothing because the task terminates
immediately,
stopping the note from playing too.
Regards,
Guido
|
|
Message has 1 Reply: | | Re: Problems with if-close with phantom.dll
|
| (...) Hi!! are you italian??so am I :) (...) phantom.dll control ( a replacement of spirit.ocx) used in a visual c++ mfc application (...) I had already tried this.. it doesn't work.. I was wondering if there is a problem with the if function! thank (...) (21 years ago, 28-Jan-04, to lugnet.robotics.rcx)
|
Message is in Reply To:
| | Problems with if-close with phantom.dll
|
| Hi to everyone, it's the first time for me on lugnet newsgroup. I was wandering wether you can help me!! I have troubles with "If" function... maybe it's my fault, but when I write a very very simple task (made so simple in order to understand where (...) (21 years ago, 26-Jan-04, to lugnet.robotics.rcx)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|