LV: Sending 'sync' to get synchronous acquisition of CDN

Hello @ all

First of all: my knowledge on the bus CAN generally is not very good, so excuse a description of the possible problem.

My task is to read the devices CAN messages. This works very well for devices that send their messages 'stand alone' with a fixed repetition rate (here: 100 Hz).

But other devices do not send their messages with such a high repeat rate. They send their message only until they come in an overflow (here: after 150ms). I ve heard that I send a message "sync" for devices to get their message across. This means that I have to send the message of synchronization with the 100 Hz for the acquisition of 100 Hz.

My question: How can I have to set such a two-way CAN transfer? Of course, I can send a synchronization message and read the reply. But what it takes when I want to read for example 10000 messages? I Don t want to trigger it by software because of the accuracy of the timer.

What should I just start "CAN read.vi" and the parallel of "CAN write.vi"? Or is it possible to start the write.vi and the read.vi at a time determined, to obtain two parallel functions?

Tanks so far.

Advertisement

Hi LittleJoe198,

I'm not quite sure what exactly is the problem. I only know "sync messages" in the context of CANopen. But your question indicates that you are using the API of frame. Maybe you mean sending frames remotely?

You could use the CAN objects to transmit data periodically using material timing (only supported on PXI/PCI/PCMCIA-CAN cards). Take a look in the example finder LabVIEW (hardware category of entry and exit > CAN > frame API > base), "CAN transmit - periodic.vi.

It is not a problem sending and receiving on the same port, see example 'send receive same Port.vi. "

You should also take a look at the manual CAN Hardware and Software (START > programs > National Instruments > NI-CAN).

What kind of material CAN do you use?

Let me know if you have any other questions.

Kind regards

Tags: NI Products

Similar Questions

Maybe you are looking for

  • Satellite Pro A10 - question memory & overall sluggishness

    Two questions really, even if they may be related. 1. I have an A10 (XP / IT with a Celeron 2.2GHz processor & 256 MB installed RAM) that runs now very slowly - extremely laborious. Do all the usual things (defragmented, spyware scanning, virus scann

  • Devices USB freeze intermittently. force restart 2 - 3 times a day

    I have a HP Pavillion a6827c desktop who developed problems with USB 2.0 devices.  There are four rear ports and two front.  I got a 10 port AC powered USB hub a few months ago plugged everything in, then connected on one of the ports on the back wit

  • 10.3 Q10 and 10.3.1 Classic HELP

    (1) where the documentation clear and understandable for managing an application through several API and device updates? (2) is it possible to classic on Dev C using an automatic charger to test/fake? (3) what are the resolution, differences in size

  • On the presentation telepresence Codec provides 30 FPS

    Cisco document said "a codec of presentation allow you to display 30 frames per second for presentations. I accumulate a CTS 1300 with the codec of the presentation to a client.  While when I introduce PPT to an external monitor through presentation

  • System resered don't defrag

    Why not system reserved defrag?