Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Pbs to read and write messages on the same port

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

0 Kudos
Message 1 of 7
(7,313 Views)

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,

0 Kudos
Message 2 of 7
(7,303 Views)

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.

0 Kudos
Message 3 of 7
(7,300 Views)

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,

0 Kudos
Message 4 of 7
(7,296 Views)
Yes but it's to create a .exe and I want to use data from the database in a program labview.
0 Kudos
Message 5 of 7
(7,294 Views)

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,

0 Kudos
Message 6 of 7
(7,277 Views)

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

0 Kudos
Message 7 of 7
(7,268 Views)