Dinesh,
Thanks for posting to the NI forums. Let me see if I can address some of your questions.
1. Timed DI
Unfortunately the 6154 and 6143 do not support hardware timed DIO. In other words you cannot acquire digital signals using a hardware sample clock. You can do some approximation of a steady acquisition rate if you set up some timing in software (by say creating a while loop that makes a read every iteration and attempts to keep the loop period constant) but this method is very susceptible to large jitter since it is controlled by a non-determinisitic software environment (Windows).
2. Error -200303 when attempting to use the counter
This error occurs when you explicitly need to specify an external sample clock source. Are you wanting to have a sample clock for your counters? How would you like the counter synchronized with AI? You mentioned that you would like to use a different rate. What rate would you like to buffer in counts from the counter?
3. Diplaying the # of Counts
I am not sure what you are asking here. If I understand you can just use a numeric indicator to display the # of counts. You may need to provide me with a better idea of what you would like to display and where.
4. Writing data to a file:
Once again I am not completely sure what you would like to do. By efficiently do you mean executes quickly or easy to program? The easiest way to write data to a text file is to use the Write to Spreadsheet File.VI. This VI takes a two dimensional array of doubles(floating points) representing rows and columns of the spreadsheet and writes it to a tab deliminated text file.
Hopefully I was able to give some good pointers. Let me know if you have additional questions or would like me to elaborate on any of the discussed topics.
Regards,
Neil S.
Applications Engineer
National Instruments