LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Project executable doesn't run the same on a different machine.

I created a project to make an executable from some VI's I am using.  My goal is for people who do not have LabVIEW on their PCs to be able to use the application.  When I run that executable on my PC, everything works fine.  When I run it on another machine (same model, OS) only 2 of the 3 items in the main vi work.  Any ideas why this is happening?
 
If you look at the attached pic, it shows 2 loops running at different rates.  The loops transmit CAN messages at 2 different rates.  On my machine they all work fine.  But when I copy the same executable to the same path on a different machine, the top loop is apparently not being executed - I don't see that message on the CAN bus although the messages from the 20ms loop can be seen.
 
Any thoughts as to what might be causing this to happen?

Thanks...
0 Kudos
Message 1 of 2
(2,642 Views)

You probably should put some error handling in there. At the very least create a front panel error indicator so you can tell if an error has occurred at the CAN vi.

To see if the loop running, create an indicator on the loop iteration terminal (the little "I" box in the loop) and rebuild the application. This way you'll be able to verify that the loop is at least running. Just looking at the image, there's no way the top loop only would be stopped unless the "stop 2" button is depressed by default for some reason.

My guess would be something in the CAN card configuration. Is it a 1 or 2 port card? If 2, is each loop using a separate port? Maybe your development machine has the port configured as CAN1 and CAN2 and the new machine is CAN0 and CAN1. That would cause an error in one of the loops.

Try to get some error information and look at the CAN configuration and let us know what you discover.

Ed



Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 2
(2,624 Views)