Implement the LIN Protocol: USB-8476

Hello

I have a new project that is to contact a product incorporating the LIN bus. I need to create a program that sends data to the product and receives the response. I thought to use the cable USB LIN or (USB-8476) to perform this function. I've not found a good explanation or examples on the use of this cable and the API that I used. Is there someone who has tested such things? Can you help me to clarify ideas (examples, API, document).

Thank you

Hello fishingman.

For CVI examples that use a LINEN I would recommend navigation examples C:\Users\Public\Documents\National Instruments\NI-CAN\Examples\Borland C\LIN.  Note that this the the installation location on my Windows 7 computer.  It may be in a different location on XP.

For documentation on the API and implementation of FLAX, I would recommend looking at the user manual CAN which you can access here.

David has

Tags: NI Software

Similar Questions

  • Series is up, line protocol is up (looped)

    Hi Sir,

    I have a simple question here.

    The State of the problem "series x is, line protocol is up (looped)" in the State of the interface line of the 'show interfaces x series' shows a loop exists in the circuit. What is the line Protocol remains upward when the loop is detected independently encapsulation link, IE HDLC or PPP?

    Thank you.

    B.Rgds,

    Lim TS

    A normal closure with HDLC will be Protocol upward (looped) and PPP will be protocol down (in the loop).

  • Read the serial number in LabVIEW of USB-8476 LIN Module

    Is it possible to read the serial number of a USB-8476 module in LabVIEW. I am building a system that will use 10 of these modules in a single system and I want to be able to verify this LINX = serial No.: ABC. I'm afraid that a 'user' will disconnect and the plug-in a USB module causing the FLAX number to change.

    Hi graveux,

    The ncGetHardwareInfo.vi with the attribute set to "Serial number" should do the trick (use the desired USB interface and port number 1 as inputs).

    -B2k

  • Short films through the lines of output of NI USB-6509

    Hello

    I use the NI USB-6509 Board and on the manual of the device it says that external voltage sources must not be connected to any line output, it will be the damaged aircraft if they exist in short in all configured output lines (a line of output (1 or 0) is connected to another line (s) to exit. I want to isolate all lines output configured by connecting a diode in series and a 47 ohms limiting resistance far lines of output, that will help.

    Rgds

    Paul

    Paul,

    If the lines are shorted together briefly he probably will not damage the device because there are protection circuits.  However, it is not recommended to connect two lines.  Why do want to connect in this way?

    -Christina

  • What USB port supports the 3 Protocol?

    Hi all, what ports in W520 support USB3?

    There should be 2 x 3 USB ports on the W520. They are blue and should be on the left side of the computer. Should be easy to find if you are looking for the two blue USB ports.

    -gan

  • How to generate pulses on the digital i/o lines? USB-6211 labview 8.5

    I want to generate a 5ms pulse on one of the lines of digital output that will be more used to delay the acquisition, DAQ.

    Thank you

    You will need to use counters to generate a digital pulse. I ask you to take a look in the examples that come with the DAQmx driver (in LabVIEW, help goto-> find examples).  You can look for impulses and select generate Dig Pulse.vi. If you have questions, after return!

  • USB-8476 S

    Hi all

    I use the usb-8476 s, I want to use my slave device control. I use FLAX Master send full frame and Receive.vi

    now, I encounter some problems if I put IsRemote 17, I can receive full frame, but the data is ignored, can not control my device.if I put 18 I get error.the error code is 40 10 and 20 11.i don't know what to do.who help me.

    Thank you!

    Hi Jefel

    Thank you for your review, I put 31 arbitration when I put Isremote 18, I get bus LIN, 20 11 01 04 00 00 34 error when I put I sremote 17, I can receive full frame of FLAX, I select Self. reception, I know DATA set.

    can you gave me help.

    Thank you.

  • How to generate a call via mobile phone connected to the pc by usb

    Hello

    Comment on the call of the UN peut-on generate via mobile phone (nokia6680) connects to the pc by usb from labview?

    I have installed "nokia PC suite". is possible perhaps-this one starting from the palette "Connectivity/library and executable" start this app and automatically generate a call to a predefined number? It sounds complicated and ca me don't think so that it works...

    Apparently these are the commands that allow a cell phone from a PC of Girardon. Y ' there way to use a hyperterminal type program pay to try their hand and then be able to use the VISA features in labview? Pour the moment, I don't see how start. Ports of HyperTerminal manages the communication with RS232 type but comment Girardon the USB Installer takes it a soft pour mobile phone USB connection behaves as a virtual RS232 port?

    I have seen comment importer a dll in labwindows on another project but we must have the description of the dll, the functions name pay to use. In this case, I have all this.

    Thanks if qq can help me car the, I'm blocking (I saw that there were messages on this topic but ca don't allowed me to establish a communication with the phone outside the nokia PC suite software).

    My but is send an alert by such pour a data acquisition application that runs on a computer laptop not connect a network of the United Nations.

    JF

    Finally, it runs. When the telephone connection after installing nokia pc suite and a usb cable, the phone appears like adding a virtual COM and another element: "Nokia 6680 usb modem cable. Select the line corresponding to the additional virtual COM port, in my case, it appears as "COM17. Configuration is easy: choose transmission speed (bps 9800 or else up to 115200bps, apparently the phone can detect the selected speed of the rate), 8 data only bits, no parity, no flow control. Then you can send orders to:

    Xxxxxxxxx ATD. followed by the return to call a wagon phone (the phone number is xxxxxxxxx), at the end of the command is required to call (if there is a detected error 'NO CARRIER')

    to send an SMS, send:

    AT + CMFG = 1

    AT + CMGS = "xxxxxxxxx".

    then tape the message to send, followed by Ctrl-Z (ASCII code: 0x1A)

    If you are interested in this subject, I advice allows you to start the test with hyperterminal or another program to easily implement a serial communication, and then implement in Labview. I guess the AT commands are a little bit different with other phones like Nokia.

    Note: to send Ctrl-Z with Labview, right click on the array of strings in the scheme of hexadecimal code, then select Add 1A and re - click to print the normal code...

  • Select the line of contour based on static text

    Hello

    Thank you much in advance.

    As I'm fairly new to AppleScript, I don't know what is and what is not possible. My goal is to have a single script that works for 7 of our branches and about 1,500 people. The idea for the script is:

    1. ask the user some basic questions (like "which office are you?" and "What is your code print?" - already scripted.)

    2 something here to select the appropriate section of the code required for these specific functions. In other words, if user pics office 1 go to any section of the code that corresponds to the office 1 if 2 go 2, etc. - not scripted, I'm used to something like goto, but if I understand well there is no such thing with ACE

    3. based on the information in the point 1, if possible, download a file from the internet (a package) and install it. I guess I should wait or pop to draw their attention to the fact that they would need their password and wait they ended as a dialog box. I know that the password is not scriptable. - not scripted

    4. a procedure (for each location but very similar) script:

    4.1 find if printers have been installed (based on the content of the Printers & Scanners window and printer names). - ongoing

    4.1.1. If so, select and remove.

    4.1.2 if not, continue

    4.2 install printers for this office. - scripted.

    4.3. implement their code printing with a couple of presets - scripted

    Where I am stuck currently is:

    1 choice of the line of the scroll printers area contour & Scanners based on the name of the printer. I try this, but it does not work (for some reason any CRUDE HTML does not work):

    Tell application "System events" tell process select 'System Preferences' (first line of end of plan 1 zone 1 scroll the window 1, including the value of static text 2 is "SAvin_372BC" tell end tell

    Accessibility Inspector is telling me this:

    AXApplication > AXWindow:AXStandardWindow > AXScrollArea > AXOutline > AXRow:AXOutlineRo w > AXCell > AXStaticText for the text where the Savin_372BC is displayed. I found this and tried to do something similar to script, but obviously I did not. As I do not know how many printers user will have I need for AS through, find those that we install and remove them if they are present and move along, otherwise - move along.

    2. how script logic? As I mentioned previously, I'm used to goto, so it would be to ignore whatever the section, I need to continue from. What would be the AS version for goto?

    3. using the script and without install anything that anyone else who isn't Apple, how do I download a pkg in / downloads? CURL?

    4. I'm not there yet, but no matter what magic trick as waiting for an entry for the Mac password?

    Thanks a lot again!

    I'm used to something like goto, but if I understand well there is no such thing with ACE

    The man.  GoTo went in disgrace for 40 years!  No modern language has goto. GoTo lead unrestricted branching which resulted in convoluted code.  A fluidity in the code is desirable.

    From this page:

    http://computers.tutsplus.com/tutorials/if-and-if-else-AppleScript-conditional-s statements - mac-45590

    ------------------------------------- AppleScript

    Learn AppleScript: The comprehensive Guide to Scripting and automation on Mac OS X, the book of the third edition

    AppleScript Language Guide pdf Download pdf file

    Intro to applescript with the sending of an email
    http://Mac.AppStorm.NET/how-to/AppleScript/the-ultimate-beginners-guide-to-Apple script.

  • Default settings for digital lines? USB-6009

    Hi all

    I use the digital lines on my USB-6009 to control normally open SSRs.  When I turn on the system, I would like to have the digital lines on the USB-6009 case to automatically configure themselves to be output digital lines put in position "Low", so I don't spend on my SSRs until I gave the command.  Is there a way to do this?

    Thank you.

    Cannot set default on 600 x Renault States, unfortunately.

    Do a genius on the hardware side, knowing the lines are pulled high on the acquisition of data is initialized. and if certain combinations of outputs produced a dangerous situation, you must stop to happen in hardware.  Good practice to do so anyway.

    Another option is to use an analog output, those can pump a little more power than otherwise to 1V, and do what is usually not sufficient to turn of SSRs.

  • Implement the Std::Vector < < Point2i > > Std::Vector in dll wrapper for LabVIEW

    Hi, I'm writing a wrapper dll that using OpenCV function. I had been sucessfully implement Std::Vector by referring to "An array of clusters to a dll C sending".

    And now, I want to implement the Std::Vector<>> who is a lot like table 2D but each line items may be different.

    In LabVIEW, I attribute a range of cluster of the dashboard cluster of 2 I32 elements, structure which is shown below:

    I think it has the same functionality as Std::Vector<>> in C++.

    So I plug this data on the "Call library function node" structure and generate C code that indicated below:

    /* Call Library source file */
    
    #include "extcode.h"
    
    /* lv_prolog.h and lv_epilog.h set up the correct alignment for LabVIEW data. */
    #include "lv_prolog.h"
    
    /* Typedefs */
    
    typedef struct {
        int32_t elt1;
        int32_t elt2;
        } TD4;
    
    typedef struct {
        int32_t dimSize;
        TD4 elt[1];
        } TD3;
    typedef TD3 **TD3Hdl;
    
    typedef struct {
        TD3Hdl elt1;
        } TD2;
    
    typedef struct {
        int32_t dimSize;
        TD2 elt[1];
        } TD1;
    typedef TD1 **TD1Hdl;
    
    #include "lv_epilog.h"
    
    void funcName(TD1Hdl arg1);
    
    void funcName(TD1Hdl arg1)
    {
    
        /* Insert code here */
    
    }
    

    Then, I write this code show below in dll wrapper:

    void funcName(TD1Hdl Blobs)
    {
        vector < vector > blobs;
    
        // Distribute contents of blobs to Blobs from LabVIEW
        MgErr err = mgNoErr;
        size_t arraySizeInBytes = Offset(TD1, elt1) + sizeof(TD2)*blobs.size();     // Determine row size
        err = DSSetHSzClr(Blobs, arraySizeInBytes);
    
        if (err != mgNoErr)
            return;
    
        (*Blobs)->dimSize = blobs.size();
    
        for (size_t i = 0; i < blobs.size(); i++) {
            arraySizeInBytes = Offset(TD3, elt) + sizeof(TD4)*blobs[i].size();  // Determine col size of each row
            err = DSSetHSzClr((*Blobs)->elt[i].elt1, arraySizeInBytes);
    
            if (err != mgNoErr)
                return;
    
                    /*......................*/
            }
    }
    

    When I call LabVIEW dll, the program get interuption(i.e shutdown) on line where I want to determine the size of each row.

    Could someone give me some suggestions on this subject or promote another application of this requirement?
    Thank you very much.

    MgErr funcName(TD1Hdl Blobs)
    {
        vector < vector > blobs;
    
            Labeling(image_binary, blobs);         // the prototype of this function is: Labeling(Mat &binary, Vector> &blobs)
    
        // Distribute contents of blobs to Blobs from LabVIEW
        MgErr err = mgNoErr;
        size_t arraySizeInBytes = Offset(TD1, elt) + sizeof(TD2)*blobs.size();      // Determine row size
    
            if (contours == NULL)        {                Blobs = (TD1Hdl)DSNewHClr(arraySizeInBytes);                if (Blobs == NULL)                         err = mFullErr;        }        else                err = DSSetHSzClr(Blobs, arraySizeInBytes);
            if (err != mgNoErr)                return err;    for (size_t i = 0; err == mgNoEerr && i < blobs.size(); i++) {
            arraySizeInBytes = Offset(TD3, elt) + sizeof(TD4)*blobs[i].size();  // Determine col size of each row
    
                    if ((*Blobs)->elt[i].elt1 == NULL)                {                        (*Blobs)->elt[i].elt1 = (TD3Hdl)DSNewHClr(arraySizeInBytes);                        if ((*Blobs)->elt[i].elt1 == NULL)                                    err = mFullErr;                }                else               err = DSSetHSzClr((*Blobs)->elt[i].elt1, arraySizeInBytes);
                    if (err == mgNoErr)                {                        (*((*Blobs)->elt[i].elt1))->dimSize = blobs[i].size();
    
                            /*......................*/
    
                    }
            }
            (*Blobs)->dimSize = i;        return err;}
    

    Personaally I've usually done like this. Already, the tar of DSSetHSzClr() indicates if there was something wrong and that the handle cannot really become NULL to call this function.

    To be entirely correct and safety integrated, you must do more than that. But as long as you assume that the incoming picture is always smaller that the outgoing Board will be (usually it be 0 items when you enter this function, but if you reuse sort table in the diagram, by storing it in a registry change for example, this may not be true more) this will be enough.

  • can how I stop letter from 1 to another or Word in the line above or below the line as I type

    When typing the characters of the jumps in other words words, back at the beginning of the line when I have finished typing to the end of the line, or in the line above or below the typing and I must keep my typing.

    Hello

    Check with the manufacturer of system support, documentation in line, or forums as there probably
    are shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad
    entries) and some have a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touch pad-
    The driver tab - click on Update Driver (which is may not make anything like MS is far behind certifying)
    (drivers), now right CLICK on the touchpad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in).
    RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad
    of work.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we must
    Clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    ==========================================

    This utility also allows to control the TouchPad:

    TouchFreeze
    http://code.Google.com/p/TouchFreeze/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • RELAY CONTROL WITH THE HELP OF USB-6008

    Hi all I'm new to labview, I want to control the relay using USB-6008. could someone help me find valuable solution, because this is my final project mechanical engg. I need the electrical diagram and whether it is digital command also mention details of ports/lines I have to connect.

    In this, I joined the relay diagram, in which I have to just to magnetize this nucleus to attract this soft iron. so I need to do ON and OFF. Please guide me and thanks in advance too.


  • Try to use my modem to broadband Cricket to get on the line, but something seems to block it.

    try to use my modem to broadband cricket to get on the line, but something seems to be block it

    Hello

    My name is Danny on behalf of Cricket Wireless.

    Please go to your full service nearest Store of Cricket or call the customer care of Cricket broadband at 1-800-CRICKET.

    Prior to contact our Customer Service team, make sure you have the following information:

    -An operating system (e.g., Windows XP)

    -Number of device Modem Wireless cricket (DND) assigned to your wireless modem. To find your MDN, please use the following steps:

    1. Insert the device into the USB port of your computer
    2. Open Cricket Broadband Connection Manager
    3. Go to help > about, your phone number is listed as your DND

    Thank you
    Danny on behalf of Cricket Wireless
  • hp4500 ignore the lines

    My HP Officejet 4500 wireless printer does not print every 3rd line of a MS word or pdf document.  I cleaned and replaced ink cartridges with no luck.  I downloaded printing & scanning HP doctor, but he finds everything agree & printed a page of test very well.  My laptop is Win 7 Enterprise 64-bit and I connect via USB cable to the printer HP4500.  This started happening about 3 months ago or not.

    Some things print correctly.  However, the windows test page prints not top of letters on certain lines.  HP4500 test page was printing fine, but today that she also does not print the top of letters on every 3rd line looks like now.

    Any ideas?  Thank you

    I had to clean the print head, but I couldn't understand where it was (and it was not an option of Toolbox). However, I found online that I could clean the print cartridge (no contacts) with alcohol and water on a Q-Tip. I noticed that the black cartridge had a smear of ink where the color, there is not then I removed with a couple of q-tips in the solution and let it dry. I also read online to draw power without stopping. After having done these two things, my printer is no longer skip lines or cut the top of the lines.

Maybe you are looking for

  • HP M7246N Media Drive Bay Center

    I have a HP M7246N Media Center Tower, when I insert a HP Personal Media Drive in the Bay, the meter turns, I do not see that the drive listed with others my computer staff media USB keys. Where you see the player. I have to do something. I bought br

  • Graphic driver NVIDIA on my Satellite 5100 problem

    Hello I have a Toshiba S5100 201, which worked well and the very annoying problem with the Nvidia graphics driver. After a lot of research on the web, it seems that a solution to the problem was not found. If anyone has had better luck than me, pleas

  • Equium A60: Does not burn the DVD?

    Hi all Ive had my phone for almost a year now and for some reason any dvd drive does not burn the DVD, it burns cd perfectly but when it comes to bruning DVD it says that nothing is in the drive... Ive tried Philips DVD + RW and DVD + R Sony but stil

  • Windows 7 on Thinkstation S10 6483

    We want to know if its possible on a Thinkstation S10 6483 supported Windows 7? Thank you Bill

  • HP SOLUTIONS CENTER

    PHOTOSMART B110A cn 245 Windows 7. Can not find the icon of the center of HP solution on the desktop, so cannot use the computer to control all tasks such as scanning, printing, copying or select options. -must go to the printer in the next room and