Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

increase rate of pattern generation 653x

Hello everybody,
 
I tried to use the example NIDAQ/Examples/VisualC/Do/DoSingleBuffPatternGen653x.c to output digital data from a group of two ports, with internal timing.
The problem is that when I choose to decrease the time between two digital outputs under 0,2 ms I am said that "the given clock rate is not supported by the associated counter channel or I/O channel "
I know that the 653x device is capable to generate pattern with a high speed rate but how ?
I simply need to read a file of data and output with time interval like 2 microseconds...
 
Can you help me ?
 
Nepenthes
0 Kudos
Message 1 of 7
(3,465 Views)

Did you try

iPgTB = 1  // Timebase = 1us

iReqInt = 2  // Pulse will be iReqInt * iPgTB = 2us

 

Regards,

0 Kudos
Message 2 of 7
(3,442 Views)

yes, it works ! but I don't understand : if I choose iPgTB = 2 and iReqInt = 1, which corresponds to a rate of 10 microseconds ( > 2 microseconds !) I have an error ! So can I trust to the rate I am defining ?

Regards,

Nepenthes

0 Kudos
Message 3 of 7
(3,415 Views)
Hi,
 
could you post the error you have?
0 Kudos
Message 4 of 7
(3,406 Views)
the error is -10011 : "the analog input scan is too fast for the number of channels and the channel clock rate; or the given clock rate is not supported by the associated counter channel or I/O channel "
 
Nepenthes
0 Kudos
Message 5 of 7
(3,409 Views)
Try this code:

 

0 Kudos
Message 6 of 7
(3,401 Views)

Hi !

I've tried your code... same error when i take iPgTB =3 and iReqInt = 1 but works when taking iPgTB= 2 and iReqInt= 1 like in my code !

Nepenthes

0 Kudos
Message 7 of 7
(3,396 Views)