Discussions au sujet des autres produits NI

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

trace can messages

Hey people,

I have some problems to trace the canbus. I'am using the Canopen library.

 

First i use ni-spy but i'am not able to see data in an sdo or pdo. I only see f.e. ncRead(160891304, 16, "2..5..u..."). What should this mean? Is there an opportunity to get the message in hex-code?

 

The second think i tried is to use the ni can terminal from this site: http://www.labviewportal.eu/viewtopic.php?f=18&t=121 But i`m not able to get it work. I started the terminal and than my programm, but it didn't trace any message. Than i though i should use the button "open interface", but than i get an error message because the interface is initiated by my programm. Can someone explain how i use this terminal in the right way please?

 

Thanks for your help.

bexley

0 Compliments
Message 1 sur 3
3 177 Visites

Hi,

 

duplicate questions here.

 

Have you always problems with ni-spy or the Canopen library?

 

Regards

Message Edité par YannC le 06-15-2009 04:11 AM

Yann C.

France

0 Compliments
Message 2 sur 3
3 131 Visites

Hi,

 

with Canopen library i have no problem at the moment. NI Spy is my first time i use it and i can't analyze the content that it shows me. I can't see whether the message is TX or RX, the Cob-ID or the content of the Message.

 

My problem is that the engine i enable don't stands at the position that it has before the enable command. Between the engine and the Can-Bus is some ohter Hardware, i think it is called amplifier in english. The Support of the amplifier said that the problem could be a software problem, but i don't think that my programm will do this.

My programm only reads periodically the position of the engine and sends the enable command to the amplifier when i push the button.

The Support will have a Tracefile of the Can-bus when my programm runs, but the only Software or Hardware that i have for this is NI Spy.

 

I put my vi and a picture of the problem. Mayby someone can help and mayby my programm is even wrong and i initialize something wrong or in the wrong order.

 

thanks for the help

 

Regards bexley

 

ps: How can i put this thread in the english forum?

Tout télécharger
0 Compliments
Message 3 sur 3
3 124 Visites