02-24-2016 03:23 AM
Solved! Go to Solution.
02-24-2016 03:31 AM
there is daq assistant in daqmx toolkit why you do not use that ?
02-24-2016 04:06 AM - edited 02-24-2016 04:10 AM
Hi abc,
it's a bad combination to use an USB6009 with a SR04 sensor! Did you read the manuals for both devices?
The sensor outputs a pulse of 150µs to 38ms and you need to measure the pulse duration.
On the USB6009 you need to employ an AI to do this and you get a max sample rate of 48kHz giving you a sample resolution of ~21µs. This will result in limited accuracy of your measurement.
The next problem is to output the 10µs TTL pulse needed to trigger a measurement of the SR04: the USB6009 can only drive the outputs with software timing. You will never be able to output pulses with just 10µs duration with the USB6009 alone. Using some additional electronics (using a 555 or similar) on a PCB or breadboard may help here…
@Hatef: how should the DAQAssistent be helpful for this very task?
02-24-2016 05:00 AM
02-24-2016 06:16 AM
@Hatef.fouladi wrote:
Grew
thank you for your information about a sensor it was really helpful esp for me
I just want to help to work with 6009
and honestly I did not have any information about this sensor
If you did not have any clue about this sensor product, why you post then? It is not a help, but just creating noise in the forum.
By the way, I would never advise to use Express VIs for DAQ, you get more trouble with it than benefit (repeated Init/close resources, dynamic data type). You can test the HW from MAX, and after create a proper DAQmx task using DAQmx functions. Of course, you can start with a DAQ Assistant, and convert it into DAQmx functions...
02-24-2016 06:36 AM