LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read and display a signal from my a miccrontroller (MCB1700) onto labview connected via a CAN port on a PXI machine

Solved!
Go to solution

Is your target PXI a real-time machine?

I'm afraid I don't have enough experience with that remote configuration to know how to troubleshoot it.

 

If you can log on locally to the PXI which has the CAN card, you should be able to run the Bus Monitor directly.

 

If your target PXI is a RT machine, you should be able to modify the CAN Receive.vi to put outputs into a Network shared variable.

 

 

0 Kudos
Message 11 of 24
(802 Views)

Yes, its a real time machine.

 

Any idea on how to modify the CAN Receive.vi to put outputs into a Network shared variable?

0 Kudos
Message 12 of 24
(798 Views)

Been a while since I've worked with RT so I'm doing a little guessing from memory.

 

Replace the BaudRate and interface controls with constants.

 

In your RT Project, Add a variable to replace the Output Array 2.  Making the datatype variant should work and then your host.vi would be responsible for extracting the array back to the Output Array 2 format.

 

Build, Deploy your vi and shared variables.  Your host.vi should then poll the shared variable for display.

 

0 Kudos
Message 13 of 24
(795 Views)

How do you do all of that?

0 Kudos
Message 14 of 24
(784 Views)

Unfortunately, I'm very rusty with my RT knowledge.

 

This console viewer looks promising for debugging:

RT Console Viewer

 

My limited knowledge of RT was obtained here:

Getting Started with RT

 

The getting started document should have details of how to use Network Shared variables.

0 Kudos
Message 15 of 24
(781 Views)

Because you are using LabVIEW 2k11 and Windows 7, you will need to upgrade your NI-CAN drivers first.  2.7.3 is the first version that will support the new LV and Windows 7.

Start with that and then I think you'll be able to get farther on these steps

 

http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:du,n13:hardwareDriver...

0 Kudos
Message 16 of 24
(766 Views)

I upgraded the NI-CAN drivers to 2.7.3 but i am still not able to see the option where i can select a channel and launch the bus monitor on MAX. What might be wrong?

 

I am just worndering, does  VISA Test Panel serves the same purpose as the Bus monitor on MAX?

 

Please help.

0 Kudos
Message 17 of 24
(757 Views)

Hello fhaljauf,

 

You will also need to install NI-CAN on your PXI chassis. Did you do that as well?

 

Colden
0 Kudos
Message 18 of 24
(747 Views)

Yes i did. 

 

I was just wondering, is the bus monitor something that needs to be installed as well. If so, can you please point me to the link where i can install it.

 

Also, what is the appropriate VI that i should use when creating a project to get access to the CAN ports?

 

Thanks

0 Kudos
Message 19 of 24
(743 Views)

If you search NI.com for "CAN Bus Monitor", there are alot of resources that come up:

 

http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/q/CAN%20bus%20monitor/

 

Can I use Bus Monitor with RT system ::: http://digital.ni.com/public.nsf/allkb/6AF3AA9CE79365E386256F9E007E8CE9

Can I use BM with 2-port CAN::: http://digital.ni.com/public.nsf/allkb/257368380A4EE1FC86256C1B006E5F2A

 

 

Beyond that, you need to use the NI-CAN driver in LabVIEW to work with your card and get access to the channels etc.  As with most NI drivers, you typically open a reference to the card, and then extract the channels etc.  Check out the example finder in LabVIEW

0 Kudos
Message 20 of 24
(739 Views)