LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Paralell Port sincronization

I am trying to generate a sine wave through the paralell port , but
Windows generates some delays on it, so the sine is not good. Do you
know how to sincronize it? or how to makes windows not disturb?
Thanks
0 Kudos
Message 1 of 5
(3,134 Views)
Hallo, fpicatto,

Du meintest am 09.08.00 zum Thema Paralell Port sincronization:

> I am trying to generate a sine wave through the paralell port , but
> Windows generates some delays on it, so the sine is not good. Do
> you know how to sincronize it? or how to makes windows not disturb?

No chnace.
Windows is not "real time" capable, each task can take as much time as
it wants.

Viele Gruesse!
Helmut
0 Kudos
Message 2 of 5
(3,134 Views)
With just a little hardware you can create a waveform generator. Use a
RAM, counter, oscillator, and a DAC to generate your signal. Load the
RAM using the parallel port, then use a counter to clock through the RAM
locations at the desired frequency. Output from the RAM is routed to the
DAC to generate the final waveform. You can generate a clock for your
counter using a VCO or crystal oscillator depending on your frquency
requirements. If all you need is 8 bits of resolution you can put the
circuit together for about $15.

Dan
http://members.aol.com/djohn4077

fpicatto@com.uncor.edu wrote:

> I am trying to generate a sine wave through the paralell port , but
> Windows generates some delays on it, so the sine is not good. Do you
> know how to sincronize it? or how to
makes windows not disturb?
> Thanks
0 Kudos
Message 3 of 5
(3,134 Views)
wrote in message
news:3991C4E2.C6D2AE0C@com.uncor.edu...
> I am trying to generate a sine wave through the paralell port , but
> Windows generates some delays on it, so the sine is not good. Do you
> know how to sincronize it? or how to makes windows not disturb?
> Thanks

Give up on it 🙂 A parallel port is simply not designed for this, and
Windows is not designed for this. Therefore you either need to build some
kit, or write your own program that takes over the PC at a low level. Since
only your program is then the only thing running in the system, you can
write it in such a way as to guarantee that the correct value hits the
parallel port at the right time, but it'd be far quicker and would make the
code easier to maintain if
you build your own piece of kit to do it if
you're unable to buy a dedicated waveform generator. Obviously the program I
describe here cannot be written in Labview, and cannot interact with Labview
programs or anything else while it runs!

Precisely how you'd go about building it if you choose this approach depends
on what you want to use it for- if you only need a set of specific
frequencies then an analogue sine wave generator circuit with some
components switched in and out by digital switches under the control of the
PC would be adequate. Anything more complex, and you're probably best making
a simple digital waveform synthesiser, that contains a bit of memory, a
counter/timer and a D-A converter; you use the parallel port to load the
memory with your waveform values, some registers to determine the frequency
and the number of samples before the counter is reset (i.e. each cycle of
the waveform) and that's it. If you're well equipped it could be done and
running inside a week- oth
erwise you're delayed by waiting for components to
arrive.
0 Kudos
Message 4 of 5
(3,134 Views)
fpicatto@com.uncor.edu writes:

> I am trying to generate a sine wave through the paralell port , but
> Windows generates some delays on it, so the sine is not good. Do you
> know how to sincronize it? or how to makes windows not disturb?
> Thanks

The natural cheap way might be using a sound card. Labview drivers are
included or available.

Johannes Nieß
0 Kudos
Message 5 of 5
(3,134 Views)