Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

problem playing sound waveform USB6501

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 !

0 Kudos
Message 1 of 6
(3,755 Views)

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.

0 Kudos
Message 2 of 6
(3,747 Views)

when logic 1 appears to output sound  from my soundcard through PC speakers

0 Kudos
Message 3 of 6
(3,732 Views)

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

0 Kudos
Message 4 of 6
(3,726 Views)

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?

 

0 Kudos
Message 5 of 6
(3,722 Views)

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

Certified-LabVIEW-Developer_rgb.jpg

0 Kudos
Message 6 of 6
(3,711 Views)