06-22-2006 09:16 AM
It's my understanding that you'd need to set up a single task that captures several Digital Input bits (not necessarily the entire port) whenever one of the bits of interest changes. Change detection is considered a hw-timed task, and you can only perform 1 hw-timed DI task at a time.
However, the DAQmx Read vi allows multiple options for how you retrieve the data. You can read it in port format (either U8 or U32 values, depending on the board's native port width), or you can read it as an array of Booleans. The array of Booleans would be pretty easy to treat like your 2nd illustration.
There's also an option to read the data as a digital waveform. This may be useful for graphing purposes, but I've personally found it to make bit-wise and logical operations on the DI data into kind of a pain in the neck. It's just a wee bit like the feeling I've often gotten using Windows XP -- I'm being punished for understanding what I'm trying to accomplish.
-Kevin P.
06-22-2006 09:37 AM
06-22-2006 09:50 AM
06-22-2006 10:13 AM
06-22-2006 06:30 PM
06-23-2006 02:30 PM
Ryan,
Thanks for the detailed info & investigation. At this point I don't think I've got any further questions. It *is* worthy of note that the change detection event is limited to a lower rate than the DI buffering. In a case where DI is captured based on edge detection and a counter is timestamping edge detection events, it'd be possible for the # samples acquired in the 2 tasks to get out of sync. Not sure if/when this'll affect me but I'll file it away in the back of my mind as something to watch out for in future apps...
Thanks again!
-Kevin P.
06-29-2006 01:40 PM
When I attempt to read the counter, timed by a change detection on my digital port, I get an error telling me that I am unable to use change detect with the counter.
Should I be using the change detect to time a loop which records the digital and counter? I am still a little confused on how to set up labview to do my data recording.
Also, should I not be able to get this going as expected, does anyone know any good resources for hiring someone to do labview development? My project is probably pretty simple, probably only a couple hours tops for someone who knows what they are doing.
Thanks all
Garrett
06-30-2006 02:12 AM
I am still a little confused on how to set up labview to do my data recording.
Also, should I not be able to get this going as expected, does anyone know any good resources for hiring someone to do labview development? My project is probably pretty simple, probably only a couple hours tops for someone who knows what they are doing.
06-30-2006 07:06 AM
Kevin,
You seem to be able to put this stuff togeather pretty quickly. I would be interested in having you with me on this. Send me an email at gkaste@phoenixamerica.com, or call at 1-888-801-1422 (ext. 225 or ask for Garrett), let me know your rate and some contact info for you and I can give you some more details on the project.
Thanks,
Garrett
06-30-2006 01:02 PM
Could anyone please help with this VI? I think I have applied change detection properly, but the digital and counter values dont seem to match up. The digital reads in more data than the counter. Its like some data just goes missing. Should I be using a timed loop on this, with change detect as the time source?
Thanks
Garrett