Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

ORing the arbitration ID in a cluster in Write Net Multi

Solved!
Go to solution

I am using Frame API CAN, and would like to write several messages to my device.  The trouble I am having is my arbitration ID, it needs to be 29 bit instead of 11.  I know that I need to OR it, but how do you go about this when it is in a cluster.  Please feel free to look at my code in the attactchment.  Thanks

Fred

0 Kudos
Message 1 of 9
(8,238 Views)
Solution
Accepted by topic author wana be prog

You could set the 30th bit manually or use the unbundle function to do it pragmatically. See the modified example for more information.

 

DirkW

 

 

0 Kudos
Message 2 of 9
(8,228 Views)

Hmm, I tried the unbundled method and it gave me a wiring error, when I did this before posting the original message.  But I realize what I had done, I had just added a wire going to the unbundle, instead of going to the unbundle, re-bundling and wiring back to the write function!   Thanks, I appreciate your help.  Fred

0 Kudos
Message 3 of 9
(8,224 Views)

Hi DirkW!!

 

I have PXI CAN card 8164  in RT and I try writ with VI frame and I use the VI like this:

 

But I can't read nothing, with this VI suppose I can Transmit and Receive for the same port but I haven't nothing, You Know Why?

 

Thanks

 

Best Regards

 

Please Help me!!!!

 

 

 

 

 

 

 

0 Kudos
Message 4 of 9
(7,910 Views)

Hi Kaliman,

Do you receive an error when you try to run this program, or does it just return no information? Also, I can’t find any information on a product 8164, can you double check that number? Thanks,

Matt
Matt
Applications Engineer
National Instruments
0 Kudos
Message 5 of 9
(7,885 Views)
Sorry the Can Card is 8464, and when I run the VI no return Information, and not out error's just run the VI without error that show me and not return information 
0 Kudos
Message 6 of 9
(7,875 Views)

I am attempting the same function (read/write) using extended ID and 8461 card.

 

Have you double checked your baud rate? I'm using 250000.

 

I can read the CAN bus fine; however, I cannot see the data I'm requesting using the write command.

 

 

0 Kudos
Message 7 of 9
(7,859 Views)
I fixed my vi by setting the Standard Comparator and Extended Comparator to CFFFFFFF on CAN Netwrof Interface Config.
0 Kudos
Message 8 of 9
(7,858 Views)
Thanks, Please, you say me that fix you VI in Setting, can you tell me where exactly,
0 Kudos
Message 9 of 9
(7,844 Views)