LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Support Xnet in Veristand


@DungHoang wrote:


Error -1074384541 occurred at Project Window.lvlib:Project Window.vi >> Project Window.lvlib:Command Loop.vi >> Project Window.lvlib:Connect to System.vi

Possible reason(s):

NI-XNET: (Hex 0xBFF63163) You used an empty name for an XNET database object (database, cluster, ECU, frame, or signal). Empty name is not supported. Solution: Refer to NI-XNET help for IO names to review the required syntax for the name, and change your code to use that syntax.

 Do you know how to fix it.


As the error suggested, did you configure it correctly?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 21 of 29
(143 Views)

Hi ZYOng,

 

 My DBC is issue, I fix it.

 

 Now I have one issue, I sent CAN from Protection-Custom-Device but I can not receive data from BUS.

 

 Do you know issue? and How to fix it?

 

Tks

0 Kudos
Message 22 of 29
(118 Views)

@DungHoang wrote:

Hi ZYOng,

 

 My DBC is issue, I fix it.

 

 Now I have one issue, I sent CAN from Protection-Custom-Device but I can not receive data from BUS.

 

 Do you know issue? and How to fix it?

 

Tks


Do some basic CAN communication troubleshooting.

Run NI-XNET Bus Monitor while VeriStand is running, and see if the intended frames are received by XNET devices.

If they are not, enable Error Bus in the Device and Interfaces setting. If there is any error frames, check termination and baud rate setting, especially the sample point setting.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 23 of 29
(114 Views)

Hi ZYOng,

I think it's related to CAN FD. For CAN 2.0, I can read normally but for CAN FD, I can't read but it still sends.

 

I have configured the data rate and data transfer rate correctly.

 

Tks

0 Kudos
Message 24 of 29
(104 Views)

@DungHoang wrote:

Hi ZYOng,

I think it's related to CAN FD. For CAN 2.0, I can read normally but for CAN FD, I can't read but it still sends.

 

I have configured the data rate and data transfer rate correctly.

 

Tks


You also need to configure the sample point correctly when using CAN FD by selecting the correct custom baud rate. See Incorrect/Unexpected Behaviour or Slow CAN Frames When Using NI-XNET in CAN FD & BRS

By default, NI-XNET devices use 87.5% in most FD baud rate but some devices in the market like CANoe use 75%

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 25 of 29
(88 Views)

Hi ZYOng,

 

 When I setting in NI-XNET Bus Monitor, is it deployed in custom device when I run on veristend?

 

Thank for support.

 

0 Kudos
Message 26 of 29
(75 Views)

@DungHoang wrote:

Hi ZYOng,

 

 When I setting in NI-XNET Bus Monitor, is it deployed in custom device when I run on veristend?

 

Thank for support.

 


You can run NI-XNET Bus Monitor on the host PC in Subordinate Mode while the custom device is running.

Log Bus Traffic with NI-XNET Bus Monitor While Running NI-XNET Application

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 27 of 29
(54 Views)

Hi YZOng.

Thanks for the support.

 

Now I have a question. This new protection data I created. I need to get all the data from the payload then I will calculate.

I write the code like blow is it correct?

 

For example: I have payload with length = 8. I need to get byte 0, 1, 2, 3, 4, 5, 6, 7, not get by signal type because my signal can be greater than 255.

 

DungHoang_1-1757588966101.png

 

Thank for support

0 Kudos
Message 28 of 29
(41 Views)

Hi Mr ,

 

 I edited the calculated checksum to my liking, but it seems to be faulty somewhere causing the CRC to always be 0.

 

 Can you see where I went wrong regarding the integration of signal values ​​into a frame can?

 

DungHoang_0-1757652180331.png

 

Tks

0 Kudos
Message 29 of 29
(21 Views)