12-10-2014 08:12 AM
Hello,
I would like to know whether is possible to access a CAN database, which is uploaded through MAX, in labview.
More specifically, I have uploaded my CAN database in MAX and I want to have access to each specific channel in labview.
i.e according to picture, I would like to have access to n_Motor_InsRpm channel of E1_L0_1 (motor speed) in Labview, so I can set and transmit a speed value through CAN. Could that be possible with NI USB 8473 s? If yes, is there any simple example in Labview ?
Thanks for your Help
Charis
Solved! Go to Solution.
12-10-2014 08:16 AM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-10-2014 08:31 AM
Thnks for your prompt reply.
Yes I searched the example finder but it seems that my hardware support only Frame API.
I tried to run "Channel Monitor" example but when I execute the program I get an error. I suppose the only way is to go with FrameAPI and do my job according to the bits positionof each channel in the frame. Am I correct?
Regards
Charis
12-10-2014 08:34 AM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-10-2014 08:51 AM
Thnks for that. However, I need the specific hardware (NI USB 8473s) to send the CAN message to the rotor. My question is whether I can do that in a more easy way rather than working with frames.
i.e I want to access the channel speed from my database, set a value to speed and transmit it through CAN hardware device to the rotor.
12-10-2014 08:53 AM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-11-2014 03:39 AM
Thnk you very much regarding your example. It is really helpful.
I have also another one question regarding this example. Is there any way to convert the frame data and more specifically the payload part of the frame intto 1D array of CAN data (unsigned byte) so to be compatible with my program?
Kind regards
Charis
12-11-2014 10:14 AM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-11-2014 10:23 AM
I tried that before but it didn't work. I had to convert it from an array to cluster and then unbundled it. Now it's working!
Thanks for your help
12-11-2014 01:32 PM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord