Why not split VI in two files?

When trying to use a version control system that doesn't rely on file locking together with LabVIEW, you will sooner or later run into trouble with automatic recompiles.
In my case I'm using Subversion (TortoiseSVN) as my VCS and I'm very pleased with it's functionality.
But...
National Instruments have somewhere in the past decided to mix the source with the binary into the same file
That results in TortoiseSVN flagging the VI as "locally changed" when the only change was a automatic recompile that was accidently saved.
LabVIEW has a setting for not saving recompiles if the VI is locked (read-only), but this requires me to start using Subversion in "lock-modify-unlock" mode with it's disadvantages.
Instead I'm suggesting NI to split the VI into two parts:
 1. The .VI  file that contains only the "source code"
 2.  A new .VIC  file that contains the compiled code.
This way I could tell TortoiseSVN to ignore all .VIC files and continue to work with Subversion in "copy-modify-merge" mode.
Now isn't this a great idea for the next upcoming LabVIEW version ???
/LeifS

The idea itself is good, but it would not come as a shock to NI. They have heard it before. That said, a visit to the Product Suggestion Center might be helpful.
Incidentally, I don't use that option, since I prefer committing the recompiled VIs, but the help does not mention that this option is only for read-only or locked VIs. This is only implied because of the indentation the checkbox has. 
I did try it now and it didn't seem to work, but that might be a bug (e.g. maybe I needed to restart LabVIEW). I suggest you try checking it to see if it works and if not, submitting a bug report to NI, as this is something which is more likely to be changed soon than the change in the file format.
Try to take over the world!

Similar Messages

  • Split records into two files based on lookup table

    Hi,
    I'm new to ODI and want to know on how I could split records into two files based on a value in one of the columns in the table.
    Example:
    Table:
    my columns are
    account name country
    100 USA
    200 USA
    300 UK
    200 AUS
    So from the 4 records I maintain list of countries in a lookup file and split the records into 2 different files based on values in the file...
    Say I have records AUS and UK in my lookup file...
    So my ODI routine should send all records with country into file1 and rest to file2.
    So from above records
    File1:
    300 UK
    200 AUS
    File2:
    100 USA
    200 USA
    Can you help me how to achieve this?
    Thanks,
    Sam

    1. where and how do i create filter to restrict countries? In source or target? Should I include some kind of filter operator in interface.
    You need to have the Filter on the Source side so that we can filter records accordingly the capture the same in the File. To have a Filter . In the source data store click and drag the column outside the data store and you will have Cone shaped icon and now you can click and type the Filter.
    Please look into this link for ODI Documentation -http://www.oracle.com/technetwork/middleware/data-integrator/documentation/index.html
    Also look into this Getting started guide - http://download.oracle.com/docs/cd/E15985_01/doc.10136/getstart/GSETL.pdf . You can find information as how to create Filter in this guide.
    2. If I have include multipe countries like (USA,CANADA,UK) to go to one file and rest to another file; Can I use some kind of lookup file...? Instead of modifying filter inside interface...Can i Update entries in the file?
    there are two ways of handling your situation.
    Solution 1.
    1. Create Variable Country_Variable
    2. Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3. Create a new Package Country File Unload
    4. Call the Variable in Country_Variable in Set Mode and provide the Country (USA )
    5. Next call the First Interface
    6. Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    7. Now run the package .
    Solution 2.
    If you need a solution to handle through Filer.
    1. Use this Method (http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value ) to call the File where you wish to create store the country name into the variable Country_Variable
    2. Pretty much the same Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3.Create a new Package Country File Unload
    4.Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    5. Now run the package .
    Now through this way using File you can control the File.
    Please try and let us know , if you need any other help.

  • Log4j - why not logging RuntimeException to the file?

    log4j.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="true"
         xmlns:log4j="http://jakarta.apache.org/log4j/">
         <appender name="Console" class="org.apache.log4j.ConsoleAppender">
              <layout class="org.apache.log4j.PatternLayout">
                   <!-- l, L, M - is extremely slow. It's use should be avoided unless execution
                        speed is not an issue. -->
                   <param name="ConversionPattern" value="%d{[dd MMM yyyy HH:mm:ss.SSS]} %l %p:%n    %m%n" />
              </layout>
         </appender>
         <appender name="File" class="org.apache.log4j.DailyRollingFileAppender">
              <param name="File" value="logs/trace.log" />
              <param name="Append" value="true" />
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{[dd MMM yyyy HH:mm:ss.SSS]} %l %p:%n    %m%n" />
              </layout>
         </appender>
         <root>
              <level value="ALL" />
              <appender-ref ref="Console" />
              <appender-ref ref="File" />
         </root>
    </log4j:configuration>and all logging to the file and to the console. OK.
    But when throw RuntimeException (e.g. java.lang.NullPointerException) then logging ONLY to the console. But I also need logging to the file.
    console log WITH RuntimeException:
    [java] [09 Aug 2010 12:48:23.591] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:150) DEBUG:
    [java]     Start signing and uploading M2 documents to the CB (FTP server) ...
    [java] [09 Aug 2010 12:48:23.607] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:423) TRACE:
    [java]     Start creating m2PackDocuments from DB (from M2 documents with status 0) by SQL query:
    [java] SELECT * FROM OutDocs WHERE STATUS=0
    [java] [09 Aug 2010 12:48:23.622] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:471) TRACE:
    [java]     Success created m2PackDocuments(6)
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:158) TRACE:
    [java]     Success created m2PackDocuments(6) from M2 documents with status 'new'
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.util.M2EIManager.sendM2Pack(M2EIManager.java:178) TRACE:
    [java]     Start create M2Pack
    [java] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.isCorrectPhone(M2PackTrailer.java:361)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.setTrailer_Phone(M2PackTrailer.java:380)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.setTrailer(M2PackTrailer.java:425)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.createDynamicTrailerFields(M2PackTrailer.java:481)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.initialize(M2PackTrailer.java:489)
    [java]      at com.mycompany.myproject.pack.M2PackTrailer.<init>(M2PackTrailer.java:494)
    [java]      at com.mycompany.myproject.pack.M2Pack.initialize(M2Pack.java:28)
    [java]      at com.mycompany.myproject.pack.M2Pack.<init>(M2Pack.java:32)
    [java]      at com.mycompany.myproject.util.M2EIManager.sendM2Pack(M2EIManager.java:179)
    [java]      at com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:165)
    [java]      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    [java]      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    [java]      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    [java]      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    [java]      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    [java]      at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    [java]      at java.awt.Component.processMouseEvent(Unknown Source)
    [java]      at javax.swing.JComponent.processMouseEvent(Unknown Source)
    [java]      at java.awt.Component.processEvent(Unknown Source)file log WITHOUT logging RuntimeException:
    [java] [09 Aug 2010 12:48:23.591] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:150) DEBUG:
    [java]     Start signing and uploading M2 documents to the CB (FTP server) ...
    [java] [09 Aug 2010 12:48:23.607] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:423) TRACE:
    [java]     Start creating m2PackDocuments from DB (from M2 documents with status 0) by SQL query:
    [java] SELECT * FROM OutDocs WHERE STATUS=0
    [java] [09 Aug 2010 12:48:23.622] com.mycompany.myproject.db.DefaultDBStrategy.createM2PackDocuments(DefaultDBStrategy.java:471) TRACE:
    [java]     Success created m2PackDocuments(6)
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.views.OutgoingTabView.actionPerformed(OutgoingTabView.java:158) TRACE:
    [java]     Success created m2PackDocuments(6) from M2 documents with status 'new'
    [java] [09 Aug 2010 12:48:23.685] com.mycompany.myproject.util.M2EIManager.sendM2Pack(M2EIManager.java:178) TRACE:
    [java]     Start create M2Pack

    Because you're not catching the exception. You're letting it bubble up to Swing's default exception handler, which doesn't know about Log4J.
    One solution would be to put a catch (Exception ex) in OutgoingTabView.actionPerformed, and explicitly log it there. I picked that method (rather than any of the ones lower on the stack trace) because catching the exception there is equivalent to saying "don't perform the action."
    However, this solution isn't very good, because it would let your program continue in a probably-incorrect state. NullPointerException generally indicates a programming error: after all, if you expected that a particular value could be null, you wouldn't blindly dereference it, right? And while you could write code to undo anything that happened before the exception, a better solution is to log any available information, pop a dialog apologizing to the user, and shutting down.
    Perhaps better, you could replace the event dispatch thread's [uncaught exception handler|http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html#setUncaughtExceptionHandler] with something that writes the log and then exits. That will keep you from adding try/catch blocks to all of your action listeners.

  • Why require cap file why not only class file as in java

    why do we convert .class to .cap file why not simply load the .clss file to the card

    If Java Card has to accept .class file, it's certain
    that JCVM developers are going to spend more and more
    nights in their office.
    Just kidding. I'm one of them.LOL :)
    Put the CAP file converter on-card.

  • RMAN splite in two files

    HI,
    I am having one 9i database on windows.up to last week it was well functioning but suddenly the rman backup file shown to be got splits in two files.innitially my file size is around 3GB but now it shows spliting in two, one of 2GB and another 1GB.I'm not getting why this happnig.pls help me ..thanking in advance.
    Edited by: Nareshs on Mar 17, 2009 10:17 PM

    Hi,
    Pls find the output...
    RMAN>
    Starting backup at 24-MAR-09
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=11 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00002 name=D:\ORACLE\ORADATA\TRAINING\UNDOTBS01.DBF
    all files...................
    channel ORA_DISK_1: starting piece 1 at 24-MAR-09
    channel ORA_DISK_1: finished piece 1 at 24-MAR-09
    piece handle=E:\DATABASE_BACKUP\DAILY_BKP\TRAINING\HOT_OPEN\KSKAO0RM_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:09:06
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00015 name=D:\ORACLE\ORADATA\TRAINING\DEVLOPERS.DBF
    all files...................
    channel ORA_DISK_1: starting piece 1 at 24-MAR-09
    channel ORA_DISK_1: finished piece 1 at 24-MAR-09
    piece handle=E:\DATABASE_BACKUP\DAILY_BKP\TRAINING\HOT_OPEN\KTKAO1CP_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:05:38
    Finished backup at 24-MAR-09
    Starting Control File Autobackup at 24-MAR-09
    piece handle=D:\ORACLE\DATABASE\C-4019243942-20090324-00 comment=NONE
    Finished Control File Autobackup at 24-MAR-09
    RMAN>

  • BPM was Picking two files but it was not processing 2nd file data in target

    Hi all,
    I have designed scenario for picking two files and i want to merge this files into single structure and send it target.when i am try to testing my bpm was picking two files but it is processing only file it went target system.i have steructe for source like
    source1     target
    root        header
    a           item 0 to unbounded
    b            a
    c            b
                 c
    source2     item1 duplicated structure
    a            a
    b            b
    c            c
    i am getting two source files with the same structure but i have to map it one target structure and i want to map both source fileds to one target structre under item node so i was duplicated item node and mapped a b c fields from both(2 source structures).while testing BPM is picking two file bu in the target i am getting only first file data under item node,whatever i mapped with duplicate structure with second file i am not getting into target file(target is standard proxy structure so cant' create new one item node in that occurance is 0 to unbounded thats y i duplicated node while testing interface mapping its working fine).can anyone suggest solution for this problem.
    Thanks,
    Seshagiri.

    Hi,
    In BPM follow the below steps and hopefully your problem will be solved.
    1.     Configure one sender CC to get the files from your application server, once the files hit the BPM now you need to
                         configure your BPM accordingly.
    2.     Use the Receiver step in BPM to receive the messages. Use the correlation step to get the correct files.
    3.     Use container and append the files, so both the files will be append, this means the message content will
                         have 1header, body, footer, 2header, body, footer.
    4.     If you want to split the message to different receiver then use the fork step else leave it.
    5.     Use the transformation step, the transformation step will call the message mapping. Provide the correct message
                         mapping.
    6.     Now use the sender step to send the message to the receiver-target system. In this step use the split value for each
                          concept if you want to generate two different files.
    7.     Configure 1 receiver CC to generate both the files.
    Hope this helps.
    Cheers,
    Jay

  • If I drag and drop ripped songs out of itunes why do I get two files appearing

    hi
    wondering why I see two files (that appear identical in name) appear when I drag and drop previously ripped songs out of my itunes library. For example I've noticed this when I drag and drop songs on to the desktop and then I drag them from there on to my portable music player.
    the duplicares only appear once files are placed on to portable player, not on desktop ot even memory card that one of my players use
    both files have the same extension (eg aiff or m4a)
    only one will play
    why do I see two?
    why does only one play?
    does the 2nd (phantom) file take up space?
    any ideas?
    cheers
    peter t

    Never import one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    The only way to merge Libraries is with the paid ($20) version of iPhoto Library Manager
    Best way forward: Restore your back ups to the point before you did this and start over using Library Manager

  • HT203175 Why can most of my Original Files not be found ?

    Why can most of my Original Files not be found ?

    The "missing file" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then say no when asked to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions. I can provide a step by step guide if you give me the two paths.
    In some cases iTunes may be able to repair itself if you go through the same steps and locate the lost track. It may then offer to attempt to automatically fix other broken links. Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes.
    tt2

  • Finder can not  find and display certain files. Why? Any fix,please?

    I've discovered to my surprise that Finder can not  find and display certain files. Computer is Mac book OS X (10.6.8)
    No matter what Finder settings I use, there are files which it can not detect and display.
    Here are just some examples of files sitting in the HD but Finder can not display them:
    Located in  preference panes :
    fibre channel 1.7
    Located in :    /Library/StartupItems/BRESINKx86Monitoring
    BRESINKx86Monitoring
    FxLicenseManager
    Located in    /Library/StartupItems/FxLicenseManager
    EAP8021X
    Located in    /System/Library/PrivateFrameworks/EAP8021X.framework
    The questions:
    What to make of this inability of Finder to ,well, find? (again - I tried all possible settings of Finder!)
    Is there any way to fix it?
    Thanks for any competent suggestion!

    Well, guys,
    Interesting suggestions but the problem remains -Finder (aka Spotlight) is not capable to find certain files.Period.
    I consider it as a fault of the system because in comparison, a search facility of a plain Windows based machine is capable to dig out and display any file, no matter now deeply hidden...
    As far as the suggestion above by softwater  goes , well, I've used the additional foptions  extensively and nothing produced the result needed -that's why I created this discussion.
    If someone still believes that using Finder with all its options is good enough, here is a test for you to perform on your own Mac:
    -Open  /Library/StartupItems/ and have a look inside - most likely you have a bunch of items. Write down the names of one or two of them. For this test I've chosen
    FxLicenseManager  located in    /Library/StartupItems/. You can use any file you want grom this location...
    - Then go to  Finder and set it to display everything in Library of the HD. Remember - for this test you pretend you don't know any file name in this folders.
    If the Finder works properly it shall display  folders  of Library >Startup items with all stuff inside, including the FxLicenseManager file I used for this test.
    Finder displayed nothing. It is obvious that for Finder, certain locations are off limits. That's why I consider Finder as a faulty.
    Of course if someone can set the Finder's  options to do the above search and succeed, I'll be glad to try ...:-)
    At this point, what I gather from this discussion is that :
    1. Finder (Spotlight) feature is not to be trusted,despite number of fancy but rather useless options.
    2. If you need to really find everything usually not displayed by Finder you better get real  searching software.

  • HT1589 Why does creating a new library only look for mp3 and AAC files. why not ALAC and AIFF ?

    I want to add a new library so i can use on sepcific devices. However it does not att AIFF or ALAC files. I always import using AIFF into my standard library.
    If i want to use only mp3 files in the new library do i have to create them first in my standard library then they will appear in the new library. then delete from the original library but keep files?
    Thanks
    Stu

    Palace1971 wrote:
    Thanks for info
    However when i created new library it only imported 30% of the music i have
    Then it may have stalled, ot there could be permissions problems... Try adding the folder again or use iTunes Folder Watch.
    Also i dont want to downsample to 128k. i want to use 320k and still have best quality without using lossless formats to put on the iPhone
    iTunes can now downsample to 128k, 192k or 256k...
    Also i dont want to see 2 of each song in one library
    thats why i want to use two different libraries.
    Yep, that bit I get, but switching in and out of libraries and trying to keep things up to date is easier said than done. I'm just trying to point out there might be an acceptable alternative that is easier to manage.
    tt2

  • PhE11: No possibility to sort my pictures by file name !  Why not ?? (Like in PhE 9)  Tha

    There is in PHE 11 Editorno longer a possibility to sort my pictures by file name !  Why not ?? (Like in PhE 9)  That creates a big problem working with my thousands of files !

    dear Brett N
    I am a new macbook user forced to give up Digital Image Pro (winXP), and looking for a photo program that sorts BY NAME. REPEAT BY NAME.
    I was ready to purchase PSE11, but luckily I read this forum and saw that in your infinite wisdom you spared every expense and removed this function.
    I have no need for face recognition, type of photo, etc.
    Should I abandon 15 years of files all sorted by where they were taken?
    I think not. For you to do this to previous owners shows a blatant disregard for them.
    I will look elsewhere and not to a Photoshop product.
    Should you provide an update that corrects this I would consider installing it on my 2 new Apple machines. Hurry though......

  • Why am I not able to export NEF files to Photoshop from Lightroom to edit. This is new. When I right click on an image, the export to PS option is not selectable.

    Why am I not able to export NEF files to Photoshop from Lightroom to edit. This is new. When I right click on an image, the export to PS option is not selectable. I've never had this happen before. I haven't used it for a few weeks, so maybe there's an update (Mac or otherwise) that's screwing things up? HELP!

    I have an Edit In - Photoshop option, but not an Export - Photoshop option.
    Obviously to have right-click Edit In to work, the photo you're right-clicking on needs to be selected.  I assume this is not the problem, and that the photo is selected.
    Mavericks 10.9.3 has a problem where the Users folder is hidden, and you need to update iTunes to fix it, but it's been a few weeks since this happened so hopefully you're up-to-date and the Users folder isn't hidden anymore.
    If you can't get things to work, I'd uninstall LR and uninstall Photoshop, then install Photoshop, and update it, then install LR and update it, as a way to get any wayward security or other OS-level things reset.

  • HT4414 When I try to purchase Mountain Lion i get an error message:  "We could not complete your purchase.  The product distribution file could not be verified. It may be damaged or was not signed."  I can purchase other apps, why not Mountain Lion?

    When I try to purchase Mountain Lion i get an error message:  "We could not complete your purchase.  The product distribution file could not be verified. It may be damaged or was not signed."
    I can purchase other apps, why not Mountain Lion.   I get the same message on my wife's IMAC.

    The only thing that worked for me was to boot in safe mode.
    Power down.  Then press power button and hold 'shift' key until grey screen with progress bar appears... Once booted and logged in just open safari and browse to applestore. 
    No trouble at all once I did this.
    Hope it helps.

  • Why can I not convert pdf into word file?

    why can I not convert pdf into word file?

    This is not a feature of Adobe Reader. You'll need either Acrobat or a subscription to one of the web-based services that Adobe offers (like PDF Pack) to do it.

  • Why can I highlight some pdf files and not others

    Why can I highlight some pdf files and not others

    Highlighting only works on text documents; a scanned document (image) cannot be highlighted.

Maybe you are looking for

  • Re: Error relating to material code when raising PR

    Dear all, I came acrossed the error "Material not subject to inventory management in plant XXXX" when trying to raise a PR by entering the material code. Checking the material created, the material is active and has been properly maintained by Purcha

  • My ipod touch 1st gen is broken

    hi my ipod touch headphone jack is broken. when i plug in any source of audio in the jack it does not play. not only that but with the new update the volume bar adjutment only comes up when you have headphones in. but when i plugged in the heaphones

  • Kindle Fire HDX - Video call - delay of speech

    the sound is there but the lips movement is delay - approx 3-4 seconds Any idea?

  • NWDS Start up problems

    Hi, My NWDS 7.0.13 is not starting up it says check the log file of .metadata folder.I have treid the option of deleting the metadata folder also reinstalling NWDS but the problem still persist.please help me  out.

  • Trouble Synching Album in iPhoto with my iPod

    I can't seem to get my ipod to synch with any photo album in my iphoto's I clicked on synchronize and picked which folder but all the pictures are grayed out. I copied all the pics to a folder onto my desktop and they did transfer but I don't want to