Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Bus Load, Error Frame and Cyclic Time From X-NET.

Hi , I'like to measure the following parameters using NI X-NET.  I Am using a PXI Chassis 1092 with PXIe-8510,

1) BUS LOAD,

2) ERROR FRAMES

3) CYCLIC TIME

 

All suggestions are welcome.

 

Regards

Srinibas

0 Kudos
Message 1 of 8
(3,036 Views)

Is there any way to Calculate (1) BUS LOAD,2) ERROR FRAMES3) CYCLIC TIME) in  LabVIEW ? 

0 Kudos
Message 2 of 8
(2,978 Views)

You can refer to the RT Driver VI of XNET CAN Bus Monitor Custom Device for an example of Bus Load calculation.

As for the error frames and cyclic time, can you explain more on what you are looking for?

The Raw Frame Format returned by XNET Read (Frame Raw).vi contains Timestamp and Frame Type information, which might be a good starting point.

Senior Technical Support Engineer | CLD CTA | NI


DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

0 Kudos
Message 3 of 8
(2,973 Views)

Thanks For your Reply and Sorry for Delay Response.. I am going through the RT Driver VI of XNET CAN Bus Monitor Custom Device for bus Load calculations. But it seems to be for NI Veristand, But we can check the BUS Load Calculation.

 

Thanks again for the Suggestions,

 

I'll be happy to know is there any way to get the XNET BUS Monitor Statistics Tab Information Programmatically into LabVIEW/TestStand.?

0 Kudos
Message 4 of 8
(2,917 Views)

NI VeriStand Custom Device is just LabVIEW VI called by VeriStand Engine dynamically.

 

Unfortunately, there is no API to automate NI-XNET Bus Monitor.

Bus Monitor is essentially just an utility created using XNET Frame Input Stream session. You can create your own utility. For TestStand, you can implement Termination Monitor.

Senior Technical Support Engineer | CLD CTA | NI


DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

0 Kudos
Message 5 of 8
(2,911 Views)

Hi ZY_Ong,

 

We have integrated the Bus Load VIs from the RT Driver VI of XNET CAN Bus Monitor Custom Device , But the Value what it returns is not same (significant difference) as the Bus Load Values shown in Vector CANalyzer Tool.

 

One more observation , the busload value increases significantly whenever we ran XNET Bus Monitor along with the Busload VI- its quite confusing why it is happening ?

 

As going through the documents , Termination Monitor. allows a code module to stop executing if TestStand attempts to terminate or abort the execution. So How can this be Utilized here.. Could you plz help me in that.?

 

Thanks

Srinibas

0 Kudos
Message 6 of 8
(2,893 Views)

Hi Srinibas,

Bus Load Calculation is not defined in any standard and merely just an estimation thus everyone implements it differently.

I found Vector KB on CAN Bus Load Calculation. You can refer to this article and make some modification.

 

TestStand Termination Monitor allows you to open the front panel of a VI at the beginning of sequence execution then close the VI on termination or abortion. One common use case is the Temperature Monitor of environment chamber. Same idea can be applied to create your own Bus Monitor which runs and stops programmatically.

Senior Technical Support Engineer | CLD CTA | NI


DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

0 Kudos
Message 7 of 8
(2,889 Views)

Thanks ZY_Ong,

 

Yes You are right Bus load Calculation is an approximation procedure . The Vector calculation is not applicable for CAN FD BUS Load measurement, though we can get some information of calculation.

 

Thanks Again for your active responses.

 

0 Kudos
Message 8 of 8
(2,872 Views)