You will need:
STM32F4XX
FT2232X
Labview
Simple USB to SPI example that shows hot to use labview and DMA in circular buffer to exchange data. All project files including labview program can be downloaded from:
http://uploaded.net/file/mbbjatee
More labview programs how to toggle GPIO or read GPIO, or do any other action supported by FT2232, download examples from ftdi website:
http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/FTCSPI.htm
To check SPI configuration, you can always use STM32CubeMX application, it saves a lot of time:
http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF259242?icmp=stm32cubemx_pron_pr-stm32cubef2_apr2014&sc=stm32cube-pr2#
If you want to create empty project, look up for my tutorial on IAR ARM that can be found here:
http://youtu.be/FV5x-RiyKqo?list=UUDBSFAz0IZN4Jjs07bH1XqQ
Reference programming manual for STM32F4 can be downloaded from www.st.com:
http://www.st.com/web/en/resource/technical/document/reference_manual/DM00031020.pdf