Search found 37 matches

by Andries Pretorius
Tue Aug 06, 2013 4:29 am
Forum: EzSBC1
Topic: SERINP$ routine does not function as expected...???
Replies: 10
Views: 22640

Re: SERINP$ routine does not function as expected...???

Apologies Robert, but the the information you provided means nothing to me unless I have access to an Emic2 module to simulate the problem and explore possible solutions. I truly wish I could help you, but I've run out of ideas, unless I can physically analyse the programmatic interaction between EZ...
by Andries Pretorius
Mon Jul 29, 2013 8:56 pm
Forum: EzSBC1
Topic: SERINP$ routine does not function as expected...???
Replies: 10
Views: 22640

Re: SERINP$ routine does not function as expected...???

Hi Robert.

I am looking at possible options. Will let you know if I find something.

Have a great say!

Andries
by Andries Pretorius
Sat Jul 27, 2013 9:28 pm
Forum: EzSBC1
Topic: SERINP$ routine does not function as expected...???
Replies: 10
Views: 22640

Re: SERINP$ routine does not function as expected...???

Here is the suggested changes to your code> 'talk test PINMODE 36, OUT ' set pin 36 as output for serial TX PINMODE 37, IN ' set pin 37 as input for serial RX SERINIT 1,9600,8,1,0 ' port 1, 9600 bps, 8 data bits, 1 stop bit, no parity CR$ = CHR$(13) ' for CR REPEAT x$=SERINP$(1,-1,-1,1) ' Clear the ...
by Andries Pretorius
Sat Jul 27, 2013 1:51 am
Forum: EzSBC1
Topic: SERINP$ routine does not function as expected...???
Replies: 10
Views: 22640

Re: SERINP$ routine does not function as expected...???

Good morning Robert! I also had a look at your program. It looks fine to me in terms of program flow and doing what it is supposed to programatically. When I simulate your program in the console, it waits for the ":' character, as it is supposed to, and when I enter the ":" character ...
by Andries Pretorius
Thu Jul 25, 2013 11:51 pm
Forum: EzSBC1
Topic: How do I test for in-equality, "A$ <> B$" & "A <> B"...???
Replies: 6
Views: 7877

Re: How do I test for in-equality, "A$ <> B$" & "A <> B"...?

Apologies Robert! I did not fully understand your question the first time. I assumed that you new how to use the <> operator in Control Basic.

Thanks for pointing out the omission in the manual.

Best regards

Andries
by Andries Pretorius
Sun Jul 21, 2013 9:22 pm
Forum: EzSBC1
Topic: How do I test for in-equality, "A$ <> B$" & "A <> B"...???
Replies: 6
Views: 7877

Re: How do I test for in-equality, "A$ <> B$" & "A <> B"...?

Good morning Robert

Please give an example what you want to test for inequality, and for what purpose. Maybe, then we can explore possible options.

Best regards

Andries
by Andries Pretorius
Thu Jul 18, 2013 11:23 am
Forum: EzSBC1
Topic: This short code snippet does not work as expected...???
Replies: 2
Views: 4933

Re: This short code snippet does not work as expected...???

The second variable "RNDpasswword$" in LIne 7 is spelt differently from the first "RNDpassword$" Robert. There is an extra w .

If you use the same spelling for both it works.

Best regards
ANDRIES
by Andries Pretorius
Mon Jul 15, 2013 10:36 pm
Forum: EzSBC1
Topic: SERINP$ and Text-to-Speech module in my project...???
Replies: 7
Views: 9635

Re: SERINP$ and Text-to-Speech module in my project...???

Good morning Robert. It is only a pleasure to have been of assistance!! There are few things as gratifying as a project, over which you have toiled over for hours, suddenly springing to life and doing what it is supposed to. No Robert, I don't do programming for a living. In fact, I am now retired a...
by Andries Pretorius
Sun Jul 14, 2013 9:42 pm
Forum: EzSBC1
Topic: SERINP$ and Text-to-Speech module in my project...???
Replies: 7
Views: 9635

Re: SERINP$ and Text-to-Speech module in my project...???

Good mornig Robert I have looked at the Control Basic SERINIT, SERINP$ and SEROUT commands and functions, and also studied the example Basic Stamp and Arduino programs on the Parallax website. To me it seems that your program should work, provided all the hardware connections are correct. Firstly, I...
by Andries Pretorius
Sun Jul 14, 2013 11:53 am
Forum: EzSBC1
Topic: SERINP$ and Text-to-Speech module in my project...???
Replies: 7
Views: 9635

Re: SERINP$ and Text-to-Speech module in my project...???

Thanks for coming back Robert. In my neck of the woods it is already late Sunday evening and it's nearly bedtime for me. I appreciate that reception of the ":" character is not critical to initiate a conversion process, as long as the initialization process is complete and the green LED is...
by Andries Pretorius
Sun Jul 14, 2013 7:34 am
Forum: EzSBC1
Topic: SERINP$ and Text-to-Speech module in my project...???
Replies: 7
Views: 9635

Re: SERINP$ and Text-to-Speech module in my project...???

Hi Robert Unfortunately I don't have access to an Emic 2 module and I therefore am unable to test your code and advise. But browsing through the Emic 2 documentation and programs, I read the following: when the Emic 2 powers on, it takes about 3 seconds for it to successfully intialize. It then send...
by Andries Pretorius
Thu Jul 04, 2013 10:23 pm
Forum: EzSBC1
Topic: Binary2decimal & Decimal2binary...???
Replies: 4
Views: 6939

Re: Binary2decimal & Decimal2binary...???

I can understand your frustration as a newbie enthusiast Robert. I am a "non-technical" enthusiast who also finds it difficult sometimes to get to grips with some of the descriptions and syntax in the manual. But, for me deciphering and researching some of the engineering speak is part of ...
by Andries Pretorius
Thu Jul 04, 2013 8:26 am
Forum: EzSBC1
Topic: Binary2decimal & Decimal2binary...???
Replies: 4
Views: 6939

Re: Binary2decimal & Decimal2binary...???

Hi Robert

Have you tried using the BSTR() and the BIN$() functions to convert Binary->Decimal and Decimal->Binary?

Or do you have other reasons for wanting to translate te functions to Control Basic?

Best regards

Andries
by Andries Pretorius
Thu Jun 20, 2013 11:46 pm
Forum: EzSBC1
Topic: Interfacing an MCP9700 analog temp sensor...???
Replies: 3
Views: 6473

Re: Interfacing an MCP9700 analog temp sensor...???

Nice efficient coding Daniel!!

Thank you

Andries
by Andries Pretorius
Tue Jun 18, 2013 9:55 pm
Forum: EzSBC1
Topic: How-to emulate "SELECT/CASE" in Control Basic...???
Replies: 3
Views: 5346

Re: How-to emulate "SELECT/CASE" in Control Basic...???

Hi Robert The following examples test a numeric variable and displays a message with a word in it: A hypothetical SELECT CASE... ENDCASE structure may look like this: (There are variations between different languages and dialects) SELECT CASE CASE vResult =1 ` Test if the number is 1 PRINT "One...