CAN loopback using RTSI programming

Hi,
I have 2 port CAN card from NI which can be programmed with RTSI extension. In my application, the first thing i need to do is a loopback test of the 2 ports.
- 2 messages with different arb id's have to be sent on the port configured as TX.
- The transmission of one message should activate the transmission of other message on the same port with the help of RTSI lines. ( RTSI 1 would be looped back with RTSI 3).
- These messages transmitted onb TX port should be captured on the RX port.
I tried to work on this but could not get the results. Can somebody help me in this regard??
Regards,
Siddu
LabView 7.0, 6.1

Hi Siddu,
There are two restrictions that apply to cases like this that can make
it pretty ‘tricky’ if the transmission needs to happen on the same CAN
port:
1. You can’t configure two CAN Objects with the same arbitration ID for the same port (doesn’t matter for your use case).
2. When you configure the Network Interface to ‘Transmit a CAN Frame on
RTSI Input’, (any) frames will only be transmit when there is a RTSI
pulse.
That obviously leaves CAN Objects for the transmission. For the
receiving side however, there are only very (very) few cases where it
is useful to use CAN Objects instead of the Network Interface.
However, I’m not 100% sure, if I understand your need to (hardware)
trigger the second frame. Assuming that you don’t generate any other
CAN traffic, when you write both frames with ncWriteNet.vi (or
ncWriteObj.vi) into the output buffer of the CAN card, the card will
transmit the second frame as soon as it successfully transmitted the
first frame. Thus, why the need for the RTSI trigger pulse?
BTW: The ncWrite VIs complete when LabVIEW passed the data to write to
the CAN card – NOT when the card successfully transmitted the frames.
If you call ncClose right after calling ncWrite, the ncClose might stop
the CAN card before the remaining frame(s) are written to the bus.
Therefore, it’s always a good idea to use ncWaitForState
(Write_Success, 0x2) before closing handles. This could be the reason
why your VI only works when ‘highlight execution’ is turned on (as
there is enough time between the ncWrite and the ncClose calls).
Your VI (NI CAN Loopback Test RTSI.vi) also generates an error, but as
the error cluster is not wired through, one doesn't see it right away:
1. ncConfig ("CAN1", 8, {0x80000006,0x80000007,...}, {0x00000001,0x0007A120,...})
Status: 0 (VI_SUCCESS)
2. ncConfig ("CAN0", 8, {0x80000006,0x80000007,...}, {0x00000001,0x0007A120,...})
Status: 0 (VI_SUCCESS)
3. ncConfig ("CAN0:TD5", 12, {0x8000000F,0x80000013,...}, {0x000003E8,0x00000000,...})
Status: 0 (VI_SUCCESS)
4.  ncOpenObject ("CAN0:TD5", 41419424)
Status: 0 (VI_SUCCESS)
5.  ncWrite (41419424, 8, "........")
Status: 0 (VI_SUCCESS)
6.  ncCloseObject (41419424)
Status: 0 (VI_SUCCESS)
7.  ncConfig ("CAN1:TD5", 7, {0x8000000F,0x80000013,...}, {0x00002710,0x0000000A,...})
Status: 0 (VI_SUCCESS)
8.  ncConfig ("CAN0:TD5", 12, {0x8000000F,0x80000013,...}, {0x000003E8,0x00000000,...})
Status: 0 (VI_SUCCESS)
9.  ncOpenObject ("CAN1:TD5", 41419424)
Status: 0 (VI_SUCCESS)
> 10.  ncOpenObject ("CAN0:TD5", 0)
> Status: 0xBFF6211D
> 11.  ncWaitForState (41419424, 17, 20000, 18)
> Status: 0xBFF62021
12.  ncCloseObject (41419424)
Status: 0 (VI_SUCCESS)
> 13.  ncCloseObject (0)
> Status: 0xBFF62024
The problem here is, that the second ncOpenObject (for CAN0:TD5)
fails (error code: 0xBFF6211D). The reason for that is that when the
port (CAN0) was never opened directly, closing the only CAN Object on
that port (fucntion call #6) will stop the port and reset its
configuration. Thus when you try to open an object again, the above
error occurs.
-B2k

Similar Messages

  • I have a Macbook Air that had some coffee spilled on the keyboard and as a result the plus/equals key is no longer functioning. Can I use a program like Ukelele to reprogram a different key to be my plus/equals key? Can I program a function key? key

    I have a Macbook Air that had some coffee spilled on the keyboard and as a result the plus/equals key is no longer functioning. Can I use a program like Ukelele to re-program another key to do that function? Can I re-program a function key to do this function?

    Water + electronics do not mix.  Something was damaged insode, and the logic board may be corroding as is.
    Take it to a Genius Bar for an evaluation and repair estimate.
    This is accidental damage and not covered by warranty.

  • Can we use same program ID for more than one RFC scenarios

    Hi experts,
                I am working on a RFC to FILE scenario. I have created one TCP/IP connection in SM59 with a program ID. Can we use this program ID for more than one scenario. I have written code as below
    data: iquote type standard table of ZIQMD initial size 0,
          IPRODUCT type standard table of ZPMS initial size 0,
          wa_quote type ZIQMD,
          wa_PRODUCT type ZPMS.
    CALL FUNCTION 'Z_CBT_RFC_QUOTEMASTER'
      TABLES
        I_QUOTE       = iquote          .
    CALL FUNCTION 'Z_CBT_RFC_QUOTEMASTER' in background task DESTINATION
    'ID4'
      TABLES
        I_QUOTE       = iquote          .
      COMMIT WORK.
    CALL FUNCTION 'Z_CBT_RFC_PRODUCTMASTER'
      TABLES
        IPRODUCT       = IPRODUCT          .
    CALL FUNCTION 'Z_CBT_RFC_PRODUCTMASTER' in background task DESTINATION
    'ID4'
      TABLES
        IPRODUCT       = IPRODUCT          .
        COMMIT WORK.
    when i am executing the code like this. i am able to send the data to 'Z_CBT_RFC_QUOTEMASTER'  , but iam not getting data  for 'Z_CBT_RFC_PRODUCTMASTER'  interface. ID4 is the connection that i have created in SM59. with program ID as ABCD.
                  Can i use the same connection for all interfaces.Please help in this, if we can use same connection for all interfaces. then how to make changes in XI.
    Thanks in advance.
    Thanks & Regards,
    Poorna.

    Just tried this and I can confirm that my earlier understanding was correct!
    One of my colleagues confused me out and the conclusion is,
    1. You need a separate TCP IP Connection for every interface with a Unique program ID.
    Regards
    Bhavesh

  • Can i use engineering programs such as atocad .... in macbook poro 13

    can i use engineering programs such as autocad .... in macbook poro 13

    The requirements are listed below. If you are going to do serious AutoCad work, a much larger monitor would be a great benefit.
    http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/ sfdcarticles/System-requirements-for-AutoCAD-for-Mac.html

  • Hello i have a problem  i can not use adobe programs. The payment for the month march is not be payed, but i will pay the payment.I can not found where i can do that. Also i see that my membership is stopped.

    Hello i have a problem  i can not use adobe programs.
    The payment for the month march is not be payed, but i will pay the payment.I can not found where i can do that. Also i see that my membership is stopped.

    Try the not-charging topic of:
    iPod touch: Hardware troubleshooting
    It could be that the battery is dead.

  • Can you use the programs in the creative cloud on multiple computers?

    Hey,
    I was wondering if it is possible to use the programs on multiple computers when you have the membership?
    Thanks

    From the doc : http://www.adobe.com/products/creativecloud/faq.html
    "You can install the desktop applications available in Creative Cloud on your primary computer and one backup computer, as long as they are not running at the same time. You will have access to both the Mac OS and Windows versions, so if you have a Mac at home and a PC at work, for instance, you can install your applications on both. See the product license agreements page for more information."

  • Message shows " Licence Expired " and can't use CC programs

    When I want to use and CC programs, like PhotoShop, Illustrator, InDesign... etc., I got a message means to check the authorizing from server. Then it shows that the licence is expired! And after I click the Retry button, then I got a new message shows that my subscription is active, when I click continue, it go back to the " Licence Expired " message..... It becomes a cycle and I can't use any CC programs. It just started yesterday, I work with those programs last week and had no problem.
    And when I check my account on web, it shows " We are still processing your order. It could take up to 24 hours. Please check back later. " , but I don't put any order recently, and my subscription was renewed last Oct. And I already checked the web more than 24 hours, but it still shows this message.
    I don't know what's happen. Did my account has been hacked??

    Thank you John.
    I contact with support guy, he said my subscription was been canceled, but he can't know when and why....
    And he suggest me to re-put a new subscription. I did it, but I still have problem when I want to set my payment method. It still shows my order is in process and let me wait, but I even didn't start to set the payment details....
    Then the support guy said I need to find sales team to help, he can't just close my team account....
    I am going to find the retailer in my country to help, we'll see....
    Anyway, thanks for your information, John.

  • I can not use Adobe programs.

    I think my time has expired. as it is I can use Adobe programs.
    or what is the reason. mvh jonas

    What excactly is happening? what programs? What system? What kind of license? As a start, read this:
    Sign in or activation errors
    For anything beyond that, we really need lots of more information.
    Mylenium

  • I can't use certain programs with Yosemite

    I have the Adobe CS6 installed on my computer and they all worked fine with Snow leopard, but the moment I got Yosemite and tried to open After Effects I get this message:
    "You can’t use this version of the application “Adobe After Effects CS6” with this version of OS X.
    You have “Adobe After Effects CS6” 11.0."
    Every other program I tried on Adobe CS6 works fine but After Effects will not open. I tried to uninstall and reinstall it but I get the same message.
    After Effects is my second most used program on the Creative Suite, how do I fix it?
    An answer would be very helpful Apple. Please and thank you.

    Lowenfas wrote:
    I am figuring the fault lies with Yosemite since everything worked fine before I got it.
    Why did you not check if the programs would work before updating to Yosemite ?

  • Can i use common program type for progression

    i have many program type for undergraduate and graduate.
    sometimes student can change from program type UG to GR and in this case progression can cause problem in our case.
    we have many program type for graduate such as B0, B1 and B2 and for progression i want to have E0 for graduation but progression can not read this data which was saved as E0.
    will it be possible that i have E0 for progression while program type have different one.
    regards,
    jin dal

    Jin Dal,
    The Program Type progression will always give you the choices for program types where the student is registered.  So, it is not possible to run Progression for Program Type 'X', unless the student is actually registered in a program of that program type.
    I would normally use this opportunity to ask, "Why would you have set up so many program types when you have a common progression model?"
    I would also ask, "How can a student change Program Types?"   Normally I would expect that a student completes their Undergraduate program, and then begins a new Graduate level program.  How can an undergraduate registration turn into a graduate registration?
    Are you blueprinting something new here, or are you talking about a system already in production?
    Michael

  • Firefox comes up in "safe" mode. How do I turn it off. I can't use the program this way.

    About two weeks ago some virus (?) got in my computer. I lost everything and had to reload everything.
    When I reloaded Firefox it came up 'locked'. Nothing would react to my mouse.
    I discovered it came up in "safe" mode. I removed the program and reloaded it again. It came up in safe mode again. When I hit start and look at programs Firefox is there and under it is another Firefox program with safe mode in parenthesis. I can't use it this way. How do I turn safe mode off?

    See [[Firefox is stuck in Safe Mode]], the last option seems to be the most likely in your case.

  • Can i use funded program

    Our FM team want to use "funded program"for grant management for whole university and request SLCM also must use this function but when i study funded program a little more i also saw it is future use.
    Can somebody give me idea whether i can use funded program for grant and if yes how ?.
    regards,
    jin dal

    Dear Jin Dal,
    The funded program uses much of the functionality of the Business Data Toolset (BDT). If you want to customize the funded program master data, you should be familiar with the BDT.
    Funded programs are used mainly as FM account assignment elements, in the same way as funds, funds centers, commitment items, and functional areas are. Budget can be entered for them and monitored in them. You can enter the funded program directly in budgeting, but it can only be used with the new Budget Control System (BCS), not the conventional budgeting function.
    When you are using the funded program in integrated postings, it is not possible to enter the funded program directly. It must be derived, using rules specified in the FM derivation tool. Account Assignment Derivation contains a detailed description of the steps involved in creating derivations.
    While you can use any operative element as the source for deriving funded programs, you should use  WBS elements, orders, or networks.
    If active, the funded program is displayed in Sales and Distribution (SD) orders, Plant Maintenance (PM) orders, and in networks or network activities. It is not displayed in purchase requisitions, purchase orders, goods receipts, or any other documents.
    Hope it will help
    Regards
    Vinod Kumar

  • Can't burn to DVD from iMovie (4.0) using iDVD.  Can I use another program?

    Suddenly, after making several DVDs with this computer using its old version of iMovie without trouble, I can't burn my latest creation...I'm getting a message saying that "You cannot use this version of the application iDVD with this version of Mac OS X."
    I cannot update to the newest OS X Snow Leopard, because I've tried and my computer is not intel-based.
    So, has my iDVD application has been updated to suddenly be incompatible?? How has it worked before?
    (I've tried to upgrade my iMovie application to the current iMovie '11, but my computer is not intel-based.)
    Is there another solution to my problem? Is there another application that I can use to burn from iMovie to a DVD besides using iDVD? (Remember, I have an old computer.) :o)
    Thank you so much for any help you can give!

    You can try using BURN at http://burn-osx.sourceforge.net/Pages/English/home.html

  • ? What can i do about this, i will have cancel this if i can not use the programs

    good evening i have just purchased lightroom and photoshop on a 12 months contract and its now saying i am running a operative system that photoshop no longer supports  ? What can i do about this, i will have cancel this if i can not use the programs

    unless that message is erroneous, you'll need to upgrade your os to use whatever you dl'd.
    with a cc subscription, you can use cs6, cc and cc 2014.
    if you need more help, what os do you have?

  • Can you use any program to upload music onto the zen creative juke

    i am currently using limewire to download music can i use this for the zen creative jukebox

    DM wrote:<B>Can you use Limewire to transfer songs to a Zen player?</B>But if its corrupted then it might cause your player to stop working.
    FYI: Normally, Limewire will indicate that a file is corrupted and give you the opportunity to continue with the download or cancel it.

Maybe you are looking for