07-15-2021 06:21 AM
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
08-05-2021 07:45 AM
Is there any way to Calculate (1) BUS LOAD,2) ERROR FRAMES3) CYCLIC TIME) in LabVIEW ?
08-05-2021 07:58 AM
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.
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
09-08-2021 10:58 AM
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.?
09-08-2021 08:59 PM - edited 09-08-2021 09:06 PM
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.
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
09-23-2021 04:07 PM
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
09-23-2021 07:29 PM
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.
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
09-27-2021 07:39 AM
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.