LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

transmitting a CAN ID

Solved!
Go to solution

I am trying to transmitt a CAN ID with some data using the attached vi.

 

The ID and period work fine...but no matter what data I transmitt (ie. 10 10 10 FF FF FF 1 10)...all I get in the 'out MsgToTx' is 00 00 00 00 00 00 00 00

 

Can anybody please help?

 

Message to transmit example.jpg

 

CAN ID Tx.jpg

 

 

 

0 Kudos
Message 1 of 2
(2,421 Views)
Solution
Accepted by lab_user

Did you look at what you're doing here? You're getting the length of the DATA array, but completely ignoring the data in it.

 

I'm not sure what you were trying to achieve with the Min & Max function, but it looks like you could simplify and correct this VI by using "Reshape Array" instead of initializing an array and using array subset.

0 Kudos
Message 2 of 2
(2,404 Views)