Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up NI-CAN as slave?

I want to use a NI-CAN interface in a laptop as a slave on a CAN network. It should work as any other devices connected to the bus and receive commands from a master. can it be done and where do I find info on this?
0 Kudos
Message 1 of 2
(3,173 Views)
Yes! NI absolutely provides PC Card CAN interfaces for accessing a CAN bus from a laptop. See:
http://sine.ni.com/apps/we/nioc.vp?cid=10235〈=US

I'm a little confused on the master/slave terminology you're using, however, as CAN is really a peer bus. Any device on the CAN bus can transmit and receive messages as described below (from the NI-CAN User Manual):
"When a CAN device transmits data onto the network, an identifier that is unique throughout the network precedes the data. The identifier defines not only the content of the data, but also the priority. A CAN identifier, along with its associated data, is often referred to as a CAN Object. When a device transmits a message onto the CAN network, all other devices on the network receive that message
. Each receiving device
performs an acceptance test on the identifier to determine if the message is relevant to it. If the received identifier is not relevant to the device (such
as RPM received by an air conditioning controller), the device ignores the message.
When more than one CAN device transmits a message simultaneously, the identifier is used as a priority to determine which device gains access to the network. The lower the numerical value of the identifier, the higher its priority."

As you can see, you can use our CAN interface "slave" to receive commands from any other device on the CAN bus "master". Hope this helps.
0 Kudos
Message 2 of 2
(3,173 Views)