How can I use LabView to control Altera Scripting

Hi
I have kind of run into a stone wall. I am building a production test executive based on LabView. Part of this process includes loading an FPGA image on to a CFI flash that is in the JTAG chain. I am trying to make so that the production operators don't have to open a second application, select the right FPGA and Flash navigate to the file then load it, then go back to LabView and run the rest of the tests.
Altera has a command line interface that will let me load .cdf file.  The problem is that nowhere in Altera’s documentation does it show me how to first load the “Parallel Flash Loader IP” into the FPGA. The flash loader acts as a temporary bridge between the JTAG input and the CFI Flash.  I have looked on Altera’s Forums and have had an open ticket with Altera’s support engineers for more than a week.
I can’t be the first person to want to do this; I am hoping someone here has done it before. I would really rather not try to use the activeX controls to manipulate the windows based program.
Any suggestions would be greatly appreciated (Note I am not trying to put LV code on the FPGA/Flash just use LV to control the process)  
Thanks in advance
Below is the error message and the script I am using. It almost works just missing the flash loader IP
C:\altera\12.1sp1\qprogrammer\bin>quartus_pgm -c USB-BLASTER -m JTAG  S_FPGA.
cdf
Info: *******************************************************************
Info: Running Quartus II 32-bit Programmer
    Info: Version 12.1 Build 243 01/31/2013 Service Pack 1 SJ Full Version
    Info: Copyright (C) 1991-2012 Altera Corporation. All rights reserved.
    Info: Your use of Altera Corporation's design tools, logic functions
    Info: and other software and tools, and its AMPP partner logic
    Info: functions, and any output files from any of the foregoing
    Info: (including device programming or simulation files), and any
    Info: associated documentation or information are expressly subject
    Info: to the terms and conditions of the Altera Program License
    Info: Subscription Agreement, Altera MegaCore Function License
    Info: Agreement, or other applicable license agreement, including,
    Info: without limitation, that your use is for the sole purpose of
    Info: programming logic devices manufactured by Altera and sold by
    Info: Altera or its authorized distributors.  Please refer to the
    Info: applicable agreement for further details.
    Info: Processing started: Thu Oct 03 18:16:53 2013
Info: Command: quartus_pgm -c USB-BLASTER -m JTAG S_FPGA.cdf
Info (213045): Using programming cable "USB-Blaster [USB-0]"
Info (209060): Started Programmer operation at Thu Oct 03 18:17:19 2013
Error (209062): Flash Loader IP not loaded on device 1
Error (209053): Unexpected error in JTAG server -- error code 5
Error (209012): Operation failed
Info (209061): Ended Programmer operation at Thu Oct 03 18:17:21 2013
Error: Quartus II 32-bit Programmer was unsuccessful. 3 errors, 0 warnings
    Error: Peak virtual memory: 376 megabytes
    Error: Processing ended: Thu Oct 03 18:17:21 2013
    Error: Elapsed time: 00:00:28
    Error: Total CPU time (on all processors): 00:00:03
Solved!
Go to Solution.

Hi Eric,
I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
I used a 2 element array going into a four loop
cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
Defining the working director C:\altera\12.1sp1\qprogrammer\bin
And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
Thanks for the interest though
Best regards John

Similar Messages

  • How can I use LabVIEW to send the equivalent of a CTRL D (in VT 100 format) out the serial port of my computer?

    I am trying to write a vi that interfaces with a piece of OEM equipment that is set up to talk with a VT 100 terminal. I can't seem to locate the ASCII equivalent string (if there is such a thing) of a CTRL D. Is there a vi that emulates VT 100 commands?

    If I recall, CTRL-D is EOF on most ASCII tables.
    You'd probably have to use an escape sequence
    or if you can use an unsigned 8-bit that might be
    easier.
    In article <[email protected]>, TLS
    wrote:
    > How can I use LabVIEW to send the equivalent of a CTRL D (in VT 100
    > format) out the serial port of my computer?
    >
    > I am trying to write a vi that interfaces with a piece of OEM
    > equipment that is set up to talk with a VT 100 terminal. I can't seem
    > to locate the ASCII equivalent string (if there is such a thing) of a
    > CTRL D. Is there a vi that emulates VT 100 commands?

  • HOW CAN WE USE ALV-CUSTOM CONTROL

    Dear Friends,
    How can we use the custom control ALV.please provide the sample PPT or material to learn the container ALV.
    Thanks &Regards,
    Rajkumar.A

    SAP released document on ALV custom control. Pretty cool stuff..
    http://www.saphelpbykevin.com/saphelpbykevin/modules.php?name=Downloads&d_op=getit&lid=10#dl
    Edited by: Kevin Nguyen-Tu on May 14, 2008 7:44 PM

  • How can i use labview.tl​b to control Labview from an external applicatio​n?

    Hi,
    I've been told by a labview engineer that i could use the file
    labview.tlb located in the labview install folder to control labview
    from an external application (in my case, a C# app). I'm using Labview
    6.1 under Windows 2000. This article confirms that:
    "ActiveX and LabVIEW"
    http://zone.ni.com/devzone/conceptd.nsf/webmain/54​01BE584FBAEECE862567C2006D36C7?opendocument
    But i've not been able to find out how to use this file to achieve
    what i want. I just want to be able to open/close labview, open/close
    a vi, start/stop a vi, hide/show a vi from a C# application. The above
    web page talks about activex but i really don't see the realtion
    between activex and that labview.tlb file.
    Is there so
    mebody around who knows how to use that file? Why does NI
    tell us that it's possible to do what i want to do but doesn't explain
    how (or hides this info very well)?
    Thanks

    Hi,
    > Hi I am fighting a similar problem and so far I found this: Calling
    > LabVIEW from C++ Using ActiveX
    >
    > http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?>p_guid=B45EACE3E21356A4E034080020E74861&p​_node=DZ52051&p_submitted=N&p_rank=&p>_answer=&p_s​ource=External
    Thanks for the link, i actually already found this link before. I've
    found yesterday how to use Labview.tlb, just add it to the references
    of the project, it was probably too easy for me at that time:-) But
    now, i'm still stuck as there is no doc about using the interfaces and
    classes of this activex to control labview.
    The example given on your link is made is C++ and for some reasons,
    the wrapper generated for Labview.tlb when i added it to my c# project
    doesn't seem to expose the same
    interfaces and classes as the one used
    in the C++ example. I therefore can't use the C++ example in C#.
    I've tried to do something like:
    LabVIEW.ApplicationClass a = new LabVIEW.ApplicationClass();
    Just this line causes labview to launch but then immediately throws an
    exception: "Query interface for interface LabVIEW._IApplication
    failed".
    Does somebody knows how to use that control in C#/VB.NET ?

  • How can i use labview for communicating with pic18 microcontroller through usb port?

    Hi all,
    I want to make a DAQ card using pic 18 microcontroller which has a built-in usb protocol. I have the firmware of this
    controller which will  make it as a usb device. How can i receive the analog voltages from this DAQ card in Labview? or i mean to say that how i can communicate labview with the Pic 18 microcontroller through usb port? I have also the
    mpusbapi.dll file which is for Visual C++. Can i make changes in this dll file to make it compatible with labview?

    Which labview version do you have. Up to labview 7.1 it was no USB raw communication options. I have heard it did not work well in 7.1, but from 8.x most of the errors were fixed.
    Here is a link it should be useful http://forums.ni.com/ni/board/message?board.id=170&message.id=340676&query.id=365864#M340676
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How do I use LabVIEW to control and vary the voltage on my Agilent Power Supply and simultaneously record temp from 1 DMM and voltage from another DMM?

    I am using an Agilent Power Supply  to apply a voltage to a
    thermistor to heat an Al chassis.  I want to use LabVIEW to tell
    the power supply to apply 5V for 10 minutes, then step to 7V for 10
    minutes, etc.  I am completely new to LabVIEW, so any help would be greatly appreciated!
    In addition to that, I want to place a type J thermocouple onto the Al
    surface and use a Keithley 2000 DMM to monitor the temperature (it has
    a built in conversion from V to Temp for type J).  I will also be
    using another Kelthley 2000 DMM to record the output voltage of a new
    uncalibrated thermocouple.  I would like to collect the output
    voltage for this uncalibrated thermocouple and the temperature reading
    from the type J simultaneously.  How should I go about doing this
    in LabVIEW?  I will be using version 6.1.  The power supply
    and DMMs will be connected to a PC using GPIB.
    Again any suggestions would be greatly appreciated- I have no idea
    where to begin on such a project.  I have taught myself how to
    make a basic VI- converting temp in oC to oF, but  that is as far
    as my knowledge goes.

    What you want to do should be fairly straightward and a good way to learn labview. 
    First off, if you haven't already, I would download the drivers for the Keithley and Agilent instruments.  I found the keithley drivers at the link below.  You will need to find the labview drivers for the Agilent PS at their website.  Drivers are the VI's you will use in your program to control the insturments.
    http://sine.ni.com/apps/we/niid_web_display.download_page?p_id_guid=E3B19B3E90B0659CE034080020E74861
    If you open Labview and go to the help menu and click on Labview bookshelf there is alot of information on getting you started coding labview.   This should get you started, if you have anymore questions just ask in this same thread and I am sure you will get all the help you need.
    Brian
    Message Edited by BrianPack on 09-14-2005 05:21 PM
    Message Edited by BrianPack on 09-14-2005 05:21 PM

  • How can I Use the iCloud Control Panel to pick a new folder

    I apparently moved or deleted my iCloud folder and keep getting this message Use the iCloud Control Panel to pick a new folder.  How do I do this?

    I have/had the same problem, just started this morning. I tried a system restore to a known good date. I still had the problem so I rolled restored the system to the latest.
    Thinking that it might have something to do with priviliges, I reviewed my user account and noticed it was set to "Administrator". On a whim, I switched my user account from administrator to "standard user" and I'll be... the issue dissapeared. I have no idea why. But I thought I'd pass it along.

  • How can I use a iteration control to compare with array?

    Dear All
    I have done a program and I need to test me program...but I seem to have to problem...I don't know how to use a iteration ( a for loop ) to test my program...
    My test code is written like this...
    public class ClockWatchDemo
    public static void main(String[]args)
    TimePiece[] tpList = new TimePiece[3];
    tpList[0] = new Watch(200, "Vintage", "Men");
    tpList[1] = new Clock(400, "Classic", 70);
    tpList[2] = new Clock(300, "Futuristic", 45);
    for(int i=0; i<3; i++)
    if( i == tpList[0] ) // how can I do to compare my temp integer with the array number?
    System.out.println(tpList[0].toString() + "\n");
    else
    return "";
    Please advise

    Thank you for your help but how can i compare my temp int i to the tpList array?
    I wanted to do something like this
    if( i == tpList)
    System.out.println(tpList[i].toString() + "\n");
    but I will get prompt to inform me that
    if( i == tpList[i])
    incomparable types : int and TimePiece
    Please advise.
    Thank you

  • How can we use SX_OBJECT_CONVERT_OTF_INTO_PDF function module IN SCRIPT

    Hi Gurus,
    can any one inform me,how to use  SX_OBJECT_CONVERT_OTF_INTO_PDF  function module in script..
    how can we convert  the script output into pdf file format....
    i need your help......plz
    my mail id : [email protected] 
    Thanks,
    Rajkumar.A
    Edited by: rajkumar annadurai on Feb 19, 2008 10:25 AM

    Hi, Dear
    In XI 3.0 we are tyring to setup SAPconnect;
    1 Step; Create RFC connection for Mlunxsnd file, anyway!!! we download thease file and create RFC connection; fine working no error
    2 Step: Create Nodes T-code SCOT => connection INT => and support address type like Internet its just show only "PDF, HTM, TXT" thats it its not show some others format
    3. Step; When check email T-code SOST Getting an error messages: "Connot process message in node, parameters cannot be converted"
    4. In R3 RPD and Others system when I check format its ok its show some others format which is support to be such as "ALI, OBJ, OTF, SCR, URL" ...
    How may install these format in XI 3.0
    Please Advice I will be really appriciated
    Thanks a lot
    Travis

  • How can I use LabVIEW to ground floating SCXI-1520 channels (in order not to lose scanning capabilities from the multiplexer)?

    Currently I am reading quarter bridge strain with several SCXI-1520s. When in MAX I noticed my values were no longer reading after a certain gage and as I attempted to troubleshoot, found out that the multiplexer in this module will not scan past any open channel (or if it does, channel results are not consistent) for a very logical reason. If I lose a gage, I usually lose any data from any subsequent gages which we really cannot afford.
    Are there any suggestions programming in LabVIEW (right now i'm using NI-DAQmx with an analog task set up)so that each time my loop executes, the program will check for any open channels and either not collect that data or change the order of acquisition (i.e. place the open channels last on the scan list?
    I'm open to anything that might be of help

    Yes, by "open channel" i mean that there is no signal returning from the gage because it has broken off the structure or the signal to the terminal block has been disconnected somehow.
    When I lose data, I'm referring to the data that is acquired on following channels. The behavior appears to be fairly random (which was a troubleshooting nightmare ) but usually if a channel is open, then that and those behind it in the scan order do not return any data. It returns a number like 10.357E-6 and I do not pick up any noise or fluctuations. As far as I understand, the multiplexer stops scanning at this point (open channel) because it has nothing to ground to and subsequently "hangs" - not (or randomly) scanning the following channels. I have gone through the bridge configuration and as of yet, have not figured out how to fix this using any hard-wiring techniques. I emailed NI, and was sent a library file to "ground the channels" but it actually resets the Analog input Task I have defined each loop.
    I am new to NI-DAQmx so I do not know if this will alter any configurations I already have in MAX for NI-DAQmx. Will it override? I am concerned it will slow my loop time, and also I cannot see the code for this sub.vi so am a little skiddish about using it if i do not know if it can be tailored to my app.
    What do you think? Am I on the right path?

  • How can I with LabVIEW programatically control the RS-422 port?

    I would like to talk to my hardware through the RS-422 protocal, how would I do this in LabVIEW?
    Thanks alot for ANY help.
    Brian

    Most likely the communication would be identical to what you do for RS-232, only you would use the port number associated with your serial hardware. Thus you can use VISA starting with the serial examples in LabVIEW.
    There are a few extra things like the transceiver control on NI-Serial RS-485 hardware that have special VISA calls, but those are easy to add.

  • How can I use Labview to create a graph of digital voltage signal vs. Time?

    I am measuring a digital voltage signal and I need to generate a graph vs. Time and be able to add user controls to start/stop the graphing and be able to export the graph to other programs such as MS Excel. Any help you could give would be much appreciated. Thank you.

    You probably want to use a chart. Place it inside a while loop that runs continuously. The chart should be in a case structure so it is bypassed depending on the boolean pause/continue switch.
    To save the data, get the "history data" of the chart via a propery node and save it to a file. It is probably easiest to save it to an ASCII file. Most other programs will be able to read it.
    See how far you get. If you get stuck, post your VI and we'll help you.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I use LabVIEW 6 on a SCXI-FRQ8 module?

    Hi, here is a description of our problem. We hope that you will be able to help us.
    We bought from NI, a few years ago, some SCXI-FRQ8 modules. (Those modules were made by a company called Developpement Ingenierie in France) The problem is, we can not update to the version 6 of labview since we do not have the drivers to install Labview 6. The drivers we have are for Labview 5.x and 4.x.
    Furthermore, we can not update those drivers by ourselves, since we do not have acces to the diagram of these VI drivers. We tried to contact that company, but no one answers. So maybe the company does not even exists anymore.
    We would like to be able to install Labview 6 on these modules and if we can
    make it work, we will probably buy some new SCXI-FRQ8 modules(if we can still buy them).
    Thank you

    The driver for the SCXI-FRQ8 provided by DI originally did not include the block diagrams. So if you try to use them in a newer version of LabVIEW, you will receive error messages because LabVIEW needs the source code to recompile the code into the newer LabVIEW format.
    National Instruments can provide you with the code you need to use this module with LabVIEW 6. Request this code at http://www.ni.com/ask.
    Raecine Meza
    Applications Engineer
    National Instruments

  • How can I use flex motion control VI without hardware?

    I would like to try and simulate the motion control of my system before i hook up the motion control card. But when I use the VI in flex motion contro took kit it asks for address or something and gives me an error. Can't I just simulate without hardware?

    Hello,
    The only way you can use FlexMotion without any hardware is to set it up as Open Loop Stepper Control. Otherwise, you will get errors when no encoder signal is fed back to the controller.
    Please let me know if you have any further questions.
    Regards,
    Andy Bell
    Application Engineer
    National Instruments

  • How can i use labview for notebook

    i want to know spec of notebook for install labview programm.
    thank you vermuch.
    sattaya

    Sattaya,
    here you can find the system requirements for installing the LabVIEW development environment.
    Please post merely LabVIEW related questions to the LabVIEW board. The LabVIEW community is much bigger than the motion control community, so you will get answers quicker there.
    Regards,
    Jochen Klier
    National Instruments

Maybe you are looking for

  • Sync iTunes Win(Bootcamp)/Mac using the SAME Library

    I know this question has ben asked a lot, but most of these questions are dealing with multiple physical units. I have a Mac Pro Quad Core that is running Win7 under Bootcamp. Therefore, I am using the same hardware for both operating systems. I have

  • Trouble with Leopard install...

    I am trying to install leopard on my macbook pro and it showed an icon of my HD with a yellow exclamation point, saying I needed to change my install options. The only two options were Journaled or case-sensitive Journaled. (both needing to erase my

  • ViewObject getting as row count zero ( JDeveloper 10.1.3)

    Hi All, In my code when i tried to get the viewobject rows, which had a viewlink created inside the code using the createLink() method, the viewobject is coming as with zero row count. I tried , vo.setRangeSize(-1) , vo.executeQuery() as well but sti

  • How to add filters to a recordset

    I have Dreamweaver cs5 and i need help adding a filter to a recordset. Right now I have 4 form inputs but only one recordset filter how can i add another 3 recodset filters to filter the mysql table which will be in a dynamic table?

  • "Next Approver" (Next Approver 2) on AP Invoice Approval

    Dear all, I am working on Oracle Applications 11.5.10.2. My client reported 2 problems on approving invoices and select next approver by approver 1: 1. No default value (Approver 2) is available at Notification when Approver 1 approves the first invo