XNET CAN filtering based on payload information of different frames

Dear all,
The CAN frames I recieve per cycle are with the following identifiers: 
[1 frame] 513 (Radar status- range, elevation, target type)
[1 frame]1536 (Target status - No of targets near field from byte 1 and No of targets far field from byte 2)
Followed by 96 message pairs of which 1-32 pairs are for near field and 33-96 are for far field.
1793 (Target Info 1)
1794 (Target Info 2)
For the filter, I need to to identify the 1536 frame first and read byte 1 and byte 2 which gives me information about the number near and far targets respectively. 
Then I need to pick (equal to byte1) number of message pairs from the first 32 pairs and retrieve sigals from that; and then pick (equal to byte2) number of message pairs from then next 64 message pairs and retrive signals. 
As this plots only the targets that are valuable. I am also looking to create more efficient projects that can be scaled to multiple radars. Any tips for efficient documentation would be much appreciated.
Kind Regards,
Red
Attachments:
MainRadar.vi ‏129 KB
radar-.dbc files.zip ‏5 KB

Hello Red,
I saw your code. you need do some modifications.
1. your using STOP vi in ForLoop. when it's true then it will stop your main VI completely. It's like abort button. Instead of that right click on forloop and select Stop terminal.
2. your passing two index arrays to Forloop (CAN Frames & Search ID Array). if your giving like this, it will always executes based on least array index. So suppose you have 100 frames then it will runs up to 7 times (because your array have 7 elements)
3. why are taking index from foorloop and again using other loop with Shift registers?  you can take last value directly from your 1st FoorLoop. Right click on the Tunnel and Select Last element.
4. In your VI, your always clearing your XNET reference. Suppose CAN Frame is not present in next iteration then it wont take previous value. it will give you default value (max- 0)
Munna

Similar Messages

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Alert Configuration  in PI 7.31 using SOLMAN based on Payload

    Hello Experts,
    We have created alert configuration in PI which will be consumed by SOLMAN and alerts will be triggered to respective recipients based on alert rules.
    The alert rules are created using standard configuration objects in NWA. Everything is good up to now, But the issue we have here is as follow:
    We have interfaces segregated based on country wise so the configuration objects will be different for which alert rules are created without any issues.
    But for some countries for which interfaces are developed by re-using the existing PI objects, the problem starts here for us:
    Since the configuration PI objects are same, we are not able to segregate here the alert rules using config objects resulting the only common alert rule for all these countries.
    In this case, alerts will be routed to all these countries whenever there is an alert generated. Obviously it is not the best way to proceed. But there will be difference in payload of message based on country .
    Hope my issue is clear to you
    Is there any way to set these alert rules based on payload information rather than config objects of PI.
    Please help me to achieve this ..your help is much appreciated.
    Thanks,
    Venkat

    Hi,
    XPI Service: AII Config Service
    - com.sap.aii.rwb.server.centralmonitoring.r3.ashost
    - com.sap.aii.rwb.server.centralmonitoring.r3.sysnr
    are set as expected but still there is problem.

  • Transmit payload NI-XNET CAN

    Hi guys, Im using a NI-XNET can PCI device. How to transmit a payload on the bus?
    Solved!
    Go to Solution.

    Hello JoVMo,
    You can use the XNET Write (Frame CAN).vi
    More information concerning the VI you find on the following link: http://www.ni.com/pdf/manuals/372840a.pdf (see page 216/848 or Chapter 4: 173)
    Extra information concerning the  NI-XNET API, you can find here: http://zone.ni.com/devzone/cda/tut/p/id/12375
    Kind regards,
    Nico

  • Change payload NI-XNET CAN

    HI,
    I am trying to perform some CAN communication with NI-XNET at the frame level.  I have started with the CAN Frame Input Single Point.vi and CAN Frame Output Single Point.vi examples that came with NI-XNET.  I would like to be able to change the payload of the frame to be written in the output vi  (i.e. have it not be controled by a human on the front screen) but have been unable to find a way to write the payload attribute in the XNET Frame CAN typedef.  I have tried to recreate this cluster on my own to no avail.  If anyone could point me in the correct general direction it would be much appreciated.  
    Thanks in advance,
    Kevin

    Hey Kevin,
    Are you sending a frame from a frame list that you created in a database?  Are you using a temporary database in memory?  If you have a framelist in a database that has the payload predefined, I'm not sure that you can change the cluster definition programmatically.  If you were to open up the XNET Database Editor, you should be able to manually specify the format of the cluster being passed, including the payload lenght.  In addition, if you set the database as the :memory: including the colons, you can configure the cluster to be whatever you would like from the front panel.
    Does this answer your question?  Are you just trying to change the payload length of a frame, or is there more to it than just that?
    Ben N.
    Applications Engineering
    Certified LabVIEW Developer

  • Can I get the URL information in a Link?

    I am using Acrobat XI Professional and Word 2013 running under Windows 8.
    I want to create hyperlinks in my document using Word 2013. When Word 2013 generates a PDF version of the document, it reproduces the hyperlink save for the ‘#’ symbol – it replaces the ‘#’ symbol with ‘%23’.
    Consider the Word 2013 document http://www.aespen.ca/AETests/HyperlinkTestNumber1.docx.
    Consider its PDF version: http://www.aespen.ca/AETests/HyerlinkTestNumber1.pdf.
    The hyperlink works in Word 2013. However, when I click on the hyperlink or the URL on the PDF version of the document in Acrobat, Acrobat launches IE (my web browser) using the URL with the ‘%23’ symbol, and the web server says that it cannot find the file (HTTP 404 file not found).
    To mitigate the task of manually changing the ‘%23’ back to ‘#’ in Acrobat, I wanted to use JavaScript to change the links. Unfortunately, it looks like the Link object does not provide a way to “read” the URL associated with the link (Adobe, 2007).
    Is it possible to find the URL or ‘cPath’ in the Link so that I can replace the URL or ‘cPath’ of the link or create a new Link based on the information on the existing link?
    Is this is related to the notes about the ‘#’ symbol on the last page of the document on parameters for opening PDF files (Adobe, 2008)?
    References
    Adobe Systems Incorporated. (2007). Adobe Acrobat SDK 8.1 JavaScript for Acrobat API Reference for Microsoft Windows and Mac OS. [Edition 2.0]. Retrieved on March 8, 2010 from http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_r eference.pdf.
    Adobe Systems Incorporated. (2008). Adobe Acrobat SDK 9.0 Parameters for Opening PDF Files for Microsfot Windows, Mac OS and UNIX. [Edition 2.0].

    The only properties and methods for the Link object are listed in the Acrobat JS API Reference you linked to. JavaScript can set a link action, but once set it is not retrievable by JS.
    You should be able to write an plug-in with that could be added to a user's system to access this data.

  • Sorting incoming files based on payload content

    Hi,
      I have a file>XI-> FILE scenario...I need to sort the incoming file based on payload content...But my understanding is in XI each line item would be processed one at a time...Is it possible to sort the entire file before beginning to process???
    -Ken

    Hi Ken,
    you can try to create generic content sorting with java mapping:
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
    Regards,
    michal

  • How to retrieve updated payload information from completed HumanTask

    after initiating the HumanTask , updating the payload object from java client api
    payload information set into task object.
    taskService.updateTaskOutcome(workflowContext, task, outcome) ;
    after this call the HumanTask will be Completed.
    Now i tried to get the Payload which was updated in earlier step.
    Task task=taskQueryService.getTaskDetailsByNumber(workflowContext, taskNumber);
    XMLElement payload =(XMLElement)task.getPayloadAsElement();
    in the payload, it only contains payload which was at the time of humanTask initiation .
    Can any one help me, how to retrieve the payload information after completing the HumanTask ?
    Thanks in Advance

    I think the below code can be used to update the payload in the HumanTask
    IWorkflowServiceClient wfSvc=WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              //instantiate the TaskQueryService Object
              ITaskQueryService taskQuerySvc=wfSvc.getTaskQueryService();
              //instantiate the TaskService Object. it has the UpdateOutcome method
              ITaskService taskSvc=wfSvc.getTaskService();
              final String password="jcooper";
              final int taskNumber=123;
              try {
                   //get WorkflowContext
                   IWorkflowContext context=taskQuerySvc.authenticate("jcooper",password.toCharArray(), "jazn");
                   Task task=taskQuerySvc.getTaskDetailsByNumber(context, taskNumber);
                   Element element=task.getPayloadAsElement();
                   Element payloadNew=element.getOwnerDocument().createElementNS("http://xmlns.oracle.com/bpel/workflow/task", "payload");
                   JAXBContext jaxbContext=JAXBContext.newInstance("object.path");
                   Marshaller marshaller=jaxbContext.createMarshaller();
                   //new Object() is your Object which you want to update in Process payload
                   marshaller.marshal(new Object(), payloadNew);
                   task.setPayloadAsElement(payloadNew);
                   //update task payload
                   taskSvc.updateTaskOutcome(context, task, "APPROVE");
              } catch (WorkflowException e) {
                   e.printStackTrace();
              } catch (JAXBException e) {
                   e.printStackTrace();
              } catch (StaleObjectException e) {
                   e.printStackTrace();
    Edited by: user12267906 on Nov 28, 2009 7:43 AM

  • Splitting large message (60MB) based on payload data

    Hi,
    I have a file (Flat) to file (xml) scenario. The source flat file is being read by FCC. Since the source flat file is large (upto 60MB) so I have to split it into small files then I have applied "recordset per messages" in FCC level to split large file into small ones. But the clients requirement is to split the large document based on payload data (that is DeliveryDate). That means I cannt split the message based on number of rows of flat file instead I have to split the file on the basis of DeliveryDate so that after splitting into small files, each small file should contain data for exactly one date (say in one file data for 15th NOV and in another file data for 16NOV and so on).
    Please suggest some solution to split the large file (60MB) based on payload data(DeliveryDate).
    Br,
    Madan Agrawal

    Hi Madan,
    in this case split the message in to different messages like 2 mb file,
    XI doesn't support 60 mb files, U have to split the flat files based one some condition.
    i have same requirement flat file having huge data i split that data using java map.]
    then i processed its work fine for me.
    I think u can also do it,
    But in my case i divided message based on sequence number uniquenumber to diffentiate data.
    if there is any sequence number split the message .
    Regards,
    Raj

  • How can I get CDP neighbor information from access point reports in Cisco Prime 2.0

    How can I get CDP neighbor information from access point reports in Cisco Prime 2.0?  I have looked through all the reports and I cannot find a report that gives me the CDP neighbor information of an access point.  I thought that information was in there, however I cannot seem to find it.
    Thanks in advance!

    Hi
    You can get this from an inventory report in PI (Select Report Type AP). Here is an example of PI 2.1 works for me. Once you export this into excel you can sort based on controllers & filter the single controller connected AP you want.
    Regards
    Rasika
    **** Pls rate all useful responses ****

  • Create a matmas idoc based on PIR information

    Hello friends,
    can you please help me on the following points please :-) ?
    I need to create matmas idocs and these idocs should be sent on a web portal identified on our SAP system as a logical system. The vendors will have access only to the materials they supply. For this reason, I need to send in the matmas the GLN code corresponding to the vendor for which we have created a purchase information record. This way, on the web portal the display of matmas information will be organised according to GLN codes.
    Question :
    how can we create the MATMAS idocs according to purchase information records? I mean how can I create matmas idocs selecting the materials supplied by specific vendors???
    is there any standard way to do it on SAP? or has it got to be done a specific way. and if so, do you have any idea on how to do it?
    Thanks in advance for your very precious help,
    Kind regards,
    Karenn

    are you thinking about manual creation in BD10, or something automatic?
    BD10 has the standard F4 material search help.
    If you need to do it regular and manually, then you may consider creation of a new included search help where you can search based on info records.

  • Payload information for a service is not avaialable in BTM

    Hi All,
    I am working on BTM 12.1.0.3. I have installed BTM and all my services are getting discovered when I am sending some traffic to them. When I select the particular service in Explorer-->Services to Endpoints I get an entry of my service. When I click on the service I get the details displayed in the lower pane. In the lower pane there is a tab Message Log. When I click on the Message Log tab I get the transactions with the ECID and when I click the search icon(magnifying glass) for a particular row I am not getting any request or response xml but I am getting an information *"no content captured".
    For this I guess I have to create transaction first. So I wanted to create a transaction with Message content logging on selected operation enabled. But when I check this checkbox it asks me to select atleast one operation. Here I am not understanding that from where I can select an operation. Just below this property there is a table but this table is not enabled also it contains nothing. Should this table needs to be populated and we have to select an operation from this table and then check the property? But why this table is not enabled( its is faded) and most importatnly contains nothing.
    Can anyone please tell me what can be the issue. Why I am getting this message and not the payload information.
    Thanks in Advance!!
    Edited by: Roshni Shankar on Jan 15, 2013 3:16 AM

    When you enable logging on a particular operation, BTM would then capture your message payload that would pass that operation during the transaction run and then you will be able to search for messages from the message search tool.
    I am not understanding what you are trying to say by "Here I am not understanding that from where I can select an operation. Just below this property there is a table but this table is not enabled also it contains nothing. ". If your transaction has one or more services, than you should see atleast one operation in this table, which you are seeing as blank. Can you upload a screenshot?

  • Automating video filters based on audio changes?

    Hello,
    I'm wondering if there is a non-manual way to automate the parameters of video filters based on increases and decreases in audio track
    I'm aware that filter parameters can be modified by hand using keyframes and curves, I'm just wondering if there is someway to have the software make these modifications based on changes in an audio track (or any other parameter).
    Thanks,
    T

    You need Motion …
    Here demo Mark&Steve, how audio manipulates a text.
    https://youtu.be/m7WTBbx9VNI
    You'll find many mor, all demo, how audio can be used to manipulate other values of objects.

  • I just pressed the wrong button to erase of my IMac, how can I get back all information from my computer ?

    I just pressed the wrong button to erase of my iMac, how can i get back all information ?

    Possibly through a data rescue service (can cost a four-figure amount) if you didn't have an external backup.
    But you must stop using that Mac immediately, or your data will be over-written.

  • How can I share my schedule information with my wife on her accounts and devices?

    My wife and I have separate accounts in our MacMini and MacBook.  We each have an iPhone.  She uses GMail.  I use Mac Mail.  How can I share my schedule information with my wife on her accounts and devices?

    It is not advisable to follow the above suggested method. The following will do what you want without complications.
    1. On your Mac, go to http://help.apple.com/icloud/#mm6b1a9479 and follow the instructions to share a calendar privately. If you have more than one calendar you want to share you will have to do each individually. You can choose whether she is able to edit it or whether it should be read-only.
    2. If your wife does not have an iCloud account she will need to obtain one. When you share a calendar and nominate her to access it she will receive and email. All she has to do is to open the email and click 'Join Calendar'. This will add the calendar to her Calendar app on all devices and on icloud.com without affecting any other data. Again, this will have to be done individually if more than one calendar is involved.

Maybe you are looking for

  • Mac shuts down

    I had trouble a few months ago with my mac shutting down or going into sleep mode. Several people gave great advice on things to delete in finder (like cookies and some other things). I need to do this cleanup again but my thread won't come up on my

  • There should be a tv app made by apple for people to hook up their cable network and watch tv

    People could put their cable network on their ios device and be able to watch on air and free recorder tv. There will be no charge to apple and no extra charge to the cable provider. When people buy or rent movies, apple will make some money and the

  • Unable to extend the table space

    Hi Experts When i am extending the table space i am getting this error BR1059E Not enough free space in /oracle/SHD/sapdata3/sr3700_20 for maximum size of file /oracle/SHD/sapdata3/sr3700_20/sr3700.data20, missing at least 491.556 MB but when i check

  • Address Book Distribution List - Multi Selection

    In sending email to all members of a Smart Group, I need to send to more than one address per vCard (e.g. home AND work email, or his AND her address) But Edit Distribution List won't allow multiple selections. Is there a work around?

  • How to use iPad in a Spanish Classroom?

    Hello, My mom is a high school Spanish teacher and is thinking about getting an iPad for her to use in her classroom. Since it is a significant investment in a device, I would like to know the most useful ways that she might be able to use it to teac