Search found 89 matches

by jmg
Jul 30, 2009 7:18
Forum: Projects
Topic: Precision Tone generation using fbsound
Replies: 11
Views: 2264

Precision Tone generation using fbsound

This template code is based on the Test05 that comes with fbsound, but that has a few problems in the details. Test05J cleans those up, extends to allow define of Cycles and Timebase, and so generate any Audio Frequency to an appx 22ppm Granularity. Some test-bench results are included. '###########...
by jmg
Jul 30, 2009 4:05
Forum: General
Topic: Better way to emulate Oscilloscope display?
Replies: 24
Views: 3292

Yes, the plan was to use reciprocal counting, and to also include a Zero-cross interpolate option, for where the ADC readings allow a better estimate of the real time point, of the zero crossing.

A GPS 1pps is a clear candidate for reality checking this, but that will need a little conditioning
by jmg
Jul 30, 2009 2:06
Forum: Libraries
Topic: fbsound quirks and details
Replies: 4
Views: 1173

fbsound quirks and details

Further to my other thread http://www.freebasic.net/forum/viewtopic.php?t=14245, I've just opened up fbsound, and run thru the examples, and started pushing it a little. Test05 has some issues in the details a) Dim As Single w,wstep=pi2/44100.0*100 This should be double, or the rounding errors a...
by jmg
Jul 30, 2009 1:54
Forum: General
Topic: Better way to emulate Oscilloscope display?
Replies: 24
Views: 3292

Thanks for the links - I'll test that, it sounds reasonably promising. I have just 'opened the box' on fbsound, and have hit some bugs/quirks already that I'll pop into another thread. The target is to measure oscillators, or instruments, and chase temperature drift effects. Materials may be tens of...
by jmg
Jul 29, 2009 8:49
Forum: General
Topic: Better way to emulate Oscilloscope display?
Replies: 24
Views: 3292

I did not write a demo version of the acquisition applications FB_Clamp that will operate without the DLL or the hardware. Could you do a demo-version that used the PC Sound Card as the capture stream ? There are quite good Sound card oscilloscopes around, but none post-analyse the data quite how w...
by jmg
Jul 29, 2009 8:39
Forum: Libraries
Topic: fbsound (or FMOD?) examples for analysing soundcard capture?
Replies: 0
Views: 1155

fbsound (or FMOD?) examples for analysing soundcard capture?

Does anyone have any examples/links to using a Sound library (such as fbsound, or FMOD) + FreeBASIC as a sound card instrument ? The primary goal is to measure Frequency to the highest precision possible via the Sound Channels, but adding a very simple Oscilloscope plot would of course also be nice ...
by jmg
Mar 16, 2009 19:10
Forum: Hardware Interfaces / Communication
Topic: Hardware handshake details problems
Replies: 4
Views: 2870

link to the serial port routines

Thanks for the link - that looks to be a level above the actual testing of Pin6.DSR, Pin8.CTS signals so it may be the problem is harder to fully fix.

I did find a workaround, users just need to be very careful WHICH handshake line to use and the opening parameters.
by jmg
Mar 12, 2009 6:33
Forum: Hardware Interfaces / Communication
Topic: parallel port communication...
Replies: 110
Views: 37748

It was posted under forum

topic : Hardware Interfaces / Communication

and the thread is called

Parallel Port Code Template Example and Test Results
by jmg
Mar 11, 2009 22:27
Forum: Hardware Interfaces / Communication
Topic: parallel port communication...
Replies: 110
Views: 37748

For a code template see Hardware Interfaces / Communication

I've just posted a FreeBASIC parallel port exerciser,

Parallel Port Code Template Example and Test Results

that accesses the three LPTx registers, and using a loopback cable, and Multimeter, can test all functionality & Speeds.

That gets the hardware layer working, the rest is only SW !
by jmg
Mar 11, 2009 22:22
Forum: Hardware Interfaces / Communication
Topic: Parallel Port Code Template Example and Test Results
Replies: 0
Views: 2352

Parallel Port Code Template Example and Test Results

Using the simple code building blocks, the parallel port was exercised... Basic Code blocks are If Open Lpt ("LPT1:" As #1) = 0 Then 'Check finds port OUT (Lpt1Data_IO,Bc) IF INP(Lpt1Data_IO) <> Bc then and the total source code, that Writes, ReadBack, and includes ...
by jmg
Mar 11, 2009 6:12
Forum: Hardware Interfaces / Communication
Topic: Hardware handshake details problems
Replies: 4
Views: 2870

More tests, reveal some quirks and gotcha's

so I'll post some details here. I thought I'd try and get both DB9.Pin6 and DB9.Pin8 working, but found If Open Com ("com1:38400,n,8,1,cs,ds,bin" For Binary As #1) <> 0 Then was rather erratic in operation If Open Com ("com1:38400,n,8,1,cs100,bin" For Binary As #1)...
by jmg
Mar 11, 2009 4:34
Forum: Hardware Interfaces / Communication
Topic: Hardware handshake details problems
Replies: 4
Views: 2870

Answering my own question in part - Handshake pins are not=

After my question, I thought I'd try another handshake pin, and voila, DB9.Pin8, does work better than DB9.Pin6 - it shows no caller-string-param-length dependance. If Open Com ("com1:38400,n,8,1,ds,bin" For Binary As #1) <> 0 Then 'Senses DB9.Pin8 Open behavious is slightly differ...
by jmg
Mar 11, 2009 4:07
Forum: Hardware Interfaces / Communication
Topic: Hardware handshake details problems
Replies: 4
Views: 2870

Hardware handshake details problems

We have a system with a 38.4kBd serial link, and a hardware handshake line. The handshake line works, and it needs to be HI or OPEN COM fails, and it regulates flow in print mode. ie it does all work, but when I did a large string test, it did not quite work right... Code is If Open Com ("c...
by jmg
Mar 11, 2009 3:51
Forum: Windows
Topic: Serial Port Programming
Replies: 8
Views: 4627

Opening Serial port examples

I have the serial port behaving very well on open (other more subtle issues) Here are my notes ' ~~~~~~~~~~~~ Serial Port Test Cable ~~~~~~~~~~~~~~~ ' Test Wired Pin 4 DTR Op Data Terminal Ready to Pin 6 DSR In Data Set Ready ' Removed Jumper, to confirm hardware handshake 'If Open Com ("co...

Go to advanced search