Diag on flax (with Diagnostic command set auto toolkit)

Hello

I need to develop an application in Labwindows/CVI 2013 which can make diagnostic tests based on LIN. I installed the resource kit "Automotive Diagnostic Command Set" and even tried the 2 examples of NEITHER.

I have a baord PXI-8516. I just need to send and receive frames.

I know that this framework is a good example: 3C-92-F2-00-00-00-00-00-00

The problem with the example, it's that the 0x3C and 0x3D are not used. I need to know how to create and send a frame and how to receive the ansewer (it takes a few ms before reading?)

here my code (part on the callaback function):

	unsigned char dataIn [8] = {146, 242, 0, 0, 0, 0, 0, 0}; HEX: 92, F2, 00, 00, 00, 00, 00, 00
unsigned int len = 8;

switch (event)
{
case EVENT_COMMIT:

Delay (1);

for (int i = 0; i)<>
{
status = ndUDSWriteDataByIdentifier (& DiagStruct, 0x3C, dataIn, len, & success);

Delay (1);
status = ndUDSWriteDataByIdentifier (& DiagStruct, 0x3D, dataIn, len, & success);
Delay (1);
}

Thank you in advance!


Tags: NI Products

Similar Questions

  • diagnostic command set Auto popup error

    Hello

    Anyone know how to prevent ordering of diagnostic auto value error or warning message windows popup?

    Thank you.

    M.C.

    Please check the source code of your application CVI does not use similar error code checks that we use in our examples.

    The Aut. Diagnostic command Set CVI examples always contain this routine to check the State of the service.

    void CheckError (const char * Routine, long status)

    Please check your code if it contains this technique.

    Thank you very much

  • Is it possible to run DiagOnCAN with the NI-CAN driver only (without car Diag command Set)

    Hello world

    Is it possible to run DiagOnCan without using Diag command set auto - only with the NI-CAN driver (hardware I use is low tolerant speed - USB8472 and NOR-XNET)?

    G. Petko

    no problem to do with your hardware and NI-CAN frame API.

    However, you must implement the Diag and Services Transport layer on your own, which is quite a big job.

    I recommend you spend the money for automotive diagnostic command set that supports

    • NI CAN (PXI, PCI, PCMCIA, USB)

    • NOR-XNET

    • cRIO/985 x target (Pharlap and VxWorks) #.

    which means that if you plan to transfer your application in the future to different hardware target or the real-time target, that you don't need to change your app at all.

  • Automotive diagnostic command Api DLL File set

    Hello

    I am new to this community and have just one simple question.
    I installed the OR Automotive Diagnostic Command Set and activated online.

    I need some funktions in the .NET Framework and so I need the NIdiagCS.dll but I can't. Can someone tell me where I can find these data?

    Thanks for your help

    Concerning

    Must be installed in the Windows system folder

  • Black screen with the error 'Current Auto setting'

    After being on the computer for a few minutes my external monitor goes black with a message 'Current Auto adjustment' and then after a few seconds, it comes back on but only for a few minutes then it happens again.

    Hello

    If you use multiple monitors, try to use only a single monitor. If this solves the problem, but you do not use the wiring options that you want to ultimately fix the cables to the way you want, remove all floppy disks, CDs and DVDs from your computer and then try the following troubleshooting procedures in the order.

    Use the option ' enable video low resolution (640 × 480) ' start and then update your video card driver

    a. click the Start button, click the arrow next to Shut Down and then click on restart.

    b. do one of the following:

    ·          If your computer has a single operating system installed, press and hold the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, try again by waiting until the Windows logon prompt appears, and then stop and restart your computer.

    ·          If your computer has more than one operating system, use the arrow keys to select the operating system you want to start in safe mode, and then press F8.

    c. on the Advanced Boot Options screen, use the arrow keys to select activate video low resolution (640 × 480) and press ENTER.

    d. connect to your computer with an account of a user who has administrator rights.

    e. If you can see your desktop, there is a problem with your video card. Try to update your video card driver. For more information, see update a hardware driver that is not working properly.

    Diana

    Microsoft Answers Support Engineer

  • Frustrated by the strange behavior of the command SET up FIRST HP!

    I tried to define a function using the command SET the. The function is F = G * M * m / r ^ 2. No matter what I try, I still get the same generic error: INVALID INPUT. I went to the guess, user manual, half a page of information about the command SET. Better nothing, but far from what you would expect if the manual is YOUR main source of information on how to use the calculator. In the first instance, an error, here's what I discovered:

    (1) name of the function cannot be long 1 letter. They can combine the capital letters, small letters and numbers...
    (2) variable must be UPPERCASE
    (3) variables can start with a letter and followed by a unique number. ONLY THAT, nothing more

    Can someone, confirm please?

    It is quite limited. So now, instead of the calculator not work for me I have to work for it. This is the formula I: F = G * M * m / r ^ 2 and that's what the calculator would accept in the screen SET: F12 = G * M1 * M2/R ^ 2, see figure 1. Quite annoying, but I can leave with it.

    As you know, G is the gravitational constant: 6.67384 x 10 ^-11.  The calculator is supposed to to remember, so why type it again?  I went to CASE view, called my function, putting fake numbers, just to try it, had G of MAJ > units > Const > physics.  This is how my edit line looks like: F12(6.67384E-11,100,300,25)... See figure 2. Guess what? An ERROR GENERIC, no idea of what the calculator don't like on this subject. After a while, I discovered he does not like the E in 6.67384E - 11, she she likes 6.67384e - 11, and then it throws another error (Bad arguments number) see figure 3. I check everything, it looks all right.

    I decided to try my LUCK in the main screen. Everything works perfectly. He doesn't get complaint even the 'E' in G, and I get the result expected (figure 4).

    I went back to the screen set and passed under the name of the F12 function to Forc, put the numbers again, MAGIC, now this market (see figure 5).  So, after all, it seems to be the calculator do not like the numbers the function name, but he didn't complain. Come on guys, you do not buy a top of the calculator online to go through this torment.

    Can someone tell me what is the reason for the bizarre behavior?

    Hello

    DEFINE functions MUST respect the rules of the home screen in every way shape and form. For example, the variables must be valid system variables...

    DEFINE function names cannot collide with existing variables/functions names, which is why you cannot use single past uppercase to name...

    If you want to use the names of other variables that the pre sets, you will first need to create them. Betai you can create them in CASES, it is best to create in the House because, as a general rule, it is best NOT to mix things ca and home (it is much slower and is more likely to cause disorders). To create a new variable home user, just assign a value to a variable as in abc: = 5 (or 5-> abc-> where is the arrow of the sto)... You will be asked if you want to create the variable. answer Yes and you're...

    Cyrille

  • Can Canon hfg30 I use projector with automatic adjustment setting

    I shoot a lot of stage shows (musicals, games, etc.). I was shooting with the GL2, but now have Canon Vixia HF G30. With the GL2, I used the "Spotlight" setting in a car so the faces of the performers would white out. How to get the Vixia HF G30 to do the same thing? Can I use its "Spotlight" to MP4 setting "Auto mode?

    RosieZak,

    I mentioned only touching Portrait in the menu setting because that's what it is set to default.  In this case, you will change to the setting of the spotlight.  In order to use the Spotlight, the camcorder must be set to manual mode.  You don't have to manually set the exposure settings if you do not want.  Even in manual mode, auto exposure can still be used.  If you set the camcorder to Auto, he chose most of the settings on its own, so the spotlight setting cannot be used specifically.  There is always a good chance that the camcorder will make the appropriate adjustments for the scene you are looking for, then you can certainly try shooting in automatic if it will work better for you.

  • Whenever I have download an image with the command "save the image under...". ", it records in a useless file of 168 bits.

    As stated, whenever I have download an image with the command "save image under" he recorded in a useless file of 168 bits. This does not happen everytime I have save an image, but more often the not, and I don't have a lot of useless files hang out because of this. Is it possible to re - download each image 168 bits that he should have been downloaded in the first place? Is it possible to ensure that this does not happen?

    Here's what it looks like:
    http://i.imgur.com/yzgwwgC.gif?1

    This means that you are not allowed to do this action.
    The site could use a transparent overlay image to protect the actual image or otherwise has put in place a protection.
    You can check if see you the image in "tools > Page Info > Media ' and save it.

  • Hello! Pro iPad comes with a specific set of fonts in Keynote? Or is it possible ad fonts, for example with the font book?

    Hello! Pro iPad comes with a specific set of fonts in Keynote? Or is it possible ad fonts, for example with the font book?

    This is a list of the fonts installed in iOS 7, as far as I know, it has not changed for iOS 9.

    iOS 7: List fonts - Apple Support

    Fonts are embedded in the iOS, a few Apps will bring new fonts when loading the application. Keynote will use those that are pre-loaded with iOS. There are third-party fonts that can be installed, but you will need to check that they are working with the speech of the seller of these fonts.

  • My I phone screen see the black with a command like a dos {nand} system...

    My I phone screen see the black with a command like a dos {nand} system...

    Your phone has a serious problem. You can try to reboot (hold home and power at the same time for about 10-30 seconds buttons), but if that does not work, your hardware is probably fried. Make an appointment at your nearest Apple Store Genius Bar for confirmation.

  • Online application with GUI command option

    Dear all,

    I need a command line application that does not open the GUI when you add switches to the command line call. So, when I call my request without any switches, he opens the GUI and I can use it interactively. When I call my application with the command line switches, I don't want to show him anything. It would be as well to integrate the normal output and error output in the console...

    Is there a good way to do this?

    I have seen that you can create a .dll file and write a wrapper calling this .dll in C or C++. It would work for my idea too? (Although I prefer a comprehensive solution of Labview).

    Thank you already!

    Filip Verbinnen.

    Laborelec.

    LabVIEW EXEs need a Start Up VI.  The Start Up VI will show its Panel (regardless of the properties VI) when it runs.  You can run the FP. Open.Hidden method, but you can see a glance since the Panel will open and then close immediately.

    To retrieve the command line arguments, see:

    Help > find examples > tab "Search" > type 'command' > double click on CommandLine.vi

    No way (that I found) to output a value back to the command line.  Compile a DLL of the LV Application Builder project if necessary.

  • Block the ip address in the server with the command cmd win

    Hello

    In win server how can I block IP with the command cmd?
    Thank you

    The server gurus hang out more in the TechNet forums:

    http://social.technet.Microsoft.com/forums/en-us/categories

    Here, we help with questions and problems of security.

  • Call a visual basic executable file with arguments command line using LABView

    Hi all

    I try to call a visual basic executable file with a command line using LABView 2014 argument. What I'm trying to accomplish executes an executable file that communicates with a device via a COM port. So, I would open the .exe with a command line argument to communicate via com 3 using the SYSTEM Exec VI. It seems that the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

    With some programs, instead of passing in the string:

    Somefile.exe

    Instead, you can use:

    cmd /c "C:\Full Path\to the EXE\Somefile.exe"

    Can you tell us what exactly you are trying to run?

  • on port 162 java.exe running. I tried to kill him with the command prodess k 1289. 1298 here is the process ID. but it comes back again. I need the port 162 for sending traps.

    original title: port162

    Hi, on port 162 there is a process called java.exe running. I tried to kill him with the command prodess k 1289. 1298 here is the process ID. but it comes back again. I need the port 162 for sending traps. I first removed java completely from my pc, but still there was this java.exe. in fact, there are two java.exe if I check in the running task manager. need help. I also ran antivirus as well as anti-malware software, but no difference.

    Hello

    I suggest you to visit these links and check if it helps:
    http://www.Java.com/en/download/uninstall.jsp
    http://Java.com/en/download/help/regkey_addremove.XML

    Have you tried to change the port to Java? See this link:

    http://www.Java.com/en/download/help/proxy_setup.XML

    It will be useful.

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

Maybe you are looking for

  • Quality problems solve-able with Final Cut Express iMovie?

    I use an old iMovie HD 6 (running OS 10.6 w. Rosetta) and if I want to change the existing .mov files, they are certainly lose a lot of quality as soon as I export them. I wonder if I can stop this by the use of Final Cut Express. I tried the demo of

  • IOS 9.2.1 resolves Gmail glitch?

    It seems that many of those who have updated to iOS 9 had huge problems with Gmail, lose all their mail and other problems. Anyone know if this problem has been solved with the last update and if not, if I deleted my gmail account from my phone until

  • G560 icons on the desktop appearing does not after updating drivers

    Hi all, after updating the drivers on my G560 related to volume up/down icons, and other features appear more on the screen. For example if I turn off audio or wlan (fn + f5) I can't see these icons. Is it possible to restore them? Thanks Giovanni

  • Replacement drive DVD open/close button does not reach (model HP p6110f)

    Hi all I replaced my DVD drive on my P6110F desktop with a model from Asus. Everything works fine * except * the fact that existing teeth of the open/close Panel button do not reach the real button on the disc itself, me leaving no option but to use

  • Pavillion chromebook do not update google chrome os

    New Pavilion chromebook. I put for beta channel in the settings but reports on the generation 23stable channel butterfly. Can't get updates on reboot. I thought it was supposed to auto-update feature or is chrome like android - I'll be ages of waitin