02-25-2011 10:52 AM
Basically I want to trigger some LV code using an incoming 0-5 volt TTL signal.
And I was wondering if I could plug that TTL signal into my mic input and read the signal with the LabVIEW sound VIs.
But I'm unsure if I'll just end up frying my sound card.
I know I could buy a cheap NI USB DAQ board for $99 ... but I just want to get this done asap, and thought the sound card idea might work.
Any ideas?
02-25-2011 11:14 AM
A sound card is AC coupled. And has limited bandwidth. So I will say this is a far from optimal solution. What are you trying to do?
Sound cards are most often made for line-in signals levels. That is +/-1 volt. But this may vary from vendor to vendor.
02-25-2011 11:39 AM
Thanks.
I am trying to trigger some LV code when I receive a high TTL trigger signal from an external system. The external system is from a third-party vendor and I can't really mess with it. It outputs a TTL signal and I just want to run some LV code when the signal is high.
Was just wondering if I might be able to input it to the sound card and trigger my code that way. But I guess I might just buy one of those cheap USB digital I/O cards from NI.
02-25-2011 11:45 AM
You can always attenuate the pulse to the level which the sound card can handle.
The bigger issue is what the sound card will detect with a pulse input. You will have one rising edge and one falling edge. The rise and fall times likely correspond to frequencies much higher than the bandwidth of the sound card. Depending on the pulse width the spectral content could be above, below, or within the sound card bandwidth.
More questions than answers. Likely a DAQ card is a better choice.
Lynn
02-25-2011 11:59 AM - edited 02-25-2011 12:02 PM
Why not just use your PC's parallel port?
http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB?OpenDocument
02-25-2011 12:50 PM
Trying to remember the last time I saw a PC with a parallel port...
02-25-2011 01:35 PM
@tstahl wrote:
Trying to remember the last time I saw a PC with a parallel port...
Probably the last time you looked at any PC. It's the DB-25 connector, also called the printer port.
02-25-2011 01:54 PM
@NIquist wrote:
Probably the last time you looked at any PC.It's the DB-25 connector, also called the printer port.
heh... Guess I've been looking at too many laptops lately.
02-25-2011 02:02 PM
@NIquist wrote:
@tstahl wrote:
Trying to remember the last time I saw a PC with a parallel port...
Probably the last time you looked at any PC.
It's the DB-25 connector, also called the printer port.
You'd be suprsised. Its actually relatively difficult to come across a computer with a serial port, unless you go out of your way to ask for one.
02-25-2011 03:15 PM
Hmmm ... Could I wire this input signal to one of the status lines on a serial port port?
For example, could I wire it to the CTS line and read that line using NI-VISA?