We are using LabVIEW 6i and a serial connection to run the ST400NT stepper motor controller from RMV Electronics (www.rmv.com). The controller ships with a C-code DLL driver and bad documentation. We discovered one nasty bug that kept crashing LabVIEW for months, the solution to which I'm posting here to help others avoid the same problem. One of the DLL functions, GetConnectedControllers, returns a comma-delimited string containing the numbers of the connected motors, plus "N" for each empty motor control slot -- it's around 50 characters long. If the string input to the Call Library Function VI that calls GetConnectedControllers is left unwired, the VI runs but the DLL function writes its return s
tring somewhere random in memory. This causes intermittant crashing of LabVIEW. The fix is to wire a dummy string constant of >100 characters into the input of the Call Library Function VI, which will be overwritten by the DLL's output and cause no harm.