LIN Diagnostic mode with VI / C (DLL)

Hello all,
I'm trying to communicate with a DUT using LIN Diagnostic mode.
I'm making use of the NI PCI-8516. 
I had a look at the examples on the CD that came with the product.
There are VI and VS C examples.
With the VS examples, I saw that sending PDU packets with LIN isn't implemented.
With Flexray, it is.
I tried modifying the LIN VI examples to send PDU packets (see examples).
Everything is set on PDU and I also modified the LDF for diagnostic mode.
I tried to modify the Init LIN Frame array VI .
After running, following exeption is given: 
[IMG]http://i57.tinypic.com/2due6bn.png[/IMG]
Someone experienced this error before?
Is it even possible to use LIN diagnostic mode with a VI using NI XNET?
Does anyone by chance ever created a driver (dll/ VS project) which can communicate over LIN diagnostic mode?
Thanks in advance!!
BR Jeroen
Attachments:
LIN Frame Input Output Same Port_Test_Diag_Mode.vi ‏39 KB
NI-XNET Example subVI - Initialize LIN Frame Array_Diag.vi ‏26 KB
NIXNET_exampleLDF_dia.txt ‏3 KB

btw the Automotive Diagnostic Command Set offers LIN Diagnostics at a high level
so may check if it offers what you are looking for as already build in feature:
http://sine.ni.com/nips/cds/view/p/lang/en/nid/203​554

Similar Messages

  • My macbook pro decided to give a different res and a horizontal line follows my cursor (like a diagnostic mode or something) i have shutdown/restrted. Fixed the res but the cursor problem still exists any help please.

    I was using my mac as normal and then my resultion on mr screen changed which i have fixed using the normal methods but i still continue on getting a horizontal line whereever my cursor is even after i have restarted and shut down. The line is a white colour but my other screens seem dulled wherever this line is not following it is not a solid white. It looks like its in a diagnostic mode or somthing. Any help would be appriciated, thanks.

    It is possible there is a problem with the computer's graphics, but try a simple fix. viz. reset the NVRAM / PRAM.
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • My device only displays the Diagnostic Mode screen. Don't metter what I do. I've tryed to update itunes and reestore with latest software a few times, but it always comes back on the Diagnostic Mode screen. What's wrong?

    My device only displays the Diagnostic Mode screen. Don't metter what I do. I've tryed to update itunes and reestore with latest software a few times, but it always comes back on the Diagnostic Mode screen. What's wrong?

    Hi sayla,
    When you reloaded your software did you do a clean reload (deleting all data)? http://bbry.lv/bpv7DT
    If so, you might try doing a resettofactory using the following instructions. http://bit.ly/fMW9I4 This will reset to factory default.
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • N97 Mini running in debug/diagnostic mode?!

    Ever since i upgraded my firmware to the v12 version, my phone flashes up debugging messages in the top right of the screen in contrast inverted text.
    The messages are displayed in sequence as various action occur but do disappear when an app has opened and is ready to be used.
    The nokia maps app is a typical example: i've got 3.04 installed and when i start it up i see the following messages in sequence.....
    STARTUP COMPLETED
    LINK LAYER OPEN
    TRAFFIC REQUEST
    i then see other messages depending on what options i choose.
    Also when editing a normal text message, if i press the orange arrow key to select one of the orange symbols i see the following message: iFnKeyState=EFnKeyPressed....
    if i press it again quickly the message changes to iFnKeyState=EFnKeyPressedAgain
    and if i press something else immediately after this then i see  iFnKeyState=EFnKeyPressedNone.
    Can anyone suggest what's happening or how i can get the phone out of this mode?
    It's obiously some sort of diagnostic mode that it seems to be locked into.....i've reinstalled the firmware several times with no success at changing this "feature".
    Ps. i already know that you can get the desired orange coloured symbols by keeping the key pressed....
    Thanks in advance for your time.
    Raj
    Lumia 800
    1600.2483.8106.11500
    7.10.7740.16
    Orange UK

    What exactly are you trying to debug. At the end of your method it will go back to the next line on the calling method. You can check that in the stack window(next tab to the structure pane) where you will find the entire stack of flow. You can also use Step out of the current method in to the calling method.

  • Windows XP mode with Virtual PC will not install / two problems

    Hello!  I posted this on the Microsoft Windows Answers forums and a moderator there suggested I post it here instead.  I also searched here for similiar problems but did not find anyone having the exact same problem as I am having.  Also for
    some reason it won't let me post links, so I had to remove them.
    I have Windows 7 Pro (64 bit) and I want to follow the instructions here:
    LINK REMOVED
    to install and run Virtual PC so I can see if some legacy XP software I have will work.
    I am using a Lenovo W520 laptop with an i7 at 2.4ghz with 8GB of RAM.
    I followed step 1/step 2 and downloaded the 500MB file for Windows XP Mode.  I installed it. 
    Problem #1:  There's a note at the bottom of the page which says "Once you have installed Windows XP Mode, click the Windows 7 Start button then select All Programs > Windows Virtual PC > Windows XP Mode to begin setup. For information on how
    to set up Windows Virtual PC and Windows XP Mode, check out "Running Windows XP Mode with Windows Virtual PC" on the Support and Videos page. "
    I am looking at the All Programs view and there's absolutely nothing which says "Windows Virtual PC" or "Windows XP Mode".  I go look at Programs and Features in the control panel and indeed, Windows XP mode is installed (and taking up 1.13GB). 
    I uninstall it and re-download the 500mb file and re-install it.  It still doesn't show up in the All Programs view, doesn't add an icon to my desktop or quick launch bar, or do anything which suggests a way to start it.  It resides in C:\Program
    Files\Windows XP Mode, but there are no executeable files there.
    Problem #2: Step 3 says  "Download Windows Virtual PC".  When I click on that button, the download starts, but never works (I tried multiple times, including after a clean reboot, with nothing except Internet Explorer running) ; I get an error
    window which says:
    "Windows Update Standalone Installer
    Installer encountered an error: 0x80070422
    The service cannot be started, either because it is disabled or because it has no enabled devices associated with it." 
     What is going wrong?
     Thanks.
    Note; After posting this questio on Windows Answers, some related questions popped up and I read through them.  One post points to a posting on the Sevenforums ->LINK REMOVED which suggests that Problem #2 is my real problem because I follow
    along perfectly until step #5-E and then I get the 0x80070422 error message.

    Problem 2 is the issue, without installing a virtualization program like WVPC, XP Mode can't be used.
    Try this:
    Method 1:
    I would suggest you to follow the steps and check.
    To start the Windows Installer service in Windows 7 checks the steps below.
    a) Click on start.
    b) Type Services.msc in the start search bar and press enter.
    c) Scroll down and Double-click on the service named "Windows Installer".
    d) Check the value in the 'Startup type:' field.
    e) If it's currently set to "Disabled", then this could cause the issue.
    f) Change it by selecting "Manual" from the drop-down box.
    Method 2:
    Step 1: Make sure Volume Shadow Copy Service is set to automatic and started. To do this, follow these steps:
    a) Click on Start-Run, type services.msc, the click on OK.
    b) When the Services window loads, navigate to the “Volume Shadow Copy Service ", the double click on it to open it,
    c) Make sure the "Startup Type" says "Automatic" and
    started. If it doesn't, use the drop down menu to change it.
    d) If it already says: "Automatic", then click on the "Recovery" tab at the top, and change the "First Failure" line to "Restart the Service", then click on "apply", then OK.
    Step 2: Run Check disk to fix any bad sectors on the hard drive.
    a. Click on start and in the start search bar type CMD, right click on the command prompt icon in the programs area and then click on run as administrator.
    b. At the command prompt type chkdsk /f and then press enter.
    Now, type in chkdsk /r
    Note: CHKDSK would try to recover bad sectors on the hard disk, during this process there are chances of DATA loss from that particular sector.
    Step 3: Disable the security software and then start the backup; follow the steps mentioned in the link below
    Disable-antivirus-software
    http://windows.microsoft.com/en-US/windows7/Disable-antivirus-software
    Important: Enable the security software back once everything is done.
    Method 3;
    “0x8007042c” error message when you try to start Windows Firewall
    http://support.microsoft.com/kb/2530126
    Note: The Microsoft Safety Scanner expires 10 days after being downloaded. To rerun a scan with the latest anti-malware definitions, download and run the Microsoft Safety Scanner again.
    Note: Any data files that are infected may only be cleaned by deleting the file entirely, which means there is a potential for data loss.
    “0x80070422” error message when you try to enable Windows Firewall
    http://support.microsoft.com/kb/2617842

  • How to install photoshop CS6 in silent mode with a serial number on Win7?

    I have a serial number. Now I have to install photoshop CS6 in silent mode with this serial number in command line. How?

    Check the deployment guides in the developer center.
    Mylenium

  • Running in 64 bit mode with the 32 bit Oracle client installed

    I have seen many postings on this issue but none of the suggested solutions have helped me.
    I am running visual studio 2010 professional with SP1 on windows 7 64 bit machine. When I try to run a web service locally and call it with SoapUI, I get the following error message during OracleConnection.Open().
    Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
    I have tried setting up the build configuration and the project settings to target 32 bit but that has not helped. I have also tried removing the reference to System.Data.OracleClient that shows being under Program Files (x86) and add a new reference to the dll under GAC_64. That too did not work.
    I only have the 64 bit client installed on my machine.
    Any help will be appreciated.
    Thank you

    1. Visual Studio any version is 32 bit ONLY irrespective of hardware or OS bits.  So to DEVELOP with Oracle Client you MUST install 32 bit Oracle ODAC components. Task manager will show devenv.exe *32 (to confirm 32 bit Visual Studio application).
    2. You can run your web application inside IIS/IIS Express in your PC which independently can be either 32bit or 64bit.  If it is 64 bit, you MUST also install 64 bit Oracle ODAC components which means you'll have to install both 32bit and 64bit in your 64 bit Win7 running on 64bit hardware.
    3. In Visual Studio if you compile with "AnyCPU" as target, the resultant binaries (Web/NonWeb) can be both 32bit or 64bit.  So if target PC is "AnyCPU" or "x64", you MUST install Oracle ODAC 64 bit in the target OS if that target OS is 64bit.  You don't have to install 32bit ODAC in the target PC.
    4. One more catch to above scenario is the target OS could be 64bit simulated OS on a 32bit hardware. In such case you MUST install both 32bit and 64bit ODAC components.
    So while you ask your network team to download ODP.NET/ODAC Components make sure you ask them to download both 32bit and 64bit. Total nearly 600MB.
    Hope this helps many people out there.

  • Booting into 64bit mode with Mac Pro 2009

    I am trying to boot into 64bit mode with a 2009 Mac Pro 2.93 Quad core machine. I tried holding down 6 and 4 when restarting but no luck, it staill says no in the profiler. Any ideas why?

    If you'd like your Mac to always start up in 64 bit mode without having to hold down any keys, do this:
    Here's the configuration file approach for always booting into 64-bit. This is the best way to make your Mac always start up 64 bit as the only thing necessary is to alter one line of a configuration file. You can do that by opening the Terminal and entering:
    sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.Boot 'Kernel Flags' 'arch=x86_64'
    To return to 32 bit mode, you would repeat the command but enter an empty string, which would just be the single quotes (where arch=x86_64 is) with nothing in between.
    sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.Boot 'Kernel Flags' ''
    These commands are all one line, they're just wrapping here.
    If at any point you find you need to start up in 32 bit mode for a single use, just as you held down the 6 and 4 keys for 64 bit, you can hold down the 3 and 2 keys for a temporary change. No need to keep changing the config file over and over.

  • Using diagnostic mode on 27 inch iMac

    I was trying to get my 27 inch core i7 iMac to boot into diagnostic mode this morning by holding down the 'D' key during bootup. It just wouldn't work and kept booting up normally. Then it occurred to me that maybe this is due to the fact that this iMac comes with a bluetooth keyboard. I happened to have a usb apple keyboard around so I plugged that in, rebooted while holding down the 'D' key and voila, it worked.
    Am posting this in case anyone else is trying to go into diagnostic mode and can't figure out why it isn't working.

    Hey Frank
    Great tip, thanks for the heads-up! I've seen that quite a few times when folks are troubleshooting with key commands using a wireless board.
    I'm not sure how many folks look, but there is a "User Tips Library" where L2's and up can post tips.
    http://discussions.apple.com/forum.jspa?forumID=599
    Dennis

  • Unable to start diagnostic mode

    I have a mid-2012 macbook pro. It will not startup. during startup the status bar on the bottom of the screen starts and stalls after approx 5% of the way. I tried to startup in the diagnostic mode by holding down the D key during startup but I still get the Apple logo and the status bar displays and goes til 5%. When I first had the problem with the startup I tried to reinstall the OS but it failed with the message that the hard drive cannot be changed.
    any other way to get the diagnostic mode or test the hard drive from another system?
    much thanks
    john

    actually it is a mid-2010.

  • Diagnostic mode--battery or board?

    I have a first generation Nano with a short battery life. Is there a way of using the diagnostic mode to determine if it is due to a battery gone bad or if it is due to a hardware problem? What do the results mean in the power test??
    The Nano seems to indicate full charge fairly quickly (whether by wall charger, usb-computer, speaker base), but only provides 2 hours of play time.
    Thank you in advance!

    I went ahead and replaced the battery--all is well now, the Nano plays at least as long as when it was first purchased!

  • Unable to boot into safe mode with FileVault 2 enabled

    I was trying to boot into safe mode earlier to try and fix a few things. It looks like I can't and I suspect it is because of FV2.
    When the system starts I press shift after the tone, but then I have to release shift and enter the password and then Lion will only boot into normal mode.
    I've also tried with sudo nvram boot-args="-x" from the terminal, but while it seesm that this way Lion starts to boot into safe mode, after a while it just restarts as if something crashed etc and then again, I have to enter the password for FV and all again as in a loop, i.e. Lion won't even start this way.
    So I went into the recovery mode and I could make Lion start again at least in normale mode with sudo nvram boot-args="".
    Any idea of what could be preventing Lion from entering safe mode?
    Thanks in advance

    The symptom may be unrelated to FileVault 2. I encountered the symptom with FileVault 2 disabled and with backward conversion (decryption) complete.
    Apple reference for my bug report: 152162960. If the symptoms on your Mac compare to those on mine: progress may seem to cease during safe fsck.
    Vito, as you are comfortable with the nvram command, please try the following:
    sudo nvram boot-args="-v -x"
    Restart the computer and note the last verbose lines that appear before you sense that progress has ceased. Then please add a note of those lines to this topic.
    Additional questions
    What model is your Mac?
    What type of disk for the startup volume?
    How many files on that volume?
    Approximately how large are the attributes file and catalog file? (You might gain this information with a demo version of iDefrag.)
    My current envronment
    MacBookPro5,2
    8 GB memory
    startup from internal 320 GB rotational disk, Serial-ATA, Hitachi HTS723232L9SA62 (probably Travelstar 7K320)
    3,961,791 files
    495,744 folders /* not including the root folder */
    catalog file 3.0 GB, not fragmented
    attributes file 2.2 GB, not fragmented.
    At http://www.wuala.com/grahamperrin/public/2012/01/09/a/?mode=gallery file speedy.txt includes details of the volume.

  • Screen mode with floating windows missing in Photoshop cs6?

    Hi,
    How can I show two images open in Photoshop CS6  - next to each other?
    Going through the screen modes by pressing F like in Photoshop CS5 doesn't get me there. That screen mode with the floating windows seems to be missing.
    I need it for comparisions and for dragging layers between the two images.
    Is the floating window screen mode achievable in CS6 or how else can I put two opened images next to each other on Photoshop's workspace?
    Thanks!

    Thanks!
    It's so amusing: you get a new version of Photoshop and one of your well-known features is not where it used to be. Immediately an ancient fear takes over that the feature might have gone away.
    Which is, of course, never happening. There's even "sharpen" and "sharpen more" available in Photoshop.
    Bottom line: the new way of doing things are actually even better. You just need to pull the images off their tabs.

  • PS CS6, Full Screen Mode with Menu Bar, Zoom, Brush, Auto Pan

    There seems to be a functionality that was lost (or I can't find it) in CS6 that was in earlier versions.  When I am In Full Screen Mode with Menu and the image I am editing is zoomed in, I used to be able to shift+click my brush to extend a line.  That line would automatically reposition the image when I got to the edge of the screen.  Does anyone know if that functionality is gone or do I need to turn "something on”?
    1. I open a file
    2. I ender Full Screen Mode with Menu Bar
    3. I enlarge the photo so that its boundaries are beyond the edge of the screen
    4. I enter mask mode (doesn't matter what mode)
    5. With my brush tool I start to paint a line by holding the "shift" key and "left-click"
    6. I get to the edge of the screen
    * this is where PS would reposition the image automatically and I could keep painting my line

    Which operating system are you using?

  • Application crash with error ntdll.dll 00018fea

    Hi,
    I have a problem with my app.exe build.
    I attach a simple code; the Vi open and close a TDM file.
    If I run this Vi in Labview works fine.
    If I build the application.exe on a notebook and I run it I got "Application crash with error ntdll.dll 00018fea".
    I've tried to build the Vi on another Pc Desktop with Labview and here if I run the exe it works fine.
    On the two PC I have LV8.5; the build options are the same.
    On the notebook I've try also to reinstall LV8.5 but I got the same error.
    Can you help me?
    Thanks a lot
    Attachments:
    open tdm.vi ‏33 KB

    MicheleS wrote:
    This morning I've try to put the ntdll.dll of the other PC in the notebook but the problem remain.
    Never ever do that! You were very lucky that both ntdll.dll files were probably the same version so the exchange didn't do much but ntdll.dll is one of the core Windows DLLs were everything goes through that normal applications may access in Windows. A mixup in such a part because of incompatitible ntdll.dll with other system API DLLs might prevent your computer entirely from starting up even in safe mode.
    You should not attempt to ever switch system DLLs between different computers. In such behaviour lays insanity. If you expect a system DLL to be corrupt attempt to do a repair installation instead. Also Windows nowadays has techniques to detect if a system DLL got corrupt and will attempt to repair it, though I guess if ntdll.dll would go belly up it's likely your computer won't even start up.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-14-2008 08:05 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • When I open firefox I get a message that "A copy of Firefox is already open. Only one copy of Firefox can be open at a time"

    When I open firefox I get a message that "A copy of Firefox is already open. Only one copy of Firefox can be open at a time" Nothing I have tried fixes the problem

  • Would like to run my update plan by those that have theirs in place

    Hello again, With the help I've gotten here I think I am finally past testing and need to consider the best way to deploy updates. I've done a lot of reading and understand this facet is different for every workplace so I will skip asking for "best p

  • Motion Tween not working

    What would cause a motion tween not to work. I am using graphics for both keyframes and it is showing an arrow on my timeline, but its not gradually making it bigger. Just small, small, small, and then big all of the sudden. I tried doing the same tw

  • Select item "sent to back"

    I am trying to select an item that I have sent to the back. I can't select it no matter how hard I try. I am working from a blank template. What am I doing wrong? The deal is I have students creating a calendar and they are creating a background my u

  • Plsql tunning?

    dear expets, I have developed the following code for deletion. The scripting taking too long how to solve this issue. my constraints 1. i need to track failure record (so i used forall .. save expection.) Create or Replace PROCEDURE bill_delete(perio