Re: basic to vb6

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Viper900 wrote:
Thanks Steve
At the moment I just trying to convert the code to vb6. Its a bit tricky the for loops seem to send 153,150,102,105 all at the same time. Thats the bit that did not work for me. I will try your code and get back to you on this forun
....

I suspect that may be that the current computer you're running on is so much faster than what the sample code was run on as well as the difference between interpreted BASIC and VB that the delay loop (the empty for loop w/ a count of 350) inside the other loop outputting the data is too fast for the device.

Try making that a much larger number as a start; you may actually want to look at incorporating a timer to make it more controlled.

Perhaps you'll even be fortunate enough to have enough documentation to know what kind of delay is required or have a purpose that defines what delay would be appropriate.

--
.



Relevant Pages

  • Re: Write Signal on Disk II Question
    ... checked for sampling jitter using an oscilloscope? ... But I noticed another shocking thing: The timing loop I used to find ... the timing resolution is quite high, since the delay loop on the main ...
    (comp.sys.apple2)
  • Re: Write Signal on Disk II Question
    ... checked for sampling jitter using an oscilloscope? ... But I noticed another shocking thing: The timing loop I used to find ... the timing resolution is quite high, since the delay loop on the main ...
    (comp.sys.apple2)
  • Re: Write Signal on Disk II Question
    ... checked for sampling jitter using an oscilloscope? ... But I noticed another shocking thing: The timing loop I used to find ... the timing resolution is quite high, since the delay loop on the main ...
    (comp.sys.apple2)
  • Re: 6502 Delay Loops using Applesoft
    ... using delay padding instructions where necessary. ... I generally use index register loops (5 cycles per inner loop). ... you re-initialize ZP2 for each iteration ...
    (comp.sys.apple2)
  • Re: Write Signal on Disk II Question
    ... checked for sampling jitter using an oscilloscope? ... But I noticed another shocking thing: The timing loop I used to find ... the timing resolution is quite high, since the delay loop on the main ...
    (comp.sys.apple2)