02-27-2018 11:42 AM
Hello,
I am working on updating a LabView program and I have run into problems with building my application. The original program's VIs were written on LabView 2010 and I am using LabView 2015. I am able to take the original program's project (with no changes) and compile it on LabView 2015 into an executable and it does open and run the majority of the programs features. However, it will not communicate with the stepper motor driver (i.e. the motor doesn't rotate). The PC communicates to the stepper motor driver over a serial connection. Does anyone know why this part of the program fails to execute?
Note: The original executable (from 2010) still works on the host PC.
Solved! Go to Solution.
02-27-2018 12:36 PM
Did you reinstall all drivers with LabVIEW 2015 support after installing LabVIEW 2015?
Do you have any error handling and if so, does it report anything?
02-27-2018 12:54 PM
Do you call the stepper motor VIs dynamically? I can't imagine being able to build an exe without having all of the driver dependencies, unless this is the case...
Is there place in the program, or configuration file, where you need to put the address of your motor?
02-28-2018 09:47 AM
Hello Everyone,
I figured out what my problem was. So, the person who made the code has a config file that is created for each rig when the application is first used. However, this file is not populated when it is first created so the program didn't know which com ports should be used to send commands. I copy and pasted the config files from the older application to the new one and now it works fine.
Thank you all for the help and sorry for the confusion.
02-28-2018 10:43 AM
No problem, since I suggested the config file in my response, feel free to mark it as solution.