From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-CAN/XS2 Single wire configuration

778782-02  NI PCI-CAN/XS2, 2-Port, SW Select, 9-Pin DSUB
I am trying to communicate to a GM Module.
Currently we use a PCMCIA Vector product and a I+me Actia CAT tool.
We purchased several 778782-02  NI PCI-CAN/XS2,
What is required is configuration for single wire can. 
Then send a High voltage wakeup then normal CAN communication.
Using the supplied information and the examples it appears
like my commands are mixed between Channel and Frame.
The examples I received use the NC_xxx commands but all of the examples are for 2 wire CAN.
Is there an example where I can
Set the Can0 to single wire
Configure for 33.33K Baud
and Send a high voltage Wakeup Command.
Is this all in the Frame mode NC_
Do I mix the NC_ with the NCT_
 
0 Kudos
Message 1 of 2
(3,827 Views)
Hi,
 
it seems you mixed Network Interface configuration and object open. But as far as i can see there is no channel api  in your code.
You have to open a port handle in order to set the transceiver type . Therefore the start on open attribute needs to be FALSE and you need a nc action to start communication after setting the attribute.
I modified the standart example and you can run it on a XS board with both ports cabled together.
 
hope that helps
0 Kudos
Message 2 of 2
(3,810 Views)