Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert one frame with two signals in the Mux Frame Signal Conversion Example.vi Version 8

I have a specialized circuit board that communicates over a CAN bus. I am using the Peak USB to CAN device and I can see the frames coming off the Bus. in LabVIEW (2019). Some of the Frames have a Mux signal.

Screen Shot 2022-10-26 at 7.59.14 PM.png

 I have created a VI That reads the CAN frames then converts them to the Cluster format that the XNET sample vi expects.

Screen Shot 2022-10-31 at 9.55.35 PM.png

 When I feed these Clusters into the MUX Frame Signal Conversion Example.vi Version 8, I do not see any conversions happening. I have modified the sample VI so that it will process the live CAN frames. There is one frame that I thought should process easily. It is AFE_Temperatures, ID 78005x that has two signals, Temp_Bridge and Temp_Inductors, 16 bits each.

Here is the frame in the New NI DB Editor:

Screen Shot 2022-11-11 at 1.52.15 PM.png

 My VI's and the database file are attached. There are some VI's made for the Peak adapter that will be missing so here is also a screen capture of the RCV & Decode CAN.vi.

 

If anyone can help, I would be grateful.

0 Kudos
Message 1 of 2
(1,358 Views)

I'm not sure why it isn't working for you, but your DBC is able to do the conversion just fine.  I took the Version 8 example code posted, then told it to use your DBC, and set the signals to Receive at the Tester, as Temp_Bridge, and Temp_Inductors.  I then had to update the second constant to have the same value for what signals to write.  Then I ran the VI and it first did the signal conversion to frame, then converted the frame back just fine.

 

CAN Conversion.png

0 Kudos
Message 2 of 2
(1,319 Views)