Code could not be generated because an external component or driver is missing

Greetings All,
     I've using Labview for a little over a year and I have an interesting situation with regards to Labview that I came across today.  When I left off yesterday (01/11/12) my TestStand sequence was compiling fine.  Today for some reason the compiler told me that one of the VI was broken or missing a sub vi.  When I made my way through all the sub vi's in the vi that seemed to be a problem I came across "Code could not be generated because an external component or driver is missing".
     The problem started on the computer (NI PXI-8101 with WinXP and Labview 2010) located in a PXI-1044 that is in my Test Stand.  I have a complete backup on my laptop and my desktop computer which both compiling successfully with no errors.  I tried installing the directory on another PXI-8101 and got a different set of results.  The first PXI-8101 gave 100+ errors in TestStand pointing to one of my vi's and the other PXI-8101 reported only one (1) error.  The vi is basically using DAQmx vi's to create a "write to one line" action.  I'm kind of stumped as to why it works on the laptop/desktop and not the PXI computers.  All four computer are WinXP professional and Labview 2010.  I saw somethings through google search engine but nothing conclusive.  I'm hoping that someone can give me an explaination as to what is causing the error as described.  Even if I copy over the directory it doesn't fix the problem.  Thank you in advance for an information you provide with this rather interesting problem that I've encountered.  If you require addition information let me know.
Regards,
Scott
Solved!
Go to Solution.

Greetings Beau,
     Thank you for the reply.
     I loaded the offending VI into Labview (2010) with TestStand inactive.  Of course this was after I completely shutdown the computer and re-booted to ensure that nothing was resident in memory.  I've included a couple of the error list boxes in this post. 
     It comes down to a subvi that is two (2) subvi's deep.  All these vi's are doing is commanding a write or read to and from the PXI-6509.  When I check the VI at the level that has no broken run arrows (named below), nothing in the block diagram looks out of place as it should since these were installed by Labview installation.  The vi that uses these vi's looks total normal and its block diagram doesn't have anything out of the ordinary yet the run arrow is broken.  The odd part of this is that the top of the window that states the filename of the vi has an astrex at the end of the filename, even though nothing has changed in that vi.  
Here is a list of the deepest level that has no broken run arrow:
DAQmx Create Channel (DI-Digital Input).vi
DAQmx Start Task.vi
DAQMX Read (Digital Bool 1Line 1Point).vi
DAQmx Clear Task.vi
DAQmx Create Channel (DO-Digital Output).vi
DAQmx Write (Digital U8 1Chan 1Samp).vi
     I guess the real question is what is the error message ("External component or driver missing") really telling me if all of the vi's look right.  I appreciate any information you can send my way that will give me a better understanding of where this error is coming from.  The program I developed had been running without a hitch for a month an all of sudden crash.
Thank you for your time in this matter.
Scott
Attachments:
Write to one port broken VI error list.JPG ‏47 KB
Readfrom one line broken VI error list.JPG ‏46 KB
Broken_VI_Error_Screen.JPG ‏56 KB

Similar Messages

  • Compile error (Code could not be generated)

    When I try to run the attached vi I get the following error message "Code
    could not be generated correctly for this VI."
    I use Labview 7.1 under Windows XP.
    Attachments:
    ParSettings.zip ‏293 KB

    The "Representation" enum is defined differently in the "SDO Par In", "SDO Par", PDO Par In" and "PDO Par" clusters. Labview does apparently not recognice this and crashes instead of warning for incompatible data types.

  • Simulation Loop: Code could not be generated correctly for this VI

    Running LabView Simulation 8.2 on Windows XP laptop.  I have a Simulation Loop that keeps generating the following error message:
    "Simulation Loop: Code could not be generated correctly for this VI"
    The only reference I can find in my searches is to using an RTX target, which does not apply.  When I click on Show Error it just highlights the Sim Loop
    Any ideas on how to debug this?

    Perhaps you can start removing things until you don't get the error any more. How big is the code in the loop?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Compiler error: Code could not be generated

    When I tried to run the example.VI (attached) there was an error:
    Compiler error. Report this problem to NI Tech support
    copy cvt, csrc = 0X40
    bad mode in _GenCopyCOnvertNumCode xc = 0X40
    Could anyone help me in this regard.,
    Thanks in advance
    Rajesh
    Attachments:
    example_test.vi ‏44 KB

    Hi,
    If I understand correctly, all you want to do is to convert a single to a
    binary string.
    The attached VI does this. It can be turned into a subvi very easily.
    Regards,
    Wiebe.
    "Intern" wrote in message
    news:[email protected]..
    > Hi Wiebe,
    > I use LV6 and fortunately the VI runs after I changed array
    > initialisation of the last 2 inputs. But there prevails a new problem
    > in my example VI.
    >
    > There are 2 more inputs which are in single precision mode. Say,
    > N and M are the 2 inputs.
    >
    > eg.,
    > N = 40
    > M = 5
    >
    > I want the numerical conversion of those inputs as 7 bit binary value.
    > N = 40 ---> 0101000
    > M = 5 ---> 0000101
    >
    > I could convert the I/P into U8 or I8 type in wh
    ich there prevails
    > another zero at the MSB that is not interesting for my application. I
    > have also attached the updated VI along with this email. You could see
    > the inputs which are in single precision mode and the required output
    > is a 24 bit word.
    >
    > N --> 7 bit
    > M --> 7 bit
    > V --> 1 bit
    > X --> 2 bit
    > R --> 2 bit
    > n so on..
    >
    > Help me in this regard.
    >
    > Thanks in advance.
    > Regards
    > Rajesh
    [Attachment Single to Binary.vi, see below]
    Attachments:
    Single_to_Binary.vi ‏17 KB

  • Error Message: Code could not be generated successful​ly for the VI

    I created a simplified model of an 8-pole DC servo motor with friction brakes that drives an actuator through a gear train. I can't get past the subject error message. The error is about the VI named ""Sermat 3-Phase 8-Pole Motor with Friction Brake"" in the package attached. One thing I noticed is that when I make any minor modification to this VI, even a trivial one (like multiplying a signal by a gain of one, or changing the value of a gain from a to b) the VI stops complaining for a while and simulates/runs well. But as soon as you close the VI and open it up again, it goes back crazy on you again.
    I appreciate if someone can guide me as to why this happens an what am I doing wrong here. Appreciate the help :-)!
    Regards,
    Akif
    Attachments:
    Motor VIs.zip ‏508 KB

    I am getting this same error which you have already helped somebody else with. Could you be kind enough to help me too. I am attaching my VI, it contains only a Mathscript node whose commands  work perfect when typed individually on the Mathscript window.
    Regards,
    Karan Batra
    Attachments:
    mathscript_tests.vi ‏16 KB

  • "Code could not be generated correctly for this VI". What does it mean?

    What do I have to do to fix this problem?

    I am getting this same error which you have already helped somebody else with. Could you be kind enough to help me too. I am attaching my VI, it contains only a Mathscript node whose commands  work perfect when typed individually on the Mathscript window.
    Regards,
    Karan Batra
    Attachments:
    mathscript_tests.vi ‏16 KB

  • When I went to back up my MacBook to an external hard drive, an error message said the backup could not be completed because an error occurred when creating the backup folder.

    I used a backup hard drive for my previous PC, but I have not done a backup on my MacBook yet, which I got this summer. When I hooked it up to my computer, it started the backup fine, and then my computer went to sleep, and so I closed it to let it back up overnight. The next morning I saw that it had been interrupted, and that an error occurred; the backup could not be completed because there was an error in creating the backup folder. I'm not sure what to do now because my data has been erased off of my hard drive now to prepare for the backup on my MacBook, but will I be able to use this hard drive again? Will the error message always come up?  Is there anything I can do to fix it?

    I am always suspicious of using a different OS to the one that was used to run the backup.. ie if you used Snow L to backup then there is absolutely nothing wrong with using SL to restore.
    Mount the TC sparsebundle and verify it using disk utility.
    A5 here. http://pondini.org/TM/Troubleshooting.html
    You might also like to load the widget in Time Machine so you get whatever the full error message is..
    I cannot find any reference to the error code you are getting..
    My recommendation would be to try it on a different computer.. restore the whole backup to an external drive large enough to accept the whole backup.
    Use the manual methods pondini recommends.
    http://pondini.org/TM/FAQ.html
    Q16 17
    Use ethernet only. Turn off wireless so it does not enter the situation.

  • Error 8062 when I try to copy or move files on my macbook: "This operation could not be completed because an unexpected error occurred (error code -8062)". Can even not install new software now!!

    Since a few days when I try to copy or move files on my macbook, I often get an error message saying "This operation could not be completed because an unexpected error occured (error code -8062)". And then it just quits the copy or move.
    I searched a lot on the internet, but only found solutions for cases you cannot empty the trash due to this issue.
    I tried those solutions for my trash and that helped after some trying.
    However, I still have the problem with copying and moving files.
    I even cannot install new software now, as it has to copy itself to the programs-directory, and gives the same error-message.
    Who can help me??
    Cannot seem to find any info on it on the support-forums or elsewhere.
    My user-account is administrator, I use a 13" Macbook Aluminium (Late 2008). Mac OS X 10.6.8 CPU 2Ghz Intel Core Duo, RAM: 4GB 1067 MHz DDR3.
    Any help would be greatly appreciated...
    Otto

    Tips I received so far (thanks to A-Mac via Twitter http://www.a-mac.nl and Remco Kalf http://www.remcokalf.nl/)
    - make sure you have at least 10% of your harddisk in free space (I had only 5%).
    - do a PRAM-reset (http://support.apple.com/kb/ht1379)
    - perform a hardware test (http://support.apple.com/kb/HT1509)
    - make a complete backup (with for example Carbone Clone Copier, see http://www.bombich.com/)
    - after complete backup: use diskwarrior (boot from Diskwarrior DVD, first perform diagnostics, then perform "Rebuild" which rebuilds your file directory).
    So far I only cleared up some space on my HD, and already the problem occurs less.
    Still, I will go through the other tips too.
    (will post progress)

  • I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  need help

    I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  But when I have my external hard drive plug in the song will play with no problem.  What do I need to do to play my music without having the external harddrive plug in ????????  Please help

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • My partner deleted my itunes (10) library. I use a WD external back-up and retrieved my itunes library, but when i try to play a song i get the message 'could not be used because the original file could not be found Would you like to locate it?'

    My partner deleted, by accident my itunes library. I have an iMac 10.6.7, Itunes 10. I use an WD passport as an external back up and retrieved my itunes library but now get the message "could not be used because the original file could not be found. Would you like to locate it?" so itunes is not recognised the exclamation marked songs, how do i get the retrieved files recognised. At times I get fed-up with Apple blocking files being used, although I like the product its restrictions are so silly!

    You not only have to retrieve the library file from the backup drive but the actual music files (usually stored within the "iTunes Media" folder) as well.

  • What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported".

    What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported". What does that mean? I am trying to drag libraries (with metadata) to external HD...wondering what the best way to do that is?

    Kirby Krieger wrote:
    Hi Shane.  Not much in the way of thoughts - - but fwiw:
    How is the drive attached?
    Can you open large files on the drive with other programs?
    Are you running any drive compression or acceleration programs (some drives arrive with these installed)?
    Can you reformat the drive and try again?
    Hi Kirby,
    I attached the UltraMax Plus with a USB cable. The UltraMax powers the cable so power is not an issue. I can open other files. Also, there is 500GB of files on the drive so I cannot re-format it. Although, I noted I could import the entire Aperture Library. However, I do not want to create a duplicate on my machine because that would be defeating the purpose of the external drive.
    Thanks,
    Shane

  • I cannot play music from my library on either my external drive or my laptop - keep getting same message "___ song (all of them) could not be used because the original file could not be found. I have tried changing the path in prefernces many times.

    I cannot play music from my libray on either my external drive or my laptop. I keep getting the same message - "___ song (all of them) could not be used because the original file could not be found. Would you like to locate it?" I have changed the path several times under preferences and it still won't recognize any songs from either my laptop hard drive or my external drive. I can't play any music at all.

    I think I've fixed this on my machine.  If you look in the ITunes folder there is a subfolder called Previous iTunes Libraries.  In my case for some reason this contained the one which had always worked and a new one was in the main  folder.  I closed iTunes, deleted the new one, and moved the old one back to the main folder, then opened iTunes.  It then rebuilt the library and it plays correctly.  Hope it works for you.

  • Recently got a new computer and installed itunes from external drive - all music shows up in the library, however when i click on a song i receive this message "the song could not be used because the original file could not be found".  What do i do?

    I recently got a new computer and installed itunes from which had been saved onto an external drive - all music shows up in the library, however when I click on a song I receive this message "the song "abc" could not be used because the original file could not be found".  What can I do?

    I was given the option to locate the file where the song is held. If so select "locate" and direct it to the folder / file where the song is and open it. itunes then will give you the option to use this process to update all of your library. OK that as this will do it automatically instead of doing them one by one. I hope this helps.
    Martin

  • I have a pop up window that says "Sorry the operation could not be completed because an unexpected error occured (Error code -61). What does that mean?

    I am using a portable USB storage drive connected to my laptop.  I am trying to delete a file from the USB drive but it is not working. A pop up window appears that says "Sorry the operation could not be completed because an unexpected error occured (Error code -61)". What does that mean and how do I fix it?  Thank you.

    All I can tell you is that is a write permissions error. How is this drive formatted? Check the file's permissions. You can try:
    Open the Terminal application in the Utilities folder. At the prompt enter:
    sudo rm -rf
    Leave a space after "-rf" and drag the file into the Terminal window. Press RETURN. You will be prompted to enter your admin password which will not be echoed.

  • Trying to make a iPhoto Library on my external hard drive but I get "the library could not be opened because the file system of the library's volume is unsupported.

    Trying to make a iPhoto Library on my external hard drive but I get "the library could not be opened because the file system of the library's volume is unsupported."  I reformatted my hard drive to ExFAT because I want to be able to use it on PC and MAC.
    iOS: 10.10.1
    Mac Book Air
    External: WD 500 GB recently reformatted (no files on it currently)

    The iPhoto library must only be on a volume formatted Mac OS extended (journaled) - it can not be on any other format drive
    LN

Maybe you are looking for