How to attach transmissi​on of two CAN cyclic frames?

Hi all,
I work with:
Hardware: NI-PCI 8512, CAN interface.
Software Environment: C++
OS: Windows7
I try to transmit two separate cyclic frames, with gap of up to 125 usec between one other.
I try the approach of sending the nxStart command line after line - and i got a gap of 600 usec. Not good enough...
Any ideas?
Thanks for advance,
Aviad

Just to clarify..
You want to send Cyclic Frame (ID = 1) every 100ms
"Immediately" after sending the ID = 1 frame, you want to send ID=2 frame
In theory, I think you could do this. NI-XNET should send the frames in priority order if there is a "collision", meaning that the two frames are attempted to transmit at the same time.
You could try:
Create Cyclic Frame ID = 0x1, set Cyclic rate to 100ms
Create Cyclic Frame ID = 0x2, set Cyclic rate to 100ms
Create Signal for Cyclic Frame 2
Create session to Id = 0x1 (FrameOutSinglePoint)
Set nxPropSessionSub_CANStartTimeOff for the session to some number (>= 1)
Create session to Id = 0x2 (SignalOutSinglePoint)
Set nxPropSessionSub_CANStartTimeOff for the session to the same number
Start session 1 (use session only)
Start session 2 (normal)
I think this should work to accomplish what you want.. however...
You cannot really have any guarantees on the CAN bus due to collisions (if your IDs are exactly 1 and 2 you are pretty safe since those are two of the highest priority frames, but in the normal world those are not typically the two frames that are generated). I think it would be better to do everything the same as above, but set the Set nxPropSessionSub_CANStartTimeOff for the second session to be N+1 (N is the number for the first session). The second frame should transmit 500us after the first one in this case. The advantage of this is that you are not relying on any detected collision in the driver (there is an ever so slight chance that they could be sent in the opposite order). You would see 500us instead of 125us (although you wouldn't actually see 125us in the first situation as the two frames would be sent back-to-back every 100ms).
Is the 125us required? Do you know the data to transmit ahead of time? You could use stream output in replay mode to get precise timing, but that somewhat requries you to know exactly what you want to send ahead of time.

Similar Messages

  • How to share the data between two or more frames

    How to share the data between two or more frames based on the database relationship in JDeveloper?

    You can pass data between frames by passing it as parameters.
    That is when you are invoking another frame, pass your data as arguments through the constructor to that frame .
    You can also achieve this through static or public methods, but static variables as we know is not suggested which might occupy more memory space.
    Regards,
    Srinivasan AShwath
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    How to share the data between two or more frames based on the database relationship in JDeveloper? <HR></BLOCKQUOTE>
    null

  • How to un merge movie so I can edit frames

    hi
    i have made a movie in iMovie  using individual photos and  recorded clips. I Played it in theatre and now the individual clips have merged and cannot be edited in time line.
    how can i separate the film so i can edit it.

    how can i separate the film so i can edit it.…
    You can't.
    But is the Project not anymore in your iMovie Library?

  • How to attached Two file in Email.

    Dear Friends,
    i have an email optoion in my Application .But right now it send mail with out attchment.i want to send meil with attachment .
    i have Two File browser item to attach file ,Please tell me how can i attach these two file with email
    My Code is
    DECLARE
    l_id number;
    to_add varchar2(1000):=:P1_TO;
    from_add varchar2(1000);
    l_body varchar2(4000):=:P1_DESCRIPTION;
    l_sub varchar2(1000):=:P1_SUBJECT;
    BEGIN
       select email_id into from_add from user_master where user_id=:app_user; 
       l_id:=APEX_MAIL.SEND(
            p_to        => to_add, -- change to your email address
            p_from      => from_add,
            p_body      => l_body,
            P_subj      => l_sub);
      COMMIT;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '102.111.0.9',
    P_SMTP_PORTNO => 25);
    commit;
    END;How to attached two file in email .
    How can i do this.
    Thanks

    hI,
    thanks to reply me.
    It's REGARDS .
    eg.
    if i am sending any mail then in Bottom of Email Body My Name and Contact No Should be Display.
    Thanks

  • I have two separate iTunes libraries on two separate Computers. I need to consolidate them so I can play them on a brand new computer. How do I do this so I can play them off an External Hard Drive on my brand new computer?

    I have two separate iTunes libraries on two separate Computers. I need to consolidate them so I can play them on my brand new computer. How do I do this so I can play them off an External Hard Drive on my brand new computer?

    Why, if it told you you have insufficient space on your computer, would it suggest making more space available on your phone?
    At a guess, you have insufficient space on your phone. Installing software will typically require more space than the final size of the software, perhaps even twice or three times as much, for the installation process. You can easily dump some videos or music temporarily, and then synch them back in afterwards.

  • I apperently have two iTunes accounts, how do I merge them so I can listen to all my music?

    I apperently have two iTunes accounts, how do I merge them so I can listen to all my music?

    Click here and fill out the form for assistance.
    (36376)

  • Hello, I would like to know how to transfer one of my two "membership" to an other computer because I just bought a new Mac.... ? Or how to cancel it on my old laptop so I can activate it on my new computer. Thanks a lot !

    Hello, I would like to know how to transfer one of my two "membership" to an other computer because I just bought a new Mac.... ? Or how to cancel it on my old laptop so I can activate it on my new computer. Thanks a lot !

    Hi Virginie,
    You need to go under the help menu option and sign out from Muse and then install it on the other computer that you want using the creative cloud desktop app.
    - Abhishek Maurya

  • I have had Adobe XI for about two years and My harddrive just crashed. My backups were part of the failure so I can't get it back. I purchased it from a third part supplier and it was a download. I need to find out how to get it restored. I can send scree

    I have had Adobe XI for about two years and My harddrive just crashed. My backups were part of the failure so I can't get it back. I purchased it from a third part supplier and it was a download. I need to find out how to get it restored. I can send screen shots of all of the drive location where the drive is still good and I can see my Adobe Acrobat pro information, but the download itself is missing. NEXT STEP?

    If you are talking about Reader (you did post in the Reader forum), then just download http://get.adobe.com/reader/enterprise. However Reader is free not purchasable. You can download a trial then install using your serial number, which if you didn’t register or write down somewhere you will be out of luck to track down.
    Download a free trial or buy Adobe products | Adobe downloads

  • When I try to attach my css style sheet Dreamweaver gives me an error saying that my .css file appears to be an .html file and will not attach. How do I fix this so I can attach my style sheet?

    I have built a css style sheet in Dreamweaver. When I try to attach it to my html website, it prompts me that my "css file appears to be an .html file and cannot attach". I've tried removing the /* */ as suggested by other forums, but this has not resolved the issue. I was using css style sheets with no problem 2 days ago. Now I get that error message. How do I fix this so I can attach my style sheet?

    What does the code of the CSS file look like?
    An external CSS file needs to be written in CSS only (no html tags like <html>, <body>, <head>, etc ).
    It also must have a .css file extension, if yours has a .html extension it won't work.

  • How to attach a PDF file TO the form so that recipients can access the file as a resource?

    How to attach a PDF file TO the form so that recipients can access the file as a resource?

    Sorry we do not support this. What you can do though is add a Formatted Text element and add a link to a PDF. To insert a link add some text, select the text and right click on the text (or look under the Insert menu in the top right of the scene)
    Gen

  • HT5312 I forget my answer of two security questions, there is a typo error in rescue email address. How to resolve this so that I can use my Apple ID for online shopping?

    I forget my answer of two security questions, there is a typo error in rescue email address. How to resolve this so that I can use my Apple ID for online shopping?

    You won't be able to change your rescue email address until you can answer your questions, you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to correct your rescue email address for potential future use

  • Can any one tell me how to attach a pdf file to the mail through workflow

    I have a smart which i am able  to convert it to a pdf file...now.. can any one tell me how to attach a pdf file to the mail through workflow

    Hi,
    To create the task for attachment
    Use the BOR SELFITEM and method NOTES_APPEND.
    The out come of this task contain a link called attachment with a clip attached. Clisk on that icon and choose the type of attachment u want . RAW , EXCEL , TXT , PDF... Then using the import icon u can attach the document u like.
    But the TYPE : OBJ.
    Similarly using NOTE_DISPLAY method u can display the documents u like.
    In any work item u have the facility to attach any atttchment for further circulation .
    Attchment @ WORKITEM
    1.Click the workitem for which you want to create the attchment
    2.Press create attachment
    3. Add the attachment u like (PDF)
    Reward points for useful answer.
    Richard A

  • HT6117 Hi I want to attach word documents to yahoo mail app  and some job portals using iPad  I don't know how to attach it can u ppl help

    Hi I want to attach word documents to yahoo mail app  and some job portals using iPad  I don't know how to attach it can u ppl help me thru this issue

    would I be able to "upload" (not sure how else to say it) my existing folders and subfolders containing all my emails so that they are all available on my new IMAP service, while still being available on my Mac?
    Not easily, no. There's no direct transfer option between POP and IMAP, especially across email providers. The best you could do would be to forward all of your emails to your new address, although it's not clear that you need to - dropping your sbcglobal.net account doesn't instantly render all your existing mail void - it'll still be in your Mail client, you can still read it, search it, etc., it just won't be on your provider's server.
    I have toyed with the idea of getting a MobileMe account. Would that solve my issue/question above?
    MobileMe would be viable, especially if you're interested in synching your various iOS devices. It's not free, of course, unlike Yahoo and Gmail, although you've already discounted them...
    I have also toyed with purchasing my own URL, but it's hard to tell from the sites (1and1, Namecheap, etc.) if they come with IMAP email accounts included.
    Some registrars offer email hosting bundles with a domain registration. This could be a good way to go. GoDaddy, for example, have a email hosting option for domains you register with them.

  • I need to know how to break my page into two pages so i can send it

    I need to know how to break my page into two pages so i can send it

    Hi,
    You can add new form fields via the add item bar.  For example if you want them to fill in their name, you'd add perhaps 2 text fields, one for first name, one for last name.  Text field is the first icon on the add item bar.  Each field allows you to specify a custom label, you can click it to edit the label.  Are you seeing the add item bar?
    Once you've added all your form fields, you can test your form by clicking the "Test" tab, and then clicking the "Test Web Form" button.  That will open a browser to your form, that you can test filling it out.  When you've filled it out, you click the submit button.  The response will be saved to our service.  You can view the submissions, by going to the "View Responses" tab.
    Once you've finished testing your form, and want to distribute to your users, go to the "Distribute" tab, click the "Open" button. This will make sure your form is open and accepting repsonses.  Then copy the URL by clicking the "Copy Link" button.  You can then email that URL to your users, so they can fill in your form.
    Does this help?
    Thanks,
    Todd

  • How to make a communication of two VIs from difference computers throught VI server?

    how to make a communication of two VIs from difference computers throught VI server?
    I have built the program which is attached at below. But it doesn't work. Can any one help me?
    Attachments:
    panel5.vi ‏82 KB

    Hi Barry,
    What do you mean "it doesn't work"? What kind of errors are you seeing? Also, you only specified the file name (data.vi) when opening a VI reference. Try specifying the whole path to the VI. Also, you might want to make sure you are able to ping your other computer from the start (to see if this is a LabVIEW issue or a network issue).
    Hope this helps,
    Travis H.
    LabVIEW R&D
    National Instruments

Maybe you are looking for