LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X-NET CAN : How to test my communication right ?

Working with PXI 8513/2. LabVIEW 26016.

I have developped a CAN Driver and would like to test it.

I never implemented CAN communication so i am kind a noob with it !

I am using Port 1 for Read and Port 2 for Write in Frame In/Out Single Point.

 

My questions are :

1) Why do we need to connect an X-NET Database to intiate a CAN communication ?

2) Why do all Frame List specified into X-NET Database are sent at the end of my CAN init ? (I do a CAN Read in Timeout)

3) When Writing a new frame, CAN communication openned, i receive message error telling the X-NET session name is empty. Do i need to connect by hardware my port1 to Port 2 ?

I already read whitepapers CAN and wkipedia CAN !

 

BR,

Vincent

0 Kudos
Message 1 of 3
(3,161 Views)

Have you looked at the X-Net examples? Also, take a look at this getting started with x-net document https://www.ni.com/docs/en-US/bundle/ni-xnet/page/getting-started-labview-api.html

 

But,

1) You don't need a database, look at section 5 of the getting started document

2) This CAN init is something you wrote? It sounds like a problem with your VI, you would need to share it to tell for sure

3) You connect the port to an open session and use that session to read/write. Again, look at the examples or getting started

0 Kudos
Message 2 of 3
(3,149 Views)

I resolved my issue. Thanks for the tip. I didn't see Frame Stream needn't X-NET Database.

 

How does the property node "termination?" work ?

Let it "Off" made a single wire connection, let it "On" made a HighSpeed CAN wire with 200 ohm resistance termination.

Does it apply only with NI cables ?

Do you know a specific pinout in NI CAN cable with 200 ohm termination ?Didn't found any in datasheet

 

BR,

Vincent

0 Kudos
Message 3 of 3
(3,098 Views)