LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with Simple XNET CAN Example...

I am trying to get a simple XNET CAN write frame going. Here is the VI I created...

 

xnet_can_write_vi_with_error.PNG

 

I keep getting this:

 

xnet_can_write_vi_with_error.PNG

 

I looks like I have a frame set up, so what else could be the issue?

 

0 Kudos
Message 1 of 7
(3,407 Views)

Can you post your VI? The error message blocks all of the configuration blocks that you're using.

How are you configuring your session? External DB or are you creating it on the fly?

0 Kudos
Message 2 of 7
(3,400 Views)

Hey,

 

I am "trying" to create a session and send data on the fly. I changed my vi back to the simple one I had earlier in the day:

 

simple_send_can_message.PNG

 

 

0 Kudos
Message 3 of 7
(3,395 Views)

I am trying open a session and send a message with the VI in the diagram, no DB. Is that possible. Open XNET session and just send an arbitrary CAN message?

0 Kudos
Message 4 of 7
(3,394 Views)

I create the XNET Session for a remote PXI machine:

 

simple_send_can_message_2.PNG

0 Kudos
Message 5 of 7
(3,386 Views)

Can you show the configuration for your write session?

You do need to define which frames are in that session.

If you want to send arbitrary frames, I think you'll need to work with the in memory database to configure the frame prior to writing to it.

 

It's been a while since I've done XNET and I don't have any hardware handy at the moment so I may be remembering incorrectly.

0 Kudos
Message 6 of 7
(3,370 Views)

I got it to work. Had to specify a frame in the XNET configuration. So, yes I need the frame db stuff...

0 Kudos
Message 7 of 7
(3,359 Views)