CAN Single Wire using NI PXI-8513/2

I used the C Code from the attached file to create the 2 VI's to Write and Read over CAN Single Wire using the PXI-8513. so far I don have communication. is there any other VI sample to send/receive frames using the Single Wire CAN ?
Attachments:
NI XNET CAN Single Wire .c ‏11 KB
CAN Single Wire Frame Write.vi ‏21 KB
CAN Single Wire Frame Read.vi ‏21 KB

Hi rgomez7408
Any of the examples of xnet can work with single wire unless the bandwith restricts them. You need to change the property of your PXI card transciever to work single-wire and after this you can use any of the examples. The property node is located in the Functions Palettes>>Measurement I/O>>XNET>>Session Node. This node has a property called Interface>>CAN>>Transciever Type. You can set this property to SW and this means that it configures the PXI card to work with singlewire. After this you can use any example from the XNET folder.
I´m sending you also the XNET Manual in case you need more information
http://digital.ni.com/manuals.nsf/websearch/6394B500F99CF28886257A45004BA241
Juan Arguello
National Instruments México y Latinoamérica
Applications Engineer

Similar Messages

  • PCI-CAN/XS2 Single wire configuration (cont)

    I set CAN1 as a bus monitor looking for data from the Module,
    I connected CAN0 to 9pinSubD pins 3,7,9
    I connected Can1 to the same
    I have +12V to pins 3-, 9+, to power the modul and SW CAN
    I am seeing no activity
    +++++++++++++++++++++++++++++++++++++++++start code
    Work in-progress. Attempting to see data on Can1/Bus Monitor.
    #include <cvirte.h>
    #include <stdio.h>      // Include file for printf
    #include <stdlib.h>     // Include file for strtol
    #include <windows.h>    // Include file for Win32 time functions
    #include <userint.h>
    #include <string.h>
    #include <utility.h>
    #include "Gm-Can-Test.h"
    #include "nican.h"      // Include file for NI-CAN functions and constants      
    /* NI-CAN Status    */
    NCTYPE_STATUS status=0;
    /* NI-CAN handles */
    NCTYPE_OBJH NetIntfObjhRx=0;
    NCTYPE_OBJH NetIntfObjhTx=0;
    int main (int argc, char *argv[])
     int RunStatus = 0;
     RunStatus = CanTest();
     return RunStatus;
    int CanTest (void)
     char Interface1[6];
     char TxString[80];
     NCTYPE_UINT32   TransceiverMode;
     NCTYPE_UINT32   TransceiverType;
     int RunStatus = 0;
     NCTYPE_CAN_DATA   Transmit;
      // Handle for Network Interface Object (receiver)
     NCTYPE_OBJH  RxHandle = 0;
     // Handle for the CAN object (transmitter)
     NCTYPE_OBJH  TxHandle = 0;
     NCTYPE_ATTRID AttrIdList[8];
     NCTYPE_UINT32 AttrValueList[8];
     NCTYPE_UINT32 Baudrate;
     sprintf(Interface1,"CAN0");
      /* Configure the 1. CAN Network Interface Object */
      TransceiverMode = NC_TRANSCEIVER_TYPE_SW ;
     status = ncSetAttribute (NetIntfObjhTx, NC_ATTR_TRANSCEIVER_TYPE,
      sizeof(TransceiverMode), &TransceiverMode);
       AttrIdList[0] =         NC_ATTR_BAUD_RATE;  
       AttrValueList[0] =      33333;
       AttrIdList[1] =         NC_ATTR_START_ON_OPEN;
       AttrValueList[1] =      NC_TRUE;
       AttrIdList[2] =         NC_ATTR_READ_Q_LEN;
       AttrValueList[2] =      10;
       AttrIdList[3] =         NC_ATTR_WRITE_Q_LEN;
       AttrValueList[3] =      0;
       AttrIdList[4] =         NC_ATTR_CAN_COMP_STD;
       AttrValueList[4] =      0;
       AttrIdList[5] =         NC_ATTR_CAN_MASK_STD;
       AttrValueList[5] =      NC_CAN_MASK_STD_DONTCARE;
       AttrIdList[6] =         NC_ATTR_CAN_COMP_XTD;
       AttrValueList[6] =      0;
       AttrIdList[7] =         NC_ATTR_CAN_MASK_XTD;
       AttrValueList[7] =      NC_CAN_MASK_XTD_DONTCARE;
       status = ncConfig(Interface1, 8, AttrIdList, AttrValueList);
     TransceiverMode = NC_TRANSCEIVER_MODE_SW_WAKEUP;
      status = ncSetAttribute(NetIntfObjhTx, NC_ATTR_TRANSCEIVER_MODE,
       sizeof(TransceiverMode), &TransceiverMode);
     status = ncConfig(Interface1, 8, AttrIdList, AttrValueList);
     // Open Transmitting Objects
     status = ncOpenObject("CAN0::XTD0x100", &TxHandle);
     Transmit.Data[0] = 0x00;
     Transmit.Data[1] = 0x00;
     Transmit.Data[2] = 0x00;
     Transmit.Data[3] = 0x00;
     Transmit.Data[4] = 0x00;
     Transmit.Data[5] = 0x00;
     Transmit.Data[6] = 0x00;
     Transmit.Data[7] = 0x00;
     status = ncWrite (NetIntfObjhTx, sizeof(TxString), TxString);
     TransceiverMode = NC_TRANSCEIVER_MODE_NORMAL ;
      status = ncSetAttribute(NetIntfObjhTx, NC_ATTR_TRANSCEIVER_MODE,
       sizeof(TransceiverMode), &TransceiverMode);
        return RunStatus;
    ++++++++++++++++++++++++++++++++++++end code

    can you please check if this vi's works for you
    Attachments:
    CAN Single Wire Frame Write.vi ‏21 KB
    CAN Single Wire Frame Read.vi ‏21 KB

  • Single wire wiring for GM LAN

    Can I just connect a PXI-8513/XS to a GM LAN using the pin 3 to GND, pin 9 to 12Vdc and pin 7 CAN_H to the GM LAN?
    is it required to connect the pin 5 COM to GND?. I'm using a non terminated cable to conect my interface to my device
    Solved!
    Go to Solution.

    Hello, 
    It's not necessary to connect pin 5 as this pin correspond to an optional Shield. Here is the CAN manual where you can verify the information (Single Wire CAN)
    http://www.ni.com/pdf/manuals/370289j.pdf
    Depending on the baud rate that you are using, you could have problems if not using a terminated cable (low-speed may work but at higher speeds you may encounter some problems).
    I hope this is useful!
    Regards
    José Alberto G.
    National Instruments
    ELP Support Engineer
    www.ni.com/soporte

  • Single Wire CAN cDAQ

    I have would like to use cDAQ for a set of testers that will be built.  These testers need to talk to various hardware and I wanted it to be flexible so I choose cDAQ because modules can be swapped out for I/O that is needed.  I saw that high speed CAN, low speed CAN, and even LIN is available in a cDAQ form factor, but single-wire CAN is not.
    Is there an option for a single-wire CAN cDAQ module that I am not finding?  Why would NI not support a single-wire CAN interface on cDAQ when they do on PXI/PCI?
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

    Our solution if anyone else is looking to do the same is to use an Intrepid neoECU hardware, which is a scriptable device with high speed/single wire CAN, LIN, and general purpose I/O.  It comes with some examples and one of them is a CAN gateway to convert high speed CAN messages to single wire CAN and backward.
    We have this little device sit between a cDAQ high speed CAN device (NI 9862) and a signle wire CAN hardware to test.  We talk high speed CAN over 9862 and the neoECU sends out single wire CAN.  Obviously there are limits because the baud rate for high speed CAN is higher and you can over load the single wire bus, but if you just are aware, or setup filters on the neoECU it works fine.
    This device can also be used as a LIN gatway as well sending LIN data back on high speed CAN but we haven't tested that part yet.  One downside is to program the deice you need to have a license of Vehicle Spy which is Intrpids CAN software.  It does have a trial and that maybe all you need.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to Connect LS CAN (USB-8472) to Single-Wir​e CAN device?

    In the post of http://forums.ni.com/ni/board/message?board.id=30&​message.id=216&requireLogin=False , NI Engineer said that
    “It is possible to use our Low-Speed CAN boards in
    a single-wire mode. However, the board will give CAN warnings. So, the
    control program may have to ignore certain CAN warnings.
    Randy Solomonson
    Application Engineer
    National Instruments”
    But I can't see the detail connection and software settings in that post.
     How can I use LS CAN to communicate with single-wire CAN (such as GMLAN)? Should I make some additional settings in my LabVIEW program?
    帖子被hmqi2002在 07-09-2009 04:07 AM
    时编辑过了

    In the post of http://forums.ni.com/ni/board/message?board.id=30&​message.id=216&requireLogin=False , NI Engineer said that
    “It is possible to use our Low-Speed CAN boards in
    a single-wire mode. However, the board will give CAN warnings. So, the
    control program may have to ignore certain CAN warnings.
    Randy Solomonson
    Application Engineer
    National Instruments”
    But I can't see the detail connection and software settings in that post.
     How can I use LS CAN to communicate with single-wire CAN (such as GMLAN)? Should I make some additional settings in my LabVIEW program?
    帖子被hmqi2002在 07-09-2009 04:07 AM
    时编辑过了

  • Can I close multiple output channels in parallel on one COM line using the PXI-2503

    I want to fan out a power supply to four DUTS. During current testing, I will want to turn on one DUT at a time. During other tests, I want to power all four DUTS in parallel. This will require turning on four output channels at once in each mux bank. Can this be done using the PXI-2503?

    Bob,
    4x6 2-wire mode should work fine. You can connect the power supply to one column, and the DUTs to each row. The rows can be connected to the column one at a time or all at once.
    Regards,
    Jessica Kinnevan
    Applications Engineering

  • GM Single wire CAN Physical Connector Details

    Hi,
    I have NI PCI-CAN/XS-2 card. Can anyone tell me about, pin configuration of GM Single wire CAN physical connector ...?
    I'm planning to make it as 9 pin connector; so that i can connect it to my PCI-CAN/XS-2 card and use it for LabVIEW based CAN programming.
    Thanks,
    SB_LV

    Hello SB_LV,
    You can see more info on that in the NI-CAN Manual page 90.
    Let me know if you need more help.  Have a great day.
    O. Proulx
    National Instruments
    www.ni.com/support

  • Can I export using a single dump directory to multiple locations in oracle

    I'm trying to do a full database export using expdp utility in oracle 10g. I have a single dump directory that is mapped to a particular file location say /export/dump. I don't want the entire dump file to be stored in the above path. Instead I want the dump to be distributed among multiple files. I know that this can be done using FILESIZE parameter which will distribute the contents to multiple files according to the size we have specified.
    My problems comes here, I want to export my data to multiple locations, the path is different than what I mentioned above, say /first/dump. Now my question is should I create multiple dump directories for each location before exporting or can I omit directory attribute in expdp and specify the complete path in the FILE parameter itself.

    No. EXPDP needs the server component LOGICAL DIRECTORY. If you don't specify the directory, it will go to the default EXPDP path which will be mostly /rdbms/log. It's defined by the parameters DATA_PUMP_DIR.
    You will have to specify directory attribute if you want to point your dumpfile to go to any specific location and you cannot give the directory path in the file name in EXPDP (unlike conventional exp)

  • The range can't be used as a single value.

    Sorry all, a bit new to spreadsheets
    I am creating a budget spreadsheet in Numbers to learn how it all works
    I have a costing for Oil use; 12 monthly columns that are added together to produce a total for the year.
    However there is a standing charge to be added to this for the oil tank and that is £60 per year.
    So I started with a formula that states simply:
    SUM(B6:M6)
    This returns my yearly oil consumption cost but when I amend it to add the standing charge of £60p.a. like this
    SUM(B6:M6)+60
    I get the syntax error message "The range B6:M6 can't be used as a single value"
    I am sure there must be an easy work around for this but I haven't found it yet.
    Anyone got any thoughts ?

    Hmmm - this is quite a bit to take in !
    OK let me ask you about another instance.
    I have a column and at the top I have my Income for that month and below I have expenses incurred during that month.
    What I am aiming to do is out put the profit i.e. Income minys expenses.
    If I do this:
    I get an error
    But if I do this
    I get a result but obviously it shows my Profit as a negative number.
    That's why I find it strange.
    Simply reversing the order of the values stops the formula working.
    In one case the "range" (B3:B8) is producing a number value, and in the other it isn't.

  • How can I have a single cursor using elements 9 with Windows 7?

    Currently the cursor on my screen is 3 small boxes in place of the single arrow.  I am using Photoshop Elements 9 With Windows 7.  I have loaded the patch files currently in the Adobe system without any success.

    Thank-you that solved the issue.
    In a message dated 4/20/2014 8:57:10 P.M. Eastern Daylight Time, 
    [email protected] writes:
    Re:  How can I have a single cursor using elements 9 with Windows 7? 
    created by Barbara B. (http://forums.adobe.com/people/Barbara+B.)  in 
    Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/6315096#6315096)

  • XNET CAN stops upon errors. (PXI-8512 using RT VeriStand)

    Hello, I am using the PXI-8512/2 in an electrically noisy environment so I often get errors on the CAN bus. I notice that often the 8512 stops communicating as a result. In my dual port 8512/2, LED #4 which normally blinks ends up turning off. However, I do have other devices listening on the same bus; they report errors but continue to stay alive. Is there anyway I can have the 8512 continue working in the presence of errors? I'm using the XNET custom device for VeriStand 2009 and don't see any error handling options. In fact, I don't get any notification of errors at all. I just notice that my incoming CAN signals stop and my outgoing ones have no effect. Thanks.

    Howdy All,
    This is a duplicat post. Since the question has to do with the NI XNET Custom Device for VeriStand we will answer on the other thread, please do not reply to this thread.
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • Does it mandatory to use Delta/WYE 3phase PDU for CRS1 8 slot deployment? Can we just use default single phase AC power-shelves?

    does it mandatory to use Delta/WYE 3phase PDU for CRS1 8 slot deployment? Can we just use default single phase AC power-shelves?

    The fixed power supplies (legacy / zone based system) require 3-phase AC-Delta/WYE.
    The modular power supplies do not use a zone based system and require a single phase. You can order a CRS PDU to convert 3-phase AC input (from power source) to single-phase AC input for the power shelf.
    HTH,
    Sam

  • Wrong period of CAN message when using veristand

        I use Veristand. The period of CAN message is set to 10ms and the other is 100ms. After loading the project into PXI platform, the real transmission period is different. There are no rules about the period. The baud rate of CAN is 250Kb/s. And the real period of CAN message is monitored by Kavasar.
        Is there any body, who has faced with this problem?

    Real time processor is "PXIe-8135". CAN board is "PXI-8513/2". High speed can and 250Kb/s is used. Karvasar works well and is validated by other CAN instrument.

  • Why does it take so long to clear a task (with DMA transfer) using the PXI bus?

    I am migrating a system which used to use a PCI-6133 (8 channel simultaneous AI) and PCI-6733 (8 channel AO) to one that uses a PXI-6133 and PXI-6733 mounted in a PXI-1033 chassis.
    In general, things seem to work (synchronized AI/AO running near the maximum rate on both devices), with the one exception that clearing an AO task on the PXI-6733 takes forever (on the order of 20-30 seconds).
    Even when I try the sinewave generation for the PXI-6733 in the MAX test panel it takes the same amount of time to stop the task. If I switch to using interrupts as the transfer mechanism, it stops immediately.
    I tried using the interrupt transfer mechanism on my more demanding set of synchronized tasks, but that does not produce the right behavior (even though it does not give any errors).
    Is there any trick (or better diagnostic) to help get my tasks working with DMA under PXI that used to work fine on PCI?
    Thanks in advance!
    Solved!
    Go to Solution.

    Hi Patrick,
    I'm using a PCIe-8361 controller. The computer is a Dell T5500 workstation running Windows 7 x64. I see the problem every single time I try to clear a task running on the PXI-6733, including my example using the Measurement & Automation test panel (from the very first time I try the Sinewave Generation onward). I can try other parameters in the test panel, but I don't need to adjust anything from the defaults (e.g., Rate = 1000) to get the behavior. I will also try installing the PXI chassis in a few other computers we have here just to confirm that it's not computer specific. From your line of questions I can at least gather that there's nothing obvious (like a known bug with the PXI-6733) and that I should expect this configuration to work.
    Thanks for your help and I'll post any other findings I obtain.

  • Since iOS 8.1.1 I can no longer use my mail app.

    Since iOS 8.1.1 I can no longer use my mail app on my iPad Mini. The mail app opens and updates, however the screen does not respond to anything. Am rather stuck as to what to do. This is the Mail App that comes with the iPad Mini.
    I have tried to turn the iPad On/Off all to no avail. I don't really want to reset my iPad as this will cause more trouble than it is worth and will ultimately update the iPad to iOS 8.1.1 anyway. Do any of you have any suggestions that don't involve resetting the iPad ?
    Thanks All

    Before you delete your mail accounts, try giving your iPad a reset and force closing the mail app. It may clear up the glitch before you remove and add your info again
    Reset
    Hold down the sleep and home keys for about 20 seconds. When you see the silver apple, let go and let it reboot. No data will be lost.
    Force close an app
    Double tap the home button. When you see the app previews on the screen scroll sideways if needed to get the preview in question on the screen. Flick that preview up and off the screen to close the app. Single tap the home button or home screen preview to exit the mode.
    If those don't fix it then try to remove and put your info back in.

Maybe you are looking for

  • How do i save everything from my iPhone to my computer so i can transfer everything from one phone to another?

    how do i save everything from my iPhone to my computer so i can trasnfer everything from one iphone to another

  • Remove border in list box

    Hi, Is there any way to remove the frame around the active row of list box in  CVI 5? J Attachments: lstbxctl.gif ‏3 KB

  • Making Client able to talk to other Clients

    so my sorta IM program have 3 major components: Server, ServerClient, and Client. th Server listens for incoming connection thru ServerSocket, and when a Client connects, a ServerClient thread is started. thus the Server can talk to the Client and vi

  • Hard to read text after update?

    After I updated to the most recent version I'm getting garbled text on some parts of websites, including this site. I remember this happening a year ago or so but I can't remember what I had to do to fix it. Any ideas?

  • Touchpad freezes windows 8

    Hi I have an Hp envy m4 with windows 8 preinstalled. When I try to use the multiouch gestures, the touchpad freezes and I can't move the mouse during a few seconds. I've tried everything, reinstalling drivers, updating them, etc,etc. Nothing seems to