Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to simulate a XNET CAN device in MAX?

Solved!
Go to solution

I have ordered an NI 9860 2-Port Hardware-Selectable NI-XNET C Series Module and 2 CAN-FD capable transceiver cables.  Of course my time line for implementation is tight.  I would like to write the driver I need before the hw arrives.  For many NI devices I can go into MAX and simulate the device.  It seems like that option isn't available for serial communications devices like the one I ordered.  

Is it possible to simulate my device so I can create a session and debug my driver?

 

Thanks,

Mick

 

 

 

0 Kudos
Message 1 of 6
(9,004 Views)
Solution
Accepted by MickF

Hi MickF,

There is no way to simulate the actual XNET modules in the same way as DAQ devices. For our simulated DAQ devices we are able to return dummy data (such as a simple sine wave for analog inputs), but XNET will have something completely different on every bus and behave differently based on that. Plus, to make use of an XNET Database for testing there needs to be Frames or Signals matching the information in the database coming from your CAN Bus.

That being said, NI-XNET is simple enough to use with a large number of examples in our LabVIEW Example Finder for you to investigate and begin working from. You should also be able to begin working on your NI-XNET Database if you have not already and plan to use one (this is required by all XNET Sessions except Frame Stream Sessions). If you are not familiar with XNET already, I would take this time to investigate some of the examples and take some time to look at our NI-XNET Hardware and Software Manual. Specifically, learn about the different Session types and timing types you will need to use so that you are already familiar with them once you receive your hardware. 

NI-XNET Hardware and Software Manual: https://www.ni.com/docs/en-US/bundle/ni-xnet/page/user-manual-welcome.html
Getting Started with NI-XNET: https://www.ni.com/docs/en-US/bundle/ni-xnet/page/getting-started-labview-api.html

Charlie J.
National Instruments
0 Kudos
Message 2 of 6
(8,993 Views)

Thanks for the info.  Not the answer I was hoping for but it explains why I cannot figure out how to simulate.  

I've reviewed the examples and I think I have a pretty good piece of code created based on them.  

 

Mick

0 Kudos
Message 3 of 6
(8,990 Views)

Hi Charlie,

 

sorry to resurrect such an old thread, is this still impossible to simulate? Is there a way to just simulate the module presence in MAX, even if it doesn't provide dummy data? That would be great to test some hardware configuration without testing actual data acquisition, populate some GUI selectors with available hardware names and things like that.

 

Kind regards,

Néstor

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 4 of 6
(4,303 Views)

There isn't a simulate XNet hardware option, but you can go vote for that idea here.

0 Kudos
Message 5 of 6
(4,299 Views)

Voted, thanks!

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 6 of 6
(4,282 Views)