If it works in MAX, then it must be something in the code .
Can you please post your code so that I can take a look at it?
I had Max working, then tried my .vi and found the -50303. After trying a few things and posting this on the forum I went back to make sure MAX was still working, but it was not. I believe could not see the hardware. Recycled power on the rack and that took care of it.
Thanks for looking into this for me.