Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Channel method Crash LabView

Dear All,

I'm working with :

- Labview 8.2.1

- Windows XP SP3

- Driver NI CAN 2.6.3

- PCI CAN Serie 2

- Multifonction DAQ

 

I have build a program who's measure at same time DAQ MX Analog measure and CAN Channel measure. For that I have find VI example "CAN Waveform Input and DAQmx Waveform Input.vi". The two card use RTSI.

 

For a reason that I don't understand, Labview craches randomly (1 time each Ten running).

The crach appear randomy few time after the reading of data (after about 100 reading).

 

All the day I have take time to understand what append : 

- I have copy the program in new VI

- I have  check that there is no error

- Check that no empty data where returned by CAN measure....

 

My program use also Frame method : It work fine.

Using channel method whith the same program cause crash

 

What is best method to understand what could crash labview ?

 

Thanks for any idea....

 

Regards

0 Kudos
Message 1 of 3
(5,950 Views)

Dear All,

 

I'm already searching why LabView Crashes.

 

I understand what cause the crashes of labview.

 

In my program, it is possible to change the sample Rate.

For my test I have put in a While loop functions : "Init Daq Card", then "read" CAN and analog measure during 3 second, and close all.

 

At first iteration of my while Loop at X sample/s = OK

At next iteration of my while loop with a different sample rate : Labview crasches... And a message appear Not enought memory.

 

Any idea to avoid the crash of laview ?

 

Maybe this problem is solved in new version of NI CAN. But higher version of NI CAN 2.6.3 compatible whith labview 8.2.1. NI CAN 2.7 seem to be available but I don't know where to download it...

 

Thanks for reply.

0 Kudos
Message 2 of 3
(5,933 Views)

After 2 day to try to understand what append, I finally stop.

 

I have modify completly my program to avoid using Channel method...

0 Kudos
Message 3 of 3
(5,918 Views)