Diffing Files in LabVIEW with Perforce?

I've read the sections of articles about doing a graphical difference in LabVIEW with Perforce here: http://zone.ni.com/devzone/cda/tut/p/id/4631#toc4 and here: http://decibel.ni.com/content/docs/DOC-1681#Graphi​cal_Differencing, but I still can't get it to work!
When I right click on a VI from the Project Explorer that is checked out and select Show Differences... Perforce complains that it doesn't know how to do the diff on the files. I assume this is because I haven't told Perforce about the LabVIEW Diff features or the .vi file extension types. How do I this? Is there an article I missed somewhere that describes this step by step?
Edit: I forgot to mention, how do I use the Compare VIs tool in Tools -> Compare -> Compare VIs? When I do this it bring up a dialog in which the first field is the VI I have open. The second field is blank, and that is the VI that I would compare the VI open to. However, since I am using Perforce, the previous file revision are in Perforce. How do I tell this dialog to compare it to a file that is in Perforce?
Thanks in advance!

In the LabVIEW help there's a LVCompare.exe topic; under that, look at "configuring source control with."  Following the directions there will allow you to show differences directly from Perforce.  However, within LabVIEW, this shouldn't be necessary -at least, it's always worked "right out of the box" for me with no further configuration.  Which of the two LabVIEW Perforce clients are you using?  You may need to use the command line version in order for differencing to work properly.
Compare VIs does not work the way you seem to expect for VIs in source control.  It simply compares any two VIs loaded in memory.  To compare with the latest version from Perforce, use Tools -> Source Control -> Show Differences.  If you want to compare something other than your current version versus the most recent revision in Perforce, you'll need to execute the diff from within Perforce.

Similar Messages

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I have written a binary file with a specific header format in LABVIEW 8.6 and tried  to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I can think of two possible stumbling blocks:
    What are your 8.6 options for "byte order" and "prepend array or string size"?
    Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?
    LabVIEW Champion . Do more with less code and in less time .

  • LabView and Perforce renaming a vi in your project

    Hi All
    Im using Perforce as our SCC and I've integrated it into LabVIEW, all OK but I have a concern that hopefully someone can shed some light on.
    If you use Perforce you will be awars that if you check out a directory then from File Explorer delete or rename  a file then Perforce is not forgiving and will not continue untill you give it back the file that you checked out. Fair enough and to do such opperations you should work within the Perforce Client.
    However I would have expected that when you tell labVIEW that perforce id your SCC and within the Project manager you rename a file for the obvious reason that you want vi and control linkages to remap, that LabVIEW would execute the correct series of commands to perforce to tell it that the file has been renamed. Because when you go to check in your project folder Perforce wants that original file.
    Has anyone experienced this and knows a workarround?
    Cheers
    Kurt

    Kurt_Cochlear wrote:
    Hi All
    Im using Perforce as our SCC and I've integrated it into LabVIEW, all OK but I have a concern that hopefully someone can shed some light on.
    If you use Perforce you will be awars that if you check out a directory then from File Explorer delete or rename  a file then Perforce is not forgiving and will not continue untill you give it back the file that you checked out. Fair enough and to do such opperations you should work within the Perforce Client.
    However I would have expected that when you tell labVIEW that perforce id your SCC and within the Project manager you rename a file for the obvious reason that you want vi and control linkages to remap, that LabVIEW would execute the correct series of commands to perforce to tell it that the file has been renamed. Because when you go to check in your project folder Perforce wants that original file.
    Has anyone experienced this and knows a workarround?
    Cheers
    Kurt
    I use SVN and you can re-link the files.  With the Tortoise front end it's as easy as selecting both files and saying that it was renamed.  That way you keep the history intact.  Maybe you can do something to that effect?
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to open a .MAT file in LABVIEW

    Hey everyone,
    I currently have a .MAT image file which I would like to open in LABVIEW to apply some image filters. However, I am unsure as to how to open the .MAT file in LABVIEW. Ideally I would like to be able to open the .MAT file without using matlab, and it seems the only way to accomplish this task is through the mathscript node. I have attached an example of the image im trying to open, as well as the LABVIEW program which I would like to use on the image. Thanks for the feedback! =]
    Attachments:
    MAT_Image_Adjust.zip ‏1779 KB

    Hi Boiler,
    1) Do you have a choice in the format you export your data from MATLAB?
    "ASCII Format
    Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format.
    From the MATLAB® environment to LabVIEW
    To save a vector or a matrix Xin ASCII format with tab delimiter, enter the following in the command window or m-script file in the MATLAB® environment:   
    >>SAVE filename X -ascii -double -tabs
        This creates a file whose name is filename, and it contains the data X in ASCII format with a tab delimiter.
    Import the file into LabVIEW using the Read From Spreadsheet File VI located on the Programming»File I/O palette.
    2) Have you tried using the mathscript node? Did you get any errors?
    "Binary Format
    Complete the following steps if you want to import or export data between LabVIEW and MATLAB®.
    From the MATLAB® environment to LabVIEW
    To read a .mat file in LabVIEW would require a VI to parse the file. This may be easier if each variable is saved to a separate file.
    " -- this was done here, no ideas if it still works,
    I want to read a Matlab MAT file into labview
    Hope this helps, James
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • HOW CAN YOU PROCESS AN AUDIO FILE IN LABVIEW?I NEED TO TIME-PITCH SCALE IT

    hello guys.
    can you insert an audio file into labview for further processing?i need to get an audio file (stored on my computer) and further process it for time-pitch scale.does anybody know how?any pointers will much be appreciated.
    regards
    alex

    hi there
    open the "Graphics & Sound" palette from the functions menu to use vis for reading/Writing wavefiles, search the examples shipped with LV for first steps. use the VIs in the "Analyze" functions palette to modify the data.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Plotting data from a text file in LabView 7.1

    This my be a stupid question, but here is goes.  Working with another person, far more LabView experience than I, a VI was created to take data and output it on the screen, real time, as an x-y plot.  Once the test was completed the data was stored in an .txt file which could be read into Excel.  Now the end user wishes to read the old data back into Labview with an x-y plot of the data, the same way it was displayed during the test.  Before I started to pound my head against the wall, thought I would ask this to the group.  Everyone has been very helpful in the pass, so hopefully this will be an easy question for the group.
    The question is how do I import a text file into Labview and plot it on an x-y screen?
    Thanks,
    Scamper

    It really depends on how you've saved the data. If you have a simple text file with x data in one column and y data in another, then you can use the code below. It's just a Read From Spreadsheet File, and Index Array, and Bundle function. Modify as needed for your actual data. If you get stuck, post a small example of your data file.
    Message Edited by Dennis Knutson on 09-17-2008 11:10 AM
    Attachments:
    Read XY Graph.PNG ‏3 KB

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Deleting a column in a text file using LabVIEW

    Hello all,
    I'm trying to delete the first column of my tab delimited text file using LabVIEW and then save it under the same file name.  Can someone show me a quick way to perform this operation.  Is this even possible with LabVIEW?  Any help would be much appreciated.
    My purpose is to automate this operation for hundreds of daily text files containing data that needs processing.  I'm currently using LabVIEW 8.2.
    Thanks!
    -noviceLabVIEWuser

    If the file is relatively small:
    Read the file using the Read from Spreadsheet File VI to get 2D array.
    Remove the column from the 2D array.
    Write out new 2D array to new file using Write to Spreadsheet File VI.
    If the file is relatively large then you will likely run into memory issues. In this case you will need to read the file in chunks. You can decide how many lines to read at a time. Use a for-loop that's set to run for the number of chunks to read (based on the total number of lines and the number of lines you want to read at a time). Hint: Quotient & Remainder function. In the loop use the Read Text File VI to read your set number of lines. Convert the lines to a 2D array delete your column, and write out that chunk of data to the new file. Rinse and repeat.

  • How to use a c file in LabVIEW

    Hi All,
    I have a c file which communicates through serial port and J1850 protocol. I want to use the C file in labview and do the communication through serial port.
    Can any one give me an idea how I have to use the c file in LabVIEW.
    Thank you.!
    ---------------- Be Good. Do Good. ---------------------

    Have you tried reading the LabVIEW Help or even searching this web site? This question has been asked MANY times. There's a section in the LabVIEW Help called "Calling Code Written in Text-Based Programming Languages." There are also several articles written on this. Here's just one: https://decibel.ni.com/content/docs/DOC-1690
    Please do the research and then come back with a more specific question.

  • How can I read fast 50 MB Excel file in LabVIEW

    Hi,
    I have created a datalog file containing string i/p and having extension ".exl". File size is around 50 MB. When I read this file using LabVIEW, it takes 1/2 hour to display data in Array. How can I minimize this read time in LabVIEW. Or is there any options available to create large datalog files with string i/p and read it fast?
    Examples are well appriciated.
    Thanks.

    What kind of file is it? If you are writing datalog files, there is no reason for giving them excel (.xls) extensions. Excel cannot read datalog files. The other way around, native excel files cannot directly be read by Labview.
    In general terms this is what you may look into:
    -use a compact file format like (real)datalog, fully binary or at worst plain ascii text file.
    -you do not have to read the whole file into memory at once, depending on your application.
    -look at your (RAM) memory space: it sounds like you are running very low on memory and the OS needs to pagefile most of it. Try closing all unnecesary programs and/or buy more memory. Also look for memory hogging inside your code: releasing data that is no longer needed will free memory used by labview. "Uninitialized" arrays for example may seriously slow down a computer.
    my two cents,
    aartjan

  • Is it possible to overwirte data in a *.pdf file using LabVIEW??

    hi,
    i have a requirement to overwrite a pdf file using LabVIEW, i have to use coloring text also.
    i have downloaded Exaprom PDF 1.0 toolkit. but it is to generate a new pdf file.
    please suggest ideas
    regards
    phani srikanthSpell Check
    phani srikanth

    Modifying an existing PDF file is several magnitues more complicated than creating one from scratch. The PDF standard is VERY complicated and contains a myriad of features with their specific syntax elements. In order to modify an existing PDF you have to be able to understand every syntax element that occures in the PDF, or you may end up corrupting the file.
    When you create a new PDF you can pick out the syntax elements that your tool supports and forget about the 95 other procent.
    There are many PDF Toolkits than can create PDF files, a few that can open PDF files and present them, and almost none that can edit them. The Adobe PDF Editor being one of the few that can do that, but nobody is going to give away such a Toolkit for free.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to open labVIEW 8 file in LabVIEW 7.1

    Hi
    I want to open a LabVIEW 8 file into LabVIEW 7.1 version? when i tried to open there is an error appiers and I couldnt open it so please give suggestion how to open it..
    Thank you 

    If you open the vi with a higher version of LV and save it, you can't open it with the earlier version, as I said before, because the vi is no backward compatible.
    What you could do is open the vi with LV8.0 and browse the menu to File >> Save for Previous Version. Then just follow the instructions given on the dialogs.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to write UDL file in Labview for Database connection

    Hi
    I am using SQL Server database. I am making connection with SQL by using UDL file. If I create  Normal UDL file in windows and make connection it happens.  I want to change or add some parameter Like database name. If I am changing this value by using labview, the file gets corrupted, and not able to make connection with SQL.
    I want to create database by program. User should not create the database. 
    Kindly suggest me the proper solution. 
    Regards
    Prabhakant Patil
    [email protected] 
    Regards
    Prabhakant Patil

    It may look like a text file, but it's not a text file that uses plain-old ASCII. If you open it in Notepad you won't see anything obvious. You actually have to open the UDL file with a hex editor, and you will see the differences. Specifically:
    The file starts with the header FF FE. This indicates Unicode. LabVIEW does not support Unicode.
    Each characters is actually 2 bytes. Thus, the first character you see in Notepad is "[" (for the section start). In hex this is 05 for plain-old ASCII, but 05 00 for Unicode (which is what's actually in the file).
    Thus, if you absolutely must write out the file using LabVIEW you will need to write it out in binary mode, inserting the 0x00 bytes, and the FF FE at the start. 
    Message Edited by smercurio_fc on 03-24-2010 09:39 AM

  • How to link a exe file in labview

    hlo
    I am using labview 7, is it possible to link a .exe file to labview,
    i am using a stepper motor controller i have their software to control & set & change settings etc.. & that is a exe file which is a dos based programme, is it possible to link that exe to labview, & i should open & run that programe (motor controller) from labview.
    thanks
    sasi

    Try to launch it with "system exec.vi." This function can execute command line commands and should be able to launch any executable.
    aartjan

Maybe you are looking for

  • Oracle.jbo.DMLException: JBO-26080: Error while selecting entity for

    I have an error like this: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for .... It happened because my application was updating a few attributes in a ViewObject, And there was a message that showed: java.sql.SQLException: ORA-009

  • Use of OS command after message processing in sender MS Access

    Hi experts, My scenario is as follows : how can i trigger a macro in ms access?...do we have OS commands ? as XI will be 64 bit compliant , and the MS access will be 32 bit complaint...will the OS command work in the sender channel?.. The other optio

  • Approval process missing payload

    Hi, I have created a custom soa compsite/approval process and it works fine ..only thing is the approver isnt getting the request payload (which contains the information of the request) so in the approvers task tab there isnt any req id it doesnts sh

  • During patchset installation I am facing problem in relink stage

    Dear Experts. I am facing this problem during patchset installation. Oracle Database Version = 10.1.0.4 Patch = 10.1.0.5 OS = Oracle Linux 5 x64 bit Its seems I am missing some rpm, but I am unable to determine. Please help me. /bin/chmod 755 /app/or

  • MacBook Pro Freezes after successfull 10.5.2 update

    I downloaded and installed 10.5.2 last night, and experienced no problems. The installation was smooth. However, this morning my MacBook Pro (2.33 ghz Intel, 2GB Ram) froze twice during normal use. First I was using Safari and the screen froze, no cu