Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Send and Read Data simultaneously on one CAN-ID with Labview 7.1?

Right now I can only send and read data separately, since I read data by using frame-messages and use channel-messages to write data on the bus.
Is there a way to do both reading and writing with using the same kind of message?

Reading and writing do also work with digital data only, but not with analogue data.

Are there any example-VIs showing the way it works?
0 Kudos
Message 1 of 7
(5,116 Views)
You can use NI-CAN frames to do both reading and writing together, just use 1 ncCANConfig to configure both tasks.
Take a look at the example.

dhuff
0 Kudos
Message 2 of 7
(5,097 Views)
that was weird, here is the file I wanted to attach.
Message 3 of 7
(5,094 Views)
Hello dhuff,

thanks for your quick response.
I will try that ASAP.

Best regards UoS
0 Kudos
Message 4 of 7
(5,091 Views)
Hi,

the VI you sent me works great with the digital modules I use in my application.

But since I also want to read and write analogue data as well, I use the CAN-Bus device DDC711 from SELECTRON. This provides both digital and analogue extensions.
From the manufacture I the got the information that I need to use different frames for digital and analogue data. Since they had no experiences in Labview all they could tell me was, that I need to use PDO1 for digital and PDO2 for analogue data.
But I couldn’t find anything about that in Labview.

Does anyone know what they mean by those types of frames and how I can select the proper one in Labview?

Thanks in advance

UoS
0 Kudos
Message 5 of 7
(5,053 Views)
OK those are CANopen frames they are talking about, you might want to look at the companies documents to see what messages to send. They labeled the frames and the data in the frames according to the standards of CANopen, but each manufacturer has some flexibility in defining data. I did a quick search and found their manual for what you are working on, you might want to start there. (http://www.selectron.ch/download/docs/manual/shb-canopen/e/04%20ChapDDC711.pdf)
There is also a few sites that might help, including the CAN mailing list (www.canlist.org) or the CANwiki FAQ site if you run into problems. (www.port.de/cgi-bin/CAN)
Message 6 of 7
(5,046 Views)
Thank you again!

I tried my luck with these sites and the mailing list. Now I got some new information and hope they will be helpful.


Best regards

UoS
0 Kudos
Message 7 of 7
(5,020 Views)