Is possible compile .asm code to hex code?? and read&program from lb pic16f84 serial port??

Hi,
I would like to use my aplication, i use a pic 16f84, in my vi application i modify the asm code, and save it. LAter i need to use mplab to compile to hex and use icprog to pass to the pic by serial port...
Is possible do all on labview???.
Or maybe call the mplab directly to open and convert to hex file, and later call the icprog to program the pic.. without use this programs. Directly with commands do it and close the programs...
I hope any help..!
Regards, Fonsi.

Fonsi,
You certainly could write an assembler for the pic code in LV. I wrote an assembler for the old 6502 processor in LV4. The project got cancelled before everything was finished, but the concept is valid. It is a lot of work, parsing strings and tracking all the addressing modes, etc.
Whether it is worth the trouble as opposed to using the existing tools is something you will have to decide.
If the other software can be called from a command line, the system Exe.VI might be useful.
Lynn

Similar Messages

  • Is it possible to download and read books from Waterstones in the ebook format on iPad. If so how? Is there any need to download an app? Thanks

    Is it possible to download and read books from Waterstones in the ebook format on iPad. If so how? Is there any need to download an app? Thanks

    People who sell ebooks normally tell you what you need to read them, e.g.
    http://www.waterstones.com/waterstonesweb/pages/help-ebook-faqs/200001173/

  • Not Getting the Promotion Code for Trade In and Up program

    I was lured into buying a new phone from Verizon due to the trade in and up program.  From the website it says I could get a minimum $100 for my old phone when I purchased/activated a new smartphone.  I activated my new device and have been waiting for more than 5 business days for the promo code but it never arrived. I called both Verizon customer service and Verizon recycle program but they cannot help much since they can only escalate the issue.  Now I really doubt if this is a legitimate program?  Does anyone else have the same issue? Did you contact anyone who can help you?

    Karen,
    I was trying to take advantage of the "Trade In and Trade Up" promotion.  I was supposed to get a promotion code 5 days after activating a new phone.  Almost 3 weeks after activating a new phone I hadn't gotten a promotion code.
    Anyway I finally got the promotion code after 4 phone calls (2 to verizon, 2 to the recycling program).  So now I'm on to the next step and have submitted my phone trade in information.  We'll see if I have the difficulties others have described on the forums here.
    However, even if everything goes smoothly I've already wasted almost an hour of my time following up on something that should have just happened.  I would imagine most Verizon customers find it annoying to have their time wasted.
    Regards...

  • How to execute some code in command line, and read its output?

    I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
    But I want to take it one step further and read its output. is it possible?

    Hi RagnaRock,
    one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
    I hope this helps. Kind regards,
    Alvaro

  • Possible to update gui with new thread AND halt program execution?

    Hello, my problem is the following:
    I have a JButton that performs a sql query and retrieves information from a database, while this is done I would like to update a JLabel with information that the query is in progress. I have got this working but the problem is that I would like the main thread to wait until the search thread has finished execution, of course this inflictes with the gui update... look below for code:
    //class that synchronizes the threads when retrieving data
    public class SynkroniseradVektorKlass
       private Vector verde = new Vector();
       private boolean inteFerdig=true;
       public SynkroniseradVektorKlass(boolean inteFerdig)
          this.inteFerdig=inteFerdig;
       //sets the value of the vector
       public synchronized void settVerde(Vector verde)
           this.verde=verde;
           //set the boolean to false so the wait() can be avoided
           inteFerdig=false;
           //notify all threads that we have retrieved a value
           notifyAll();
        public synchronized Vector returneraVerde()
            //if no value has been retrieved, wait
            if(inteFerdig)
               try
                    wait();
               catch(InterruptedException ie){}
        //when waiting is done, return value
        return verde;
    //class that retrieves data and prints it
    //not really necessary here but useful to check that the SynkronisedVektorKlass
    // works
    public class TradHarDataKommit extends Thread
       private SynkroniseradVektorKlass hemtaData;
       public TradHarDataKommit(SynkroniseradVektorKlass hemtaData)
          this.hemtaData=hemtaData;
       public void run()
           System.out.println("Thread two begins");
           System.out.println("data == "+hemtaData.returneraVerde());
           System.out.println("Thread two done");
    //class that communicates with the database and retrieves the data
    public class NyTradKorSQLSats extends Thread
       private String sqlSats;
       private java.util.Timer timer;
       private JLabel label;
       private JFrame ram;
       private SynkroniseradVektorKlass tilldelaData;
       public NyTradKorSQLSats(String sqlSats,java.util.Timer timer,JLabel ,SynkroniseradVektorKlass tilldelaData,JFrame ram)
          this.sqlSats=sqlSats;
          this.timer=timer;
          this.label=label;
          this.tilldelaData=tilldelaData;
          this.ram=ram;
       public void run()
           System.out.println("Thread one begins...");
           //executes the sql query and retrieve data
           tilldelaData.settVerde(klient.korKlient(sqlSats));
           //end the timer that updates the JLabel
           timer.cancel();
           label.setText("");
           ram.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
           System.out.println("Thread one done...");
    //in actionPerformed
    java.util.Timer timer = new java.util.Timer();
    //boolean used to show when execution is done          
    boolean sokningInteFerdig=true;
    //class that holds a value retrieved from database and make sure that
    //everything is synchronized
    SynkroniseradVektorKlass dataFranSokning = new SynkroniseradVektorKlass(sokningInteFerdig);
    //class that retrieves information from dataFranSokning     
    TradHarDataKommit skrivUtData = new TradHarDataKommit(dataFranSokning);
    //class that executes sql query, with arguments sql, a timer that updates
    //the JLabel,the JLabel,the dataholding class, and a JFrame     
    NyTradKorSQLSats korTrad = new NyTradKorSQLSats("1Select namn from kundregister where kundnr=1",timer,statusRad,dataFranSokning,this);
    //a TimerTask class that updates the JLabel               
    TimerStatusRad task1 = new TimerStatusRad(statusRad,"Searching...",this);
    TimerStatusRad task2 = new TimerStatusRad(statusRad," ",this);
    //starts timer task1 directly and restarts every second
    timer.schedule(task1,0,1000);
    //starts timer task 2 after a second and restarts every second after     
    timer.schedule(task2,1000,1000);
    //set the sqlthread to daemon
    korTrad.setDaemon(true);
    //starts the thread                         
    korTrad.start();
    //I would like that the program halts here until korTrad is done
    //because the data retrieved are to be used further in the program
    //There is no point in using join(); because this would halt the update of the guiif anyone got any ideas how to solve this please help me
    ps. sorry about my english, its not my native language

    Was not able to review all of your code. But take a look at wait() and update() methods - they should solve what you need.
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • Qosmio X775 blue screen error Code 116 with OpenGL and video programs

    After updating windows I found that I was getting blue screen messages when I tried to use OpenGL in Photoshop or when I open Adobe After Effects and other video programs.
    The mini dump message is:
    ==================================================
    Dump File         : 072512-32151-01.dmp
    Crash Time        : 7/25/2012 8:46:34 PM
    Bug Check String  :
    Bug Check Code    : 0x00000116
    Parameter 1       : fffffa80`0b507010
    Parameter 2       : fffff880`0f39f4d4
    Parameter 3       : 00000000`00000000
    Parameter 4       : 00000000`00000002
    Caused By Driver  : nvlddmkm.sys
    Caused By Address : nvlddmkm.sys+19e4d4
    File Description  :
    Product Name      :
    Company           :
    File Version      :
    Processor         : x64
    Crash Address     : ntoskrnl.exe+7f1c0
    Stack Address 1   :
    Stack Address 2   :
    Stack Address 3   :
    Computer Name     :
    Full Path         : C:\windows\Minidump\072512-32151-01.dmp
    Processors Count  : 4
    Major Version     : 15
    Minor Version     : 7601
    Dump File Size    : 370,384
    ==================================================
    I've looked this up with no result. Can anyone help.  (Note: I am fairly literate but not a computer geek.)
    Sheilamacd
    Sheilamacd

    Hi there,
    Sorry for bringing this thread back up but I have the exact same laptop and the exact same problem. I believe I've had this problem since this thread has been posted, but have just come across this thread. I've done a factory reset through the built in recovery options but I still come across these errors (BSODs and graphical glitches, also from nvlddmkm.sys and 0x116 errors). Whenever I run a Furmark GPU stress test, the FPS is fine until I hear the fan turn on, which the frames then drop extremely low (5 fps or so). Once temperature of the GPU drops a bit and the fans turn off, the FPS rises again back to normal. This continues for awhile (dropping and going back up) until it crashes with an OpenGL error. I also did a Memtest to check my RAM, but it all checked out ok. At first I ordered a recovery disc because the recovery partition was not working for some reason (kept crashing/freezing). I tried it again recently and the recovery went through. I'm not quite sure if the built in recovery and the recovery media discs are different, but I'm hoping it will make a difference when it gets here. If the recovery disc does however not work, should I just assume its a hardware issue and send it to an ASP for repair? Extremely hesitant because of the high cost...Any help would be much appreciated. Been bothered by this issue for a month...

  • Help needed in compiling a .SCR file to VI and C program

    Hi all!
    I am a student using evaluation version of NI
    Vision assistant 8.6. I have a script file that i want to convert to
    VI. As you know we cannot do it on a evaluation version. I neither can
    afford the package right now. Please help me convert the file to VI and
    C code.
    Please mail me on [email protected]
    Will be very thankful if some one generously helps.
    Regards,
    Snapy

    Attach it as a zip file here so that it will be easy for someone to convert and update you.

  • IMFSourceReader : is it really possible to accurately seek and read samples from an MP3 source ?

    When decoding PCM data from an MP3 from position 0 and in one go there is obviously no problem. However, when I try to seek to a certain position for reading some samples, no matter what I do, the seeking is never accurate and consequently, the produced
    output is incorrect.
    (My test is quite simple, i do read blocks of 44100 samples until EOF (and do seek between each call); then i do compare the produced output with the original file using an audio editor and a phase scope. The first block is always correct, but over time
    it drifts nearly about 20000 samples and it is clearly audible as pseudo delay effect.)
    According the
    docs, you have to account for that and that's what I did, for instance when seeking to some position, the exact position in buffer starts at offset 576. But when I do check with an audio editor, the returned data is 252 samples later ...
    I've also checked my formulas that converts between REFERENCE_TIME and samples but they don't seem to be the problem:
    int64 ReferenceTimeToSamples(REFERENCE_TIME time)
    return round((double)GetSampleRate() / 10000000 * time);
    REFERENCE_TIME SamplesToReferenceTimeD(double samples, double sampleRate)
    return (REFERENCE_TIME)round((double)samples / sampleRate * 10000000);
    Question :
    Is exact sample retrieval possible when randomly seeking within an MP3 file ? If yes, then what is the approach ?
    Thank you !

    What you are experiencing is expected because an mp3 Layer III frame can be spread over several frames. For a certain bitrate/sampling_rate you can calculate the frame length.
    It is either ‘n’, or ‘n+1’, which depends on the padding bit. But, that doesn’t mean that all compressed data will fit in frame_size bytes. Also, sometimes compressed data takes less than frame_size bytes. Therefore, when frame needs to be “overfilled”,
    the extra data will be contained within next frame that can accept it. You can find more about this if you search for “bit reservoir”.
    So, what happens when you seek is that you are decoding a frame that is missing some data required to be decoded properly because that data is located in one or more previous
    frames.

  • Is it possible to leave movies on the Itouch and erase them from computer??

    I have an Itouch and have been trying to find out how to leave movies on my Itouch after I download them, and then erase them from the hard drive of my computer. I thought it would be simple to do. I tryed downloading the movie then put it on the Itouch, then synced it, then erased it from the mac, but somehow I synced the Itouch and it asked me if I wanted to copy the information from my Itouch to the computer and I didn't. Now the movie is gone from my Itouch. Please explain??

    I back up all my purchases to an ext HD. That way I can delete movies/TV shows from iTunes/iPod and still have them available for future days of boredom. You can always add them back to iTunes and watch them later or a 2nd, 3rd., etc. time.
    MJ

  • Dev question - is it possible to read the iPhone serial port?

    Hi,
    apologies if this is not the right place to ask this question. If so, please let me know the correct place.
    I am new to iPhone sw development and would like to know if its possible for a non-jailbroken 3G iphone to read/write data to the serial port (dock connector). Am trying to find out before I invest in a special device I'd like to connect.
    thanks much,
    'mark

    http://developer.apple.com/iphone/program/accessories/
    For additional information, refer to the documentation for the iPhone 3.0 SDK or ask in the iPhone developer forums.

  • Compile asm to hex file and send to microcontroller pic...

    Hi,
    I would like to know if is it possible on new labview8 to compile code asm to hex file and send the file to pic micro pic16f84??.
    Actually, I did application on lv7.1 that modified the asm code and later call to System Exec.vi to use mspanwin to compile the file to hex file, and later call to icprog program to send the file hex to pic by serial port with programer JDM. It works but i would like the external program would be invisible to user. Therefore i would like to get all with labview, but i dont know if it is possible compile any language code programming to hex file to send pic, and if it possible send the hex file with labview algorithm on new version...
    Can anyone advise me?. Thanks Fonsi.

    Hi,
    There is Labview Embedded software to program microcontrollers (http://www.ni.com/labview/embedded) but this software is only for 32-bit processors so there is no way to do that for your pic controller (8 bits).
    Unfortunatelly, I think the solution you have done (calling the other programs from labview) is the only one you can use right now.
    Regards,
    Jaime Cabrera
    NI Applications Engineer 
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

  • Send Hex code via serial

    I want to send the code 0x01 (Hex) on RS232 and read back 2048*2 Bytes..
    Anybody has an idea for make the program to send Hex code.
    Thank you very much for anybody help.

    The serial port doesn't know about U16 or U32, just bytes. So your application will need to convert the bytes to U16. There is an easy way to do this in LabVIEW using the Join Numbers vi. It takes two bytes and spits out a U16 (or two U16's and spits out a U32). Very handy.

  • Serial Port Code

    Has anybody got any code that simply opens a COM port and reads information from it - into a file or something. Nothing fancy with GUI's or anything like that. Cheers.

    Just download COMM API from http://java.sun.com/products/javacomm/index.html
    unpac them, install & take a look at samples folder.
    Look ofr SimpleRead.java and SimpleWrite.java - they are good start.

  • Read text from a string control in a compiled LabView executable from C#

    I have a third party complied LabVIEW executable and no source code.  I need to read values from the front panel in C#.  I know that LabVIEW controls and indicators are not actual windows.  Is there a way to programmatically access this information(i.e. without using screenshots and OCR)?  I couldn't find this exact question answered in this forum.  I've read a few things about VI Server doing this from LabVIEW, but I don't think you can access VI Server from C#.  Any help would be appreciated.
    Thanks in advance.

    You should certainly be able to access VI Server from C#. LabVIEW has an ActiveX server built in that allows other applications to access a sizeable subset of VI Server functionality. I would guess you could access ActiveX servers directly from C#, but the worst-case scenario would be to wrap the ActiveX calls into a .NET assembly. I've seen this done before. This blog entry is slightly off topic, but might help you.
    Actually, I do need to revise this answer... If you are working with a LabVIEW DLL, the DLL would have to be compiled with the ActiveX Server option enabled. Otherwise, LabVIEW won't include the code that allows the DLL to be hooked into using this method. So if you don't have the source and you can't recompile it, you might be out of luck. Does the DLL really not have a function that exports this string value?
    Message Edited by Jarrod S. on 10-26-2006 01:39 PM
    Jarrod S.
    National Instruments

  • Sending Hex text files to the Serial Port

    Hi,
    Does anyone know or have any experience in how to open a Hex file, read
    the data and send it down the serial port.
    Regards,
    Martin.

    Martin Stanley wrote:
    >
    > Hi,
    > Does anyone know or have any experience in how to open a Hex file, read
    > the data and send it down the serial port.
    >
    > Regards,
    > Martin.
    Martin,
    I have a vi that reads a hex file then sends the data out the serial port.
    It waits for each byte to be echoed back before sending the next one.
    As each hex number is read, it's converted to a decimal number. The number
    is used as a decimal ascii code, the ascii character is then sent to the
    serial port.
    I'm not sure if this is the most efficient way to do it, but it works.
    Walter

Maybe you are looking for

  • IPhone 4S - upgraded to 5.0.1 and lost settings options

    Hi all, I bought my first iPhone a couple weeks ago, an iPhone 4s with iOS 5.0.  After I activated it, I went through all the settings and option like any guy with a new toy.  I remember specifically that I was able to choose in Settings a) if, durin

  • Trouble shooting the export function

    I am a new user to CS4 Premiere 4.1.0 as part of my master suite program bought 2 weeks ago. I can't find any trouble shooting help or explanation of error messages in the program's help section; I have tried most of the trouble shooting steps (other

  • FrontRow & iTunes Extras

    Apologies if this has already been answered - I've had a search around and couldn't find anything definitive. Are iTunes Extras movies purchased from iTunes playable from Front Row? Even if only the movie itself shows up, that would be fine, although

  • TMS cannot open the file on the different host

    Hi! I have very simple scenario: 2 Systems (DEV and PRD) on the different hosts which should be configured in the TMS. I have done the following: - I have changed the DIR_TRANS-parameter on the PRD-host and gave him the value of the DEV in the instan

  • Use of template parameters

    I have a standard Dreamweaver template with a photo in the heading. I need to change this photo depending which page is being shown. It occurred to me that a template parameter should do the trick. I can find no help in the CS3 documentation, and the