LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

executable crashes with error reporting windows using NI-CAN

Hello Wilbur,

 

I would like to reproduce the error. Which hardware do you use? The file you use is the example file you linked to?

 

Best regards,

 

Stefan

 

---

 

Stefan Egeler

Applications Engineer

National Instruments Germany

 

0 Kudos
Message 11 of 37
(1,201 Views)

Hi Stefan,

 

I'm using the NI USB LIN 8476 for LIN bus. 

 

Thanks for the help,

 

Wilbur

0 Kudos
Message 12 of 37
(1,197 Views)

Hello Wilbur,

 

 

I'm very sorry that it took so long.

 

I now was able to reproduce the error. I had a fresh and clean Windows XP SP 3 target system with only the LabVIEW 2010 SP1 Runtime and the NI-CAN 2.7.2 Drivers running on it. The executable you attached produced the same error you made a screenshot of.

 

I then built an executable from the VI you linked to, and it worked fine, even on the target system. Did you change anything within the VI? Please attach your whole project file from the VI including also your build specifications!

 

 

Best regards,

 

Stefan

 

---

 

Stefan Egeler

Applications Engineer

National Instruments Germany

 

0 Kudos
Message 13 of 37
(1,187 Views)

Hi Stefan,

 

thanks for the try! I didn't change anything in the project. In fact I just wanted to show you that the NI-CAN in the execution is not working properly so I've used the universal VIs for instance.

 

The problem is possibly on the LIN bus kit. I've found that one VI in the LIN starter kit doesn't work well with LV 2010. However, I didn't change any thing in the user.lib.

It is also possible that the the execution builder doesn't make it right.Is there a function, which repairs the execution builder?

 

Wilbur

0 Kudos
Message 14 of 37
(1,184 Views)

Hello Wilbur!

 

I am afraid I did not fully understand your argument. You built an installer with the example file Put master in sleep mode and remotely wakeup, is that correct? And this example file did not work either, did it?

 

There is one simple way to find out if your installer is the error factor: Build an executable for this file (not an installer!) and run this executable on your target system. As the system already has the runtime environment and the NI-CAN drivers, you do not need an installer any more. Please try it and tell me if it works.

 

To help you further, I would like to see and one on one compare settings of your project and mine. An error often seems to be an error of the programme and after some time you find out it was just a small setting that made the difference. So please attach your project file from the VI. Please attach it completely, so that it also includes your build specifications!

 

Thanks in advance!

 

Best regards,

 

Stefan

 

---

 

Stefan Egeler

Applications Engineer

National Instruments Germany

 

0 Kudos
Message 15 of 37
(1,177 Views)

Hi Stefan,

 

in fact I've only built the execution and it always causes Error as you saw. 

I've download the project from the website, maked no changes and built the execution. The execution is already posted in the first post. 

 

As you wish, I post once again the project+execution.

0 Kudos
Message 16 of 37
(1,168 Views)

Hi Wilbur!

 

Thank you for your answer. In the project there is not the same executable as you made the screenshot of.

 

The one in the project is

USB-LIN Sleep Control_LV80.vi

 

while the screenshot one was

LIN Master Send Header Frame and Receive_LV80.vi

 

But I compiled the executable of USB-LIN Sleep Control_LV80.vi without changing any settings and, voilà, there was no error again. So, as it seems, the execution builder on your development system ist not working correctly - as you assumed.

 

Now please try and repair your LabVIEW 2010SP1 via system control --> uninstall or change programs --> National Instruments Software --> choose "LabVIEW 2010 Service Pack 1" and press "repair". Afterwards please rebuild the LIN application, try it again and tell me if it works.

 

Have a nice day,

 

Stefan

 

---

 

Stefan Egeler

Applications Engineer

National Instruments Germany

 

USB-LIN Sleep Control_LV80.vi
0 Kudos
Message 17 of 37
(1,162 Views)

Hi Stefan,

 

I tried the repair funtion and build a new execution. But the same error appears.

Assumed is the service pack OK but there's something wrong with my CAN (LIN) plug-in.

 

Best Regards,

Wilbur

0 Kudos
Message 18 of 37
(1,156 Views)

Hi Wilbur,

 

please do the following:

 

1. Build the executable again, but activate the following settings in your built in the category "advanced":

a, activate error search

b, error search bevore begin

c, create build protocol file

2. Post the executable and the build protocol file

 

I will debug the executable on the target system, hopefully we will get more information about the error this way.

 

Have a nice day!

 

Best regards,

 

Stefan

 

---

 

Stefan Egeler

Applications Engineer

National Instruments Germany

 

0 Kudos
Message 19 of 37
(1,153 Views)

Hi Stefan,

 

here is the execution with the log file!

0 Kudos
Message 20 of 37
(1,148 Views)