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

  • How to upload files to an ftp site?

    On Internet Explorer I can open an ftp with "File Explorer" site, and I can upload files to the site. However, on Firefox, I can't find this option. I need to upload files to an ftp for my work site, and Firefox does not allow me to do.

  • International warranty

    I just bought my laptop Sony Vaio in Germany for about 2 months.However, recently, I have a problem with font of my victory. To overcome it, I have to install my victory once again, and then I can use it successfully for several hours. I turn off my

  • Cannot wake up afer screen turned off by Power Saver on Tecra M5

    Tecra M5; XP SP2.Disabled screen saver.Toshiba power saver set to turn off the monitor after 10 minutes. Once off, I can't get the monitor to turn back.I tried different combinations of keys fn and function, but nothing helped. Only solution seems to

  • Partitioning of a M400 pannels for Linux

    After getting my Portege M400 working to my satisfaction on Windows, it's time to install Linux before I get bored! I booted from a Linux installation CD (Gentoo, to be precise) and outside of him take me a while to understand that the 2.6.17 simple

  • Watching movies downloaded offline connection but prompt for the password, any ideas?

    I'm watching films downloaded offline, but prompted for a password, when I enter it says it can not connect (since I'm offline) and won't let me watch my movie.