10-19-2011 12:30 PM
Hi all, I have an application where I need 4 different CAN buses. To achive that I already put 2 NI-CAN cards Series 2 with 2 ports each. On my applicantion I configured each single port individually and comunicate with each bus, but for some reason (I dont know why) one or two of the ports lost comunication, not always is the same port, it is randomly. I dont know If the NI-CAN driver has any limitation or what I am doing wrong. I can not see the ligth at the end of the tunnel. Any help will be welcome.
Thanks
Alfredo
Solved! Go to Solution.
10-20-2011 08:40 AM
Alfredo,
What version of the Series 2 NI-CAN card are you using? PCI, PXI, PCMCIA, etc.? Also, what version of the NI-CAN driver are you using?
When you lose communication between ports, are you running any programs or just basic connection? When you restart your setup, do you regain communication?
10-20-2011 09:01 AM
Hi Larry,
Those are PCI cards and the CAN driver is the 2.7.2. I think I found the problem. I am used to use only one CAN port and the configuration subVI I made for that (a long time ago) has as input the Port name and the Baudrate and has as output the PortHandler, but it include also a RESET command (disscontinued on the new versions) inside.
The problem was because I configure each port with that subVI in a Secuence structure and I think one of the ports lose the config because of the Reset and assign the same PortHandler to both ports on one card.
I use a newest subVI I made recently where I configure any of the ports and any CAN card I have (NI or Vector), this new VI don't have the old RESET VI and it works great!!
Thanks any way for you interest and prompt reaction.
Alfredo