Hi pgaastra,
Without having the actual dll or device, my initial thought from looking at your code is that you might try creating a simpler VI first that only does one single command to one call library function node and try to get that working before trying the more complex task of sending all the various commands in your program.
Regards,
Nathan S.
Applications Engineer
National Instruments