07-20-2009 04:17 AM
Hello,
I am novice so I do some tests to send messages with the example : CAN trasmit periodic, and to receive messages with the Channel Monitor, so I want to use this two VIs in my program but there is an error because I can't use the two examples at the same time...
How can I proceed to use this two example in my program? There is an other solution to read and write in the same time (I use a database .dbc)?
Bye
07-21-2009 05:02 AM
Hi,
CAN transmit periodic is for FPGA and channel monitor is for PC card. It's two differents targets so you can run them in same times.
Can you explain what to do you want to do?
Regards,
Aurélien J.
National Instruments France
07-21-2009 07:34 AM
Ah...ok because I have modified the can transmit periodic to send my own messages, I have created messages like in my database and I want to see my messages with channel monitor.
I have created this messages with the example of CAN transmit periodic because I haven't find an example to create messages with a database, only to read this with Channel Monitor.vi...
My aim it's to create a VI which permit me to send multiple messages on the CAN and which permit to see the messages transmit, I wan't to send and receive messages on the same port.
The best solution I think it's to have two screens one with my database and the messages that I want send on the CAN which I can choose the messages with (add/delete) and modified the attributes of my messages (like motor speed, etc...), and an other screen like the channel monitor where i can see the messages transmit on my CAN bus.
07-21-2009 09:44 AM
I'm sorry for my mistake but CAN transmit periodic exist in two version, one for FPGA and other for PC card. I didn't see the second one.
You can monitor your CAN bus with NI-CAN BusMonitor: How Can I Monitor the NI-CAN Bus?
Regards,
Aurélien J.
National Instruments France
07-21-2009 09:55 AM
07-22-2009 03:42 AM
Hi,
Unfortunately it's impossible to read and write in the same time on the CAN bus, you need of two port one to write and the other to read.
Regards,
Aurélien J.
National Instruments France
07-23-2009 03:09 AM
ok... In fact I don't want to write and read at the same time but write OR read on the same port, I don't know if it's the same problem...
I have found an example in Labview database :CAN>>API frame>> "Transmit receive same Port" but I haven't be able to have a good result with this VI yet...I have a problem I will try to solve it now