11-15-2007 01:57 AM
11-16-2007 05:03 AM
11-16-2007 05:50 AM
11-16-2007 10:01 AM
Hi, Rob. Thanks for the reply.
I am using a 6229 USB OEM board.
The example with the clock() function from the Visual Studio v6 C Library was just an attempt by me to clarify what I meant by resolution. Sorry if it has confused the issue. Please ignore it.
I am using a task based on the change detect hardware. When I do a read I am using the ReadDigitalScalarU32 function from DAQmx, which allows me to specify a timeout. I would like to use various timeouts, but the lowest is 500us (0.5ms or 0.0005s). It doesn't have to be accurate, and indeed anything round about that value would be fine.
I guess what I am asking is - what is the smallest timeout I can request and achieve? Another way to ask the question would be - what speed is the clock you are counting to do the timeouts?
Hope that clarifies,
Best Wishes,
Paul
For information, this is the task and some of its properties:
**Task: Change Detect
Task - Name: ChangeDetect
Task - Channels: Vestibular/port0/line21...
Timing - Sample Mode: 10123 DAQmx_Val_ContSamps
Timing - Sample Timing Type: 12504 DAQmx_Val_ChangeDetection
Timing - Change Detect Rising Edge Physical Channels: Vestibular/port0/line19, Vestibular/port0/line11
Timing - Change Detect Falling Edge Physical Channels: Vestibular/port0/line19, Vestibular/port0/line11
Read - OverWrite Mode: 10159 DAQmx_Val_DoNotOverwriteUnreadSamps
Read - Wait Mode: 12547 DAQmx_Val_Sleep
Read - Sleep Time: 0.0010
Buffer - Input Buffer Size: 10000
Channel - Input Data Transfer Mechanism: 10054 DAQmx_Val_DMA
11-16-2007 10:22 AM
Hi Paul,
The 622x family of DAQmx hardware shows the following clock frequencies on page 9 of this manual:
http://www.ni.com/pdf/manuals/371290g.pdf
I will find out more for you now, just leaving you that PDF incase it's any help in the meantime.
Rob W
National Instruments
Application Engineer
11-16-2007 10:33 AM
Also if you check page 6 of that manual, the SampleClock is the speed at which you will be aquiring from.
Rob W
National Instruments
Application Engineer