LabVIEW to program Arduino to control LED driver Via SPI

I am trying to create a SubVI in LabVIEW that will control the light intensity of 4 different types of LEDs through the use of a LED driver STP04cm05 and the Arduino Uno. I keep getting errors while trying to communicate with the Arduino and it is my belief that it may have something to do with maybe my byte size, word size, or clock divider. It could also be how I am trying to send the information to the LED Driver. I have the code written in the arduino IDE and it works fine but apparently I stink at translating this into LabVIEW. I could really use some help with this since I am not very good. So please please help me. I am attaching the LabVIEW Vis', the datasheet for the LED driver and the Arduino code so that the shift PWM scheme I am trying to implement is understood. Thank you for all your time and effort

Link to LED application file (Shift PWM is discribed on pg 44)http://www.st.com/content/ccc/resource/technical/document/datasheet/54/4a/1d/50/03/0e/47/e7/CD00177556.pdf/files/CD00177556.pdf/jcr:content/translations/en.CD00177556.pdf

LED driver DataSheet
http://www.st.com/content/ccc/resource/technical/document/application_note/be/93/fe/64/3e/08/46/52/DM00038253.pdf/files/DM00038253.pdf/jcr:content/translations/en.DM00038253.pdf

Rep_Kindle.zip (21.4 KB)

DCVI.png