04-21-2011 04:29 AM - edited 04-21-2011 04:38 AM
Hallo,
here is my problem:
on my development mashine I've finished my work, which contains NI-CAN VIs. These VIs are used to open and read LIN bus.
I've build an executable for it, it runs perfectly on my development mashine but as I create an installer and install the program onto my target PC it crashes by start up.
In the additional installation I have selected the NI-can and the LabVIEW runtime, which should be enough for the previous version 8.6. As I'm using the 2010sp1 and XP SP3 how should I bring out a solution?
And my executable is here
PS: the souce code of this program can be found here. I took the example just to show that the NI can is not working regardless of my code.
04-27-2011 07:21 AM
Hi wilburwu,
I'd like to help you and to do this I have some questions:
1. You wrote about versions 8.6 and 2010 SP1. Which software did you use to write the programme?
2. A solution suggestion is part of the error message. Did you try to find the interface in the MAX? Is it there? Is the correct port in use?
3. Does the CAN work at all? Is it possible to contact it via MAX?
Best regards,
Stefan
---
Stefan Egeler
Applications Engineer
National Instruments Germany
04-27-2011 08:28 AM
Hi,
thanks for your reply.
1. the code was written originally in LV8.6 and now I'm working in 2010 sp1. And naturally it is now in format 2010.
2. The program is all right, if I don't press the "close" buttom. The CAN runs without problem, and all the functions are available. However, if I click on the buttom the program will be closed.
Recently I've tried another way that I build the exe on another mashine with 2010 developer suite installed. And this EXE is find and promt no error.
But I am really afraid that the SP1 causes the problem that I can't explain...
04-28-2011 03:23 AM
Hi wilburwu,
I'm afraid I did not fully understand your explanation in (2). Do you get the error message at startup of the executable? Are you able to work with the executable in spite of the error message?
Currently, I see two possible sources of error: The driver version and the installer (which could be related to SP1, as your idea was).
Did you use the most recent NI-CAN-Driver, which is NI-CAN 2.7.2?
http://joule.ni.com/nidu/cds/view/p/id/2093/lang/de
Did you create the executable in both development systems with the same files, additions and settings?
Best regards,
Stefan
---
Stefan Egeler
Applications Engineer
National Instruments Germany
04-28-2011 04:37 AM
Hi Stefan,
ja, you are right. The executable works in spite of the error dialog. The NI-CAN on the both system are the same (2.7.2). The LabVIEW project files and the settings are the same.
As I may imagine the only difference between the two is the Service pack 1. If it is installed, the execution can only run on the mashine on which the whole development enviroment is installed.
Wilbur
04-28-2011 06:19 AM
Hi Wilbur,
Did you explicitly install the LV 2010 SP1 Runtime with the SP1 installer?
LabVIEW Run-Time Engine 2010 SP1 - (32-bit Standard RTE) - Windows 7/7 64 bit/XP/Vista x86/Vista x64/Server 2008 R2 (64-bit)
http://joule.ni.com/nidu/cds/view/p/id/2292/lang/de
Best regards,
Stefan
---
Stefan Egeler
Applications Engineer
National Instruments Germany
04-28-2011 10:12 AM
Hi Stefan,
thanks for the tip. I've installed the runtime for sp1. However it doesn't change a lot.
It looks like the problem is still on my PC which build the execution.
Best Regards,
Wilbur
04-28-2011 10:23 AM
Hi Wilbur,
is there a new error message or is it still exactly the same?
Best regards,
Stefan
---
Stefan Egeler
Applications Engineer
National Instruments Germany
04-28-2011 10:23 AM
Hi Wilbur,
is there a new error message or is it still exactly the same?
Best regards,
Stefan
---
Stefan Egeler
Applications Engineer
National Instruments Germany
04-28-2011 10:27 AM
Hi Stefan,
it appears the same as before, if I click on the buttom the program will be terminated.