06-30-2016 02:19 PM
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
Solved! Go to Solution.
07-01-2016
09:18 AM
- last edited on
01-10-2025
05:33 PM
by
Content Cleaner
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
07-01-2016 10:06 AM
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
07-09-2021 09:57 AM
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
07-09-2021 01:13 PM
There isn't a simulate XNet hardware option, but you can go vote for that idea here.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-13-2021 02:54 AM
Voted, thanks!