08-02-2010 10:02 AM
Hi !
I'm using USB 6501 Digital I/0 device connect with a standart PIR sensor.When my sesnsor reactsto movement the high input level i active (logic 1) when no movement is detect it stays at logic 0. My problem is that i can't connect this levels to some kind of sound waveform . I want to create a VI which plays sound from a waveform then a logic 1 appears.
I don't know how to connect the DAQ correctly.
Thank you for the help !
08-02-2010 03:06 PM - edited 08-02-2010 03:07 PM
I don't understand the connection between playing a sound and the 6501. You instuct your soundcard to play. There are shipping examples that do this.
08-03-2010 03:33 AM
when logic 1 appears to output sound from my soundcard through PC speakers
08-03-2010 07:00 AM
Look at my VI that i created so far. Basicly that is what i'm trying to do. For now it's working but when i change My DAQ assistant to take continious samples with clock on demand it's stop working.
And there is some kind of delay for example when the program is running and the sensor take 1 measurement ot logic 1 it is not reacting to the sensor
08-03-2010 10:13 AM
Not sure if the 6501 even supports continuous acquisition and even if it did, you would probably get an error since you are doing too much processing in the loop and would get a buffer overflow. You are generating a 1 second sound and the program will wait to output that before doing another acquisition.
What kind of acquisition rate are you hoping to get?
08-04-2010 02:06 AM
Hey,
if you are looking on digital input just to get idea whether some pulse occured, than DI might not be proper - as Denis wrote, it supports just SW timing, which means you need to read DI often, not just once a second.
I believe better for you would be to count digital pulses by counter, and if you experience increase, or just change, than you can play your sound.
just idea,
stefo