LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

executable crashes with error reporting windows using NI-CAN

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?

Snap2.png

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.

0 Kudos
Message 1 of 37
(3,398 Views)

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

0 Kudos
Message 2 of 37
(3,365 Views)

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...

 

0 Kudos
Message 3 of 37
(3,362 Views)

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

0 Kudos
Message 4 of 37
(3,349 Views)

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 

0 Kudos
Message 5 of 37
(3,343 Views)

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

 

0 Kudos
Message 6 of 37
(3,338 Views)

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 

0 Kudos
Message 7 of 37
(3,333 Views)

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

 

0 Kudos
Message 8 of 37
(3,330 Views)

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

 

0 Kudos
Message 9 of 37
(3,329 Views)

Hi Stefan,

 

it appears the same as before, if I click on the buttom the program will be terminated.

0 Kudos
Message 10 of 37
(3,327 Views)