PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-8464 Can Test Panel

Solved!
Go to solution

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.

Tim
0 Kudos
Message 1 of 31
(5,386 Views)

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,

Applications Engineer
National Instruments
0 Kudos
Message 2 of 31
(5,370 Views)

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?

 

 

 

Tim
0 Kudos
Message 3 of 31
(5,360 Views)

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.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 31
(5,356 Views)

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.

Tim
0 Kudos
Message 5 of 31
(5,353 Views)

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.

Applications Engineer
National Instruments
0 Kudos
Message 6 of 31
(5,350 Views)

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.

 

Tim
0 Kudos
Message 7 of 31
(5,348 Views)

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?

Applications Engineer
National Instruments
0 Kudos
Message 8 of 31
(5,344 Views)

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.

 

 

Tim
0 Kudos
Message 9 of 31
(5,340 Views)

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? 

Tim
0 Kudos
Message 10 of 31
(5,338 Views)