07-28-2014 02:38 AM - edited 07-28-2014 03:08 AM
Hi Gerd,
I am using the PFI0 for trigger and I am designing a counter. ( I am using a digital input (of usb6008) (echo pin connected to it) and reading the boolean value. For each true, the counter is incremented.
I've attached my counter part
07-28-2014 04:21 AM
Here is my vi
What's wrong?
Please help!
07-28-2014 04:52 AM
Hi kdm,
I don't know what's wrong. You don't tell us, what's not working as expected…
- You read your DI once each 14ms (due to AI task set to 1000S/s and 14 Samples/read).
- You increment your counter on each edge of the digital input - that's different to your text "increment on TRUE".
- You do a lot of stuff more complicated then needed to…
07-28-2014 05:03 AM
Hi Gerd,
What does this error mean..
Possible reason(s):
Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: SampTimingType
Requested Value: Change Detection
You Can Select: On Demand
No, I think I read my samples for every 140us (due to AI task set to 100000S/s and 14 Samples/read). ..as minimum width of the pulse of echo is 150us.
07-28-2014 05:36 AM - edited 07-28-2014 05:38 AM
Hi kdm,
the USB6008 is NOT ABLE to read a AI with 1MS/s. AGAIN: read the specs of the USB6008!
You alse mis-wired your settings: You did wire a 1000 to rate input of DAQmxTiming and a 100,000 to sample size input. Please read the context help for that function…
That error message is quite clear: you wired a property setting that is not supported by your hardware!
Conclusion: READ THE SPECS!
07-28-2014 06:51 AM
Hi Gerd,
Okay
I think my trigger is not generating 10us. How to check that?
07-28-2014 08:04 AM
For a 10us trigger, what should the high time and low time be?
07-28-2014 09:25 AM
07-28-2014 01:14 PM
Hi Gerd,
The specs says that the minimum input pulse width is 100ns. I could not find any details about the minimum __output__ pulse width.
07-28-2014 01:34 PM