11-02-2011 08:36 AM
Hello,
I am trying to monitor CAN messages that are being transmitted through a CAN network and I was wondering if I could use the NI CAN Test Panel to do this?
Currently I have an PXI-1052 Chassis and a couple of PXI-8464 CAN/XS Series Two cards.
I am relatively new to LabVIew using CAN but any help in getting started would be appreciated.
Solved! Go to Solution.
11-03-2011 10:14 AM
Hello,
I have located the following information for you in regards to monitoring the CAN Bus of your PXI System:
KnowledgeBase Articles:
http://digital.ni.com/public.nsf/allkb/C550932054BAED2586256F6C006DE465?OpenDocument
http://digital.ni.com/public.nsf/allkb/6AF3AA9CE79365E386256F9E007E8CE9?OpenDocument
http://digital.ni.com/public.nsf/allkb/07EC80E3060B2CB586256DD0005ABA63?OpenDocument
Example programs:
https://decibel.ni.com/content/docs/DOC-4302
https://decibel.ni.com/content/docs/DOC-4168
Also, we have a developer community which is a community of other labview enthusiats that post example programs that they create for various applications. You can try searching here for examples of other applications that you may have in mind: https://decibel.ni.com/content/community/zone?view=documents
I hope this helps.
Regards,
11-07-2011 12:13 PM
Hey Thanks for the reply.
I have tried to monitor the BUS load as well as run the CAN receive VI and I do not seem to be receiving any messages. Do the CAN messages need to be configured in a particular way for me to be able to view them?
11-07-2011 12:59 PM
Are you using the 1 port card or the 2 part card? Also, are you sure there are CAN frames being sent to the card?
Lastly, have you done your initial setup in MAX for your Real-Time System? If you are unsure, please follow this document to make sure that your application is setup correctly: http://digital.ni.com/public.nsf/websearch/D2D8B947369F453986256F89006F40B0?OpenDocument
The initial setup has to be configured correctly before you can see frames on your card and on your host machine.
11-07-2011 01:42 PM
I am using a two port card.
I ran a serial cable between the ports and ran the attached can loop back test to ensure the ports are able to communicate to each other. In each instance the data transmitted from one port is received by the other.
http://digital.ni.com/public.nsf/allkb/AAB9C1592AA4D5B886257483007CFF19
I am using an PXI embedded controller (NI PXI-8196) which has my OS and VI installed on it.
ALso when I select my port and go to Tools»NI-CAN»RT Hardware Configuration. I only get one window which pops up not the two as listed in the instructions. Unfortunately the only one that pops up is the window requesting the Machine Name or IP Address.
Any additional help you could provide me on the initial set up would be appreciated.
11-07-2011 02:59 PM
Hi,
The second window will pop open once you enter your machine name or IP address of the machine. You should be able to get this information by selecting your PXI controller under Remote Systems and an IP Address will be shown in the pane on the right.
11-07-2011 03:22 PM
Hmm
MY PXI chassis doesn't seem to have anything under remote systems.
I have attached a Screen dump of what it is I am dealing with.
11-07-2011 03:39 PM
I apologize, I misunderstood your setup. I thought you were attempting to run your PXI system as a real time target. I went back and reviewed our previous posts and by all accounts, the CAN Receive.vi should have worked for you. Are you sure that there were frames being sent to your PXI card? Also, this cable that you're using, is this a custom cable? Have you verified that your cable is properly terminated with 120 ohm resistors on both ends?
11-08-2011 06:53 AM
Hey thanks for the help!
The CAN receive vi did work. I was able to send and receive signals from all 4 of my CAN ports.
The cable length I am using is so short (less the 20 cm) I did not think it needed to be terminated. If it does can you send me the pin outs to add the 120 ohm resistor?
My basic set up is I have a vector CAN box which I am able to send and receive CAN messages to and from an ECM. These signals change the rotation of a electric motor.
What I am trying to accomplish is to be able to monitor these signals from my PXI chassis and send signals from my PXI set up to my ECM.
11-08-2011 07:38 AM
Please disregard the previous message.
I am using a terminated CAN cable and I was not able to get the CAN recieve program to work.
Is there a particular baud rate I should set this to?