Search found 15 matches

by hacktorious
19 March 2007, 18:22 PM
Forum: ZBasic Language
Topic: array example
Replies: 3
Views: 7698

Yes, was improperly initializing the array. It works great now, thanks.
by hacktorious
17 March 2007, 14:18 PM
Forum: ZBasic Language
Topic: array example
Replies: 3
Views: 7698

array example

Could somebody please give me an example of how to access the contents of an array? I have the following: someNumbers(12345, 56456, 123432, 12324) I would like to use this array in a loop and iterate through it, but when I try to access an individual index I get an error. For example: For counter = ...
by hacktorious
11 March 2007, 8:43 AM
Forum: ZBasic IDE
Topic: ZbasicIDE on Linux Kubuntu
Replies: 0
Views: 6061

ZbasicIDE on Linux Kubuntu

Zbasic IDE 1.62 works well with Wine-0.9.32, on Kubuntu 6.10. I upgraded my version of Wine and installed the IDE and everything seems to be working wonderful so far. Originally I was having issues with com1, but a simple upgrade of Wine fixed everything. I am running an AMD-64. The only trick was t...
by hacktorious
09 March 2007, 21:44 PM
Forum: ZBasic Language
Topic: dimentional array
Replies: 4
Views: 6416

Oops..... No, I do want a 5 dimensional array. Two was a typo. I need a 5 dimensional array, which contains five arrays. Each array within the 5-dimensional array must hold two values. Dim intervals (1 To 2, 1 To 2, 1 To 2, 1 To 2, 1 To 2) As UnsignedInteger How can I put values into the internal ar...
by hacktorious
09 March 2007, 19:56 PM
Forum: ZBasic Language
Topic: dimentional array
Replies: 4
Views: 6416

dimentional array

Learning new languages is always fun....lol I am having an issue with a two-dimensional array. I have the following code: 'array for intervals params of OutputCaptureEX Dim intervals (1 To 2, 1 To 2, 1 To 2, 1 To 2, 1 To 2) As UnsignedInteger How do I go about populating each individual index within...
by hacktorious
07 March 2007, 11:53 AM
Forum: ZBasic Language
Topic: low battery alarm
Replies: 1
Views: 5806

low battery alarm

How can I go about checking for a low battery on a ZX-24a via Zbasic?
by hacktorious
06 March 2007, 14:42 PM
Forum: ZBasic IDE
Topic: Compiling Problem
Replies: 5
Views: 7360

Unfortunately only XP. I just created a new project under a new name, then copied my code into it.
by hacktorious
06 March 2007, 12:51 PM
Forum: ZBasic IDE
Topic: Compiling Problem
Replies: 5
Views: 7360

Unfortunately I have not been able to get com1 to work with the bot via wine. Thus, I am stuck with Windows XP until I figure it out.

I was able to get it working. Thanks for the help.
by hacktorious
06 March 2007, 12:50 PM
Forum: ZBasic IDE
Topic: Compiling Problem
Replies: 5
Views: 7360

Unfortunately I have not been able to get com1 to work with the bot via wine. Thus, I am stuck with Windows XP. I have recreated and renamed the project. Here is the contents of the pjt: RoamingWithIr.bas Directions.bas I am now getting a different error, which is posted below: >"C:\Program Fil...
by hacktorious
06 March 2007, 10:16 AM
Forum: ZBasic IDE
Topic: Compiling Problem
Replies: 5
Views: 7360

Compiling Problem

I have created a project with two files: navigation.bas, and directions.bas Whenever I try to compile the project, the actual contents of the directions.bas file gets overwritten with the following data: ===== file: navigation.bas 0000 10a000 LODSP 0x00a0 (160) 0003 1b1100 PSHI_W 0x0011 (17) 0006 1b...
by hacktorious
05 March 2007, 10:00 AM
Forum: ZBasic Language
Topic: Timing
Replies: 4
Views: 6856

OK, great. I like the sound of the solution with the Timer(). I have noticed many commands have a resolution time. I am new to this stuff and not sure what that means. What exactly is a resolution time and how will it affect my code?
by hacktorious
05 March 2007, 8:52 AM
Forum: ZBasic Language
Topic: Timing
Replies: 4
Views: 6856

Timing

How much time should I generally allow for code overhead? For example, the following code in a BS2 would run for 4.6 seconds. Thus, turning the servo for 4.6sec. One time through the loop = 1.7 ms + 20 ms + 1.3 ms = 23.0 ms. FOR counter = 1 TO 200 PULSOUT 13, 850 PAUSE 20 NEXT Parallax recommends 1....
by hacktorious
02 March 2007, 17:46 PM
Forum: ZBasic Language
Topic: 1ms in ZBasic
Replies: 7
Views: 7722

HUH?

I don't understand the params for the OutputCaptureEx command. I read the manual, but it didn't help. I need it dumbed down a bit...lol
by hacktorious
02 March 2007, 7:03 AM
Forum: ZBasic Language
Topic: 1ms in ZBasic
Replies: 7
Views: 7722

Great info, thanks. At the moment I am just trying to use some IR sensors to detect objects. Soon I will be attempting to drive some motors to get the BOE-Bot to drive around. I am using the FreqOut command to enable a Piezo to make sound. Here is my code so far: Sub Main() ' Robotic...
by hacktorious
01 March 2007, 20:47 PM
Forum: ZBasic Language
Topic: 1ms in ZBasic
Replies: 7
Views: 7722

1ms in ZBasic

I just learned Pbasic and I am now working on learning Zbasic by converting some of my BS2 programs to my ZX-24a. I am bumping into some issues though. Some I have figured out some I have not. How can I create a time of 1ms in zbasic to use with the FreqOut command? There are several other instances...