Falcon,
the fact that the dll returns an error and not LabVIEW, suggests that the problem is inside the dll - inside that black box.
You might search the dll material or contact the supplier.
Greetings from Germany!
--
UweGreetings from Germany!
--
Uwe