Hi Uğur,
Unfortunately I am not too familiar with the SPI as a protocol either. SPI really depends on each individual device's requirements. However we do have a digital waveform generation library that can help you generate SPI waveforms. It will likely be much more convenient than manually producing the waveforms.
https://forums.ni.com/t5/Example-Code/SPI-Generation-and-Acquisition-using-HSDIO-Hardware-654x/ta-p/...