NickC Posted October 9, 2014 Report Share Posted October 9, 2014 Hi, I need help to split the messages with the specific message id. As shown in attached pic(Untitled) When I sent a request to ECU I am getting the response with different message ids. Here I would like to display only particular message with particular byte only. Also attached Getmsg vi. Could you please some one help me in this. Thank you in advance. Quote Link to comment
hooovahh Posted October 9, 2014 Report Share Posted October 9, 2014 Using Intrepid hu? Well that Get Messages subVI returns an array of frames. It then goes through each frame one at a time. It does this by using the Auto Index feature of the for loop which pulls each frame one at a time. You can use the unbundle by name and you'll be able to pull out the ID which will be a U32. You can then wire a case structure around the concatenate string function, and wire your ID to the selector terminal. Then when your ID is equal to 0x180 perform the concatenate, and for all other values (Default) don't concatenate. If you are new to LabVIEW check out these free training links. NI Learning Center NI Getting Started -Hardware Basics -LabVEW Basics -DAQ Application Tutorials 3 Hour LabVIEW Introduction 6 Hour LabVIEW IntroductionSelf Paced training for studentsSelf Paced training beginner to advanced, SSP RequiredLabVIEW Wiki on Training 1 Quote Link to comment
NickC Posted October 9, 2014 Author Report Share Posted October 9, 2014 Thank you for the quick reply. Yeah I am using Intrepid. How to unbundle by name? Could you please help me. Quote Link to comment
hooovahh Posted October 9, 2014 Report Share Posted October 9, 2014 http://zone.ni.com/reference/en-XX/help/371361J-01/glang/unbundle_by_name/ Just search your palette for Unbundle By Name it is a very commonly used function to pull out data from a cluster which is what the frame is returned as. 1 Quote Link to comment
NickC Posted October 9, 2014 Author Report Share Posted October 9, 2014 Thank you, I will try. Quote Link to comment
NickC Posted October 10, 2014 Author Report Share Posted October 10, 2014 I am unable to do it. Could you please show in some picture where exactly I have to implement this. And I would you like display all messages in one place also based on the requirement I have to display particular message id with data, I need to compare the one of the byte with min and max values then display with pass or fail result. Quote Link to comment
hooovahh Posted October 10, 2014 Report Share Posted October 10, 2014 I will not be posting pictures. A picture is worth a thousand words, but a VI is worth a thousand pictures. Post the code not screen shots of the code. I realize this is some times difficult especially when all kinds of VIs for reading the messages are needed so I can understand why you didn't post the code in the first post. You have shown zero effort in trying anything other than running a pre-made example VI. How many of those training links did you go through? Please do yourself a favor and learn the basics by going through them. Attached is an example of some of the things I already have said to try. It looks at the ID and the payload and makes pass fail based on the rules described on the front panel. CAN Message Parsing.vi Quote Link to comment
NickC Posted October 10, 2014 Author Report Share Posted October 10, 2014 Thank you. I have gone through the some of the trainings that you have posted and I did some practical things but I am unable to make it. Yeah I can agree I should have tried more. Sorry for that. Quote Link to comment
NickC Posted October 10, 2014 Author Report Share Posted October 10, 2014 I have attached VI which I am trying to modify as per my requirement. NEO VI Example.llb Quote Link to comment
NickC Posted October 10, 2014 Author Report Share Posted October 10, 2014 After adding this VI is unable to communicate with the device. Could you please help and I do not want to display all the elements of spy message only data to be displayed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.