Need help for reading in parallel on the same interface and writing XNET

Hello. I need help to configure CAN interface to write and read from the same interface.

I use NI PXI-8513/2. I use CAN1 as interface.

My had TO send status messages CAN every 100ms. I have to read in order to return akntoowlege to keep DUT CAN interface happy and not make mistakes.

So, I want to open Strim Session and readall frames in the loop. At the same time, I need to be able to write in a frame HAD at the time...

I only need to read one picture at a time too, but since I know the ID, I can pull it from the stream.

What I'm confusing all is how to put in place the same CAN1 interface to be able to write and read in parallel.

I think I would get errors that interface is already in use.

Since I'm new to CAN, I was read and write only when necessary. But, sometimes I was getting errors on my messages. Sometimes I get message, sometimes miss me. But, when I run CAN test criminal as sniffer he sends and written every time. I was told it's because it recognizes all messages.

I opened to suggestions of how best to implement the interface.

I guess I can use CAN2 and separator to work around this problem, but I would use an interface if possible.

Thank you

Hi Rus,

The XNET hadrware takes care of most of the low level of detials for you. The reading and writing of the circuits are both connected to the bus at any time. When you write to the hardware it will try to put a frame on the bus at the first opportunity he can. If the frame loses arbitration material re - will attempt to send the frame up is successful. Reception equipment monitor activity on the bus, regardless of what it conveys. The material received will usually throw a framework that was sent by communication equipment, but there is an Echo property pass to circumvent this behavior too.

Take a look at the example of the expedition: MAY-> NI - XNET-> Sessions-> multiple Sessions Intro-> CAN even exit entry framework Port unique Point.vi. Keep in mind that this example you will need to use a second CAN interface to recognize frames, it transmits. I would recoment against the example CAN output Frame Single Point which would mimic your ECU if you choose a type of cyclic frame running this example.

Tags: NI Products

Similar Questions

  • Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the

    Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.

    Hello

    Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.

    Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.

    Thank you

  • I need help to unite 2 users on the same CC account, can someone help me?

    I need help to unite 2 users on the same CC account, can someone help me?

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <==> NOTE DAYS AND TIME

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Need help with this code to update the user interface example

    I'm triying to understand the differences between the three methods to manage UI interactions.
    I'm really confused with these three terms when triying them figure out in a real case.
    Basically, I know that I should use invokeLater, invokeAndWat, or getEventLock() to avoid
    This exception: java.lang.illegalStateException: engine access UI without holding the lock on the event

    The code below illustrates the function of the invokeAndWait method, but if I replace it with
    invokeLater or getEventLock() the program will work exactly the same way.
    Could you please change the code to show the differences between the three
    methods of updating the user interface?

    / public final class HelloWorldMainScreen extends form {}

    private LabelField labelField;
    public HelloWorldMainScreen() {}
    labelField = new LabelField ("Hello World");
    Add (labelField);
    Thread MainScreenUpdaterThread = new MainScreenUpdaterThread (this);
    thread. Start();
    }

    {} public void appendLabelText (String text)
    labelField.setText(labelField.getText()+"\n"+text);
    }

    }

    SerializableAttribute public class MainScreenUpdaterThread extends Thread {}
    HelloWorldMainScreen screen;

    public MainScreenUpdaterThread (screen HelloWorldMainScreen) {}
    this.mainScreen = screen;
    }

    public void run() {}
    for (int i = 0; i)< 10;="" i++)="">
    try {}
    Thread.Sleep (5000);
    } catch (InterruptedException ex) {};
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    mainScreen.appendLabelText ("Update");
    }
    });

    }
    }
    }

    These three concepts are very confusing for a lot from people so all explanatory source code
    describing their functions will be highly useful for everyone, I think.

    Thanks in advance!

    With respect to the effect, there is no difference between methods.  The difference is the way in which the result is achieved.  So we can't change the code to show you the difference.

    As we are unable to demonstrate the difference, you have to do with an explanation.  To understand the explanation, you'll need to understand the thread of events, so if you have not already, please consider this:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    If the three options are differentiated by the processing order:

    (a) invokeLater executes the update on the thread of events.  The transformation takes place at a later stage and the code which is in order after the invokeLater will actually run before the code within the invokeLater.

    (b) invokeAndWait also manages the update on the thread of events, which means that all other events that await on the thread of events will be run before this code.  But any code after the invokeAndWait will not be executed.

    (c) the synchronized option, like invokeAndWait, runs the update of the UI before moving on to the following code.  The difference is that the code to run on the event Thread is not executed before code in the synchronized block.

    If this is meaningless, so that probably does not matter too much.  in general, you should use invokeLater, except if you need to update the user interface occur in the order with your background processing.  If so, use invokeAndWait. It has synced are very few occasions where you must use the block, and it should be very small updates to the user interface and you should understand the implications this could have on the wire events.

  • Need help for error on N3024 after the easy Setup Wizard

    I feel that I am a rookie mistake, but I can't figure out what I did wrong.  Any thoughts on how to solve this conflict IP error?

    Thanks, Matt

    Make sure that the OOB is connected to a management network that is isolated from the network in the Strip.  They should not go in the same network.

  • Need help with creating a Package in the same way

    Hi all


    I have script for the file package. It's good work, but I need the package on the same path instead of on desktop with file name.

    As if the work of the file xyz.idd in D:\ Projects\Today\

    I need same location (D:\ Projects\Today\) with the name of the folder as file name (xyz)

    Can you change the code, I tried to change but it does not work.

    var to = new File ("~/Desktop/package_folder/");
    flag of the var = Folder (to) .create ();

    var copyingFonts = true;
    var copyingLinkedGraphics = true;
    var copyingProfiles = true;
    var updatingGraphics = true;
    var includingHiddenLayers = true;
    var ignorePreflightErrors = true;
    var creatingReport = true;
    var versionComments = 'comment ';
    var forceSave = true;

    If (flag = true) {}
    () app.activeDocument.packageForPrint
    TO
    copyingFonts,
    copyingLinkedGraphics,
    copyingProfiles,
    updatingGraphics,
    includingHiddenLayers,
    ignorePreflightErrors,
    creatingReport,
    versionComments,
    forceSave
    );
    }

    Thanks in advance

    Kind regards

    Siva

    myDocument var = app.activeDocument;
    var myDocName = myDocument.name;
    Temp=myDocName.replace(/\.indd/g,""); "
    var myFileNme = temp.toString ();
    var myDocument.filePath = myFolder.
    var to = new file (MyFolder + "/" + myFileNme + "/");
    flag of the var = Folder (to) .create ();
    var copyingFonts = true;
    var copyingLinkedGraphics = true;
    var copyingProfiles = true;
    var updatingGraphics = true;
    var includingHiddenLayers = true;
    var ignorePreflightErrors = true;
    var creatingReport = true;
    var versionComments = 'comment ';
    var forceSave = true;
    If (flag = true) {}
    () app.activeDocument.packageForPrint
    TO
    copyingFonts,
    copyingLinkedGraphics,
    copyingProfiles,
    updatingGraphics,
    includingHiddenLayers,
    ignorePreflightErrors,
    creatingReport,
    versionComments,
    forceSave
    );
    }

    Mi_D

  • Need help for VCP training after clearing the exam VCP510

    Hello

    I'm Kelly, I managed VCP510 review but not followed the VCP 5 ICM training. Now, I am registered for the training but need your help in this.

    How VMware will know that I passed the exam and how it will get the details of my training? (Is there a procedure while registering for training to provide details as Exam Centre marksheet, VCP ID etc.)

    Hope you understand my query

    Best regards

    Yoann

    After completing the training you will need to send an email [email protected] - this is one of my 'frequently asked questions' on my blog: http://vmwaretraining.blogspot.co.uk/2012/06/vcp-common-questions.html

  • I need help for my gradual removal, in the animation: how to add a link to your animation?

    I really want to know how to add the link to your animation.

    Well when I pass the mouse on my animation film, it stops and when I leave the animation continues... but what I want when the mouse over the animation, I want to click on the animation and get me a link.

    Here is my code and I'd really appreciate any help... Thank you very much in advance.

    function stopFade(event:MouseEvent)
    {
    Container.Stop ();
    }
    function resumeFade(event:MouseEvent)
    {
    Container.Play ();
    }
    function aller(event:MouseEvent)
    {
    getURL (www.google.com);
    }

    container.addEventListener (MouseEvent.MOUSE_OVER, stopFade);
    container.addEventListener (MouseEvent.CLICK, go);
    container.addEventListener (MouseEvent.MOUSE_OUT, resumeFade);

    You should learn how to use the Flash help documents.  If you are looking for the function that I said to use the answer for you (I'm not complaining, but try to help you to learn how to help yourself)

    navigateToURL (new URLRequest ("http://www.google.com"), '_self');

  • I need help, two bodies in motion at the same time

    I'm trying to create a code that will pass a minimap to where the user wants to in a game. As a test, I created a square and converted into a movie and baptized sq. Then I created another square and converted into a button and baptized BT. I also did bt bt sq half and place in the center of sq. I then created a code drag like this:

    sq.addEventListener (MouseEvent.MOUSE_DOWN, startDragging); Start dragging the squares by user
    sq.addEventListener (MouseEvent.MOUSE_UP, stopDragging); Stop dragging the place by user

    function stopDragging(evt:MouseEvent):void
    {
    sq.stopDrag ();

    BT.x = sq.x;
    BT.y = sq.y;

    That settles bt at sq(x,y) when the mouse button has been released

    }


    function startDragging(evt:MouseEvent):void
    {
    sq.startDrag ();
    BT.x = sq.x;
    BT.y = sq.y;

    That settles bt at sq(x,y) when the mouse button has been pushed down

    }

    I try to get sq and bt to place move, but as it is right now it jumps just from one place to the other.

    I tried to look for some sort of binding code in search help home, however, I'm not sure you want to look exactlly

    The mouseDown and mouseUp events are events of the unique action, so that the button will not change positions on the mouseDown or mouseUp events. If you add a mouseMove event listener, you can change the location of the button whenever the square moves. Alternatively, you can use an enterframe event to change the location of the button from the place. Try this code:

    sq.addEventListener (MouseEvent.MOUSE_DOWN, startDragging); Start dragging the squares by user

    sq.addEventListener (MouseEvent.MOUSE_UP, stopDragging); Stop dragging the place by user

    sq.addEventListener (MouseEvent.MOUSE_MOVE, dragButton);

    function stopDragging(evt:MouseEvent):void

    {

    sq.stopDrag ();

    }

    function startDragging(evt:MouseEvent):void

    {

    sq.startDrag ();

    }

    function dragButton(evt:MouseEvent):void {}

    BT.x = sq.x;

    BT.y = sq.y;

    }

  • JIT - ACM with two Instance of the Ethernet on the same interface Service

    Hi all

    I develop script of EEM for platform of ASR903... I would define VCA two, one for each 'host' connected to the same interface of ASR903 (GI 0/1).

    Each host sends CFM package, I will know which CVS the CFM package arrives. In the EEM scripting language, there are the following variable: $_ethernet_intf_name that can be used to retrieve the name of the interface. Is there another variable that can be used to recognize the VCA or is there any syslog message that conatins this information?

    CFM Ethernet ieee

    Ethernet global cfm

    field of Ethernet HOST1 level 2 cfm

    Service vlan301 evc301 evc vlan 1301 direction downwards

    continuity check

    !

    CFM Ethernet ieee

    Ethernet global cfm

    area of cfm Ethernet HOST2 level 3

    Service vlan301 evc302 evc vlan 1302 direction downwards

    continuity check

    !

    VCA evc301 Ethernet

    VCA evc302 Ethernet

    !

    interface GigabitEthernet0/1

    ink description to ASR - 903 by microwave

    no ip address

    load-interval 30

    auto negotiation

    Ethernet microwave hold sending 10 event

    Ethernet microwave wtr event 5

    Ethernet microwave-threshold of loss of 255 event

    !

    service instance 301 ethernet evc301

    encapsulation dot1q 301

    rewrite tag pop 1 symmetrical penetration

    Bridge-domain 301

    CFM mep field HOST1 mpid 101

    CFM encapsulation dot1q 301

    !

    service instance 302 ethernet evc302

    encapsulation dot1q 302

    rewrite tag pop 1 symmetrical penetration

    Bridge-domain 302

    mep field HOST2 mpid 102 cfm

    CFM encapsulation dot1q 302

    !

    Ah, ethernet OAM.  I've never used the detector of this event, so I don't know what capabilities are available.  I don't have a handy to test myself ASR903.  You can run the command "show event handler detector ethernet detail" to see what built-in variables are available to your EEM ethernet event policy.  You can also do "display event handler detector all ' to see all detectors of the event.  I hope you see something out there that specifies the VCA.

    If this isn't the case, you certainly could extract something like a syslog message if a message is generated that contains the name of EVC.  Still, I don't know what syslogs are generated, so you should test yourself.

  • Loading multiple files using the same interface in ODI

    Hi all

    We load multiple files using the same interface and get the error "java.sql.SQLException: ORA-00942: table or view does not exist" while inserting record in the staging table. It looks like the same temporary table is used when loading multiple files and the error. Grateful if someone offers a solution to avoid this error.
    We use the following KMS:

    (1) LKM SQL file
    (2) IKM Oracle SQL COMMAND append.

    Receive a quick response.

    Thank you
    RP

    Hello

    See this http://odiexperts.com/interface-parallel-execution-a-new-solution

    Thank you
    Fati

  • Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hey ihorl18351266,

    Please note that you can open PDF files using only the CD player. Any other format will not be supported by the software.

    Kind regards

    Ana Maria

  • I need help for activation of the real administrator account.

    I have a problem with Adobe reader 9 standard, Adobe customer service asked the unhide real administrator account before you can continue to help me.

    I need help for that.

    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    http://www.howtogeek.com/HOWTO/Windows-Vista/enable-the-hidden-administrator-account-on-Windows-Vista/

    Read the above info.

    See you soon. Mick Murphy - Microsoft partner

  • I need help for my reader to USB drive on my windows 10 ACER?

    I need help for my reader to USB stick on my chrome windows 10 plug ins acer. Can you help me?

    What Adobe application that you use?

    This is the Adobe Media Encoder forum, and you did not mention anything on this subject. If you can let us know what Adobe application, you need help, we can help you make the right forum.

    Thank you

    Regalo

  • I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages for only one comand I need all four messages to display at the same time in VISA SERIES READ BUFFER

    I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages of single command given to this instrument... and I read messages through VISA series READ... during the race, the VI buffer displays the messages individually...  I need all four messages to display at the same time in VISA SERIES READ BUFFER, in order to find more than this block, I should add from the palette of function.

    Disable character of endpoint detection or make four readings where you concantanate simply the strings together.

Maybe you are looking for