Hi Van,
I want to "correct" the answer of Bharathi! The board you have is a static DIO board, that means that you cannot use any Analog Input VI (for example AI config, AI Acquire waveform and so on). What you need are the VI's from the Digital I/O subpalette if you're using Traditional NI-DAQ or the polyphormic Read/Write VI's if you use NI-DAQmx. There are several examples in LV which shows how to use this board.
AS I mentioned before this is a static DIO board. That means that you can write/read to/from a line or port only through a SW call. There is no way to control the input or output rate in HW.
You wrote that you want to read a square wave (TTL?), but what kind of information do you want to extract from this square wave? Amplitude, Frequeny, Period, Duty Cycle, ...?
The best way to measure this kind of information is to use a counter. This means that you need an E or M Series board or directly a Counter board (660x). An option could be to use a board with analog inputs, so you could measure the voltage and extract the information in SW.
How fast is the frequency? That's an important factor. Anyway, the DIO-24 board is not made for this kind of applications.
Hope this helps.
Regards,
Luca