LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send set of CAN messages at different period

Hi,
 
I need to send periodic CAN messages on the CAN bus each with different period using PCMCIA NI-CAN card.
Periodic CAN messages can be sent using ncConfigCANObj.vi..but by using this i can able to set for only one id...
I need to set different period for different id..Is there any method to do this??
 
Regards
Meenatchi
0 Kudos
Message 1 of 3
(2,957 Views)
Howdy Meenatchi,

I'd like to first reference you to the CAN Transmit - periodic.vi example VI located in the NI Example Finder under Hardware Input and Output»CAN»Frame API»Basic. It demonstrates how to transmit periodic frames via CAN objects and can act as an excellent foundation to develop whatever application you have in mind.

Now to your question regarding how to configure more than one Arbitration ID using the ncConfigCANObj.vi...If I understand correctly in that you want to use ncConfigCANObj to configure more than one arbitration ID, then you could create an array of ObjName strings (i.e. Arbitration ID's) then auto-index that array through a For loop wrapped around ncConfigCANObj.

I've attached an image forum_various-CAN-periods.png illustrating this idea.




Message Edited by pBerg on 03-26-2008 10:28 AM
Warm regards,

pBerg
0 Kudos
Message 2 of 3
(2,932 Views)

Hi,

Thanks for ur reply.

I understood the image which u sent to me.The example which u sent to me tells us that how to configure multilple messages

with different period.I need a solution to how write different messages with different period.For example,i have write 2messages for 1s.

One message is having period of 200ms and other with the period of 100ms.How can i repeatatively write this messages?

Please Help in this

Regards

Meenatchi

0 Kudos
Message 3 of 3
(2,921 Views)