03-21-2013 05:44 AM
Hello everybody, I'm using now the DAQ board 6009 and i know that the pin PFI0 is able to use as a counter. My task is simply i need to start the count and stop the execution of a bucle when the count arrives to one number (219 for example), but i get this error in matlab
Warning: A channel that does not support clocked sampling was added to the session. Clocked
operations using startForeground and startBackground will be disabled. Only on-demand
operations using inputSingleScan and outputSingleScan can be done.
and this is the port that im using:
Data acquisition counter input edge count channel 'ctr0' on device 'Dev1':
ActiveEdge: Falling
CountDirection: Increment
InitialCount: 0
Terminal: 'PFI0'
Name: ''
ID: 'ctr0'
Device: [1x1 daq.ni.DeviceInfo]
MeasurementType: 'EdgeCount'
And of course i can not use this function to start the count "aux = s.startForeground();"
what am i doing wrong?
10-15-2013 03:16 AM
Hi cachirly,
My reply is probably too late to help you, but you didn't do anything "wrong". The Matlab Data Acquisition Toolbox does not support clocked operations (e.g. startForeground or startBackground) on the USB-6009. I'm fairly certain that the USB-6009 does not have an internal clock, which is why you receive that warning.
What you can do (depending on what counting speed is necessary) is program inputSingleScan() in a loop.
I am also trying to use startForeground() or startBackground(). I already tried the USB-6501, the USB-6525, and the USB-6509 to no avail. I know for a fact that the USB-6525 has an internal clock with a cycle time of 40 µs; nonetheless, I receive the same warning in Matlab and am unable to use clocked operations.
Do you know of any hardware that can use these functions? Were you able to find a solution to your problem?
Best regards,
brinmr