Anyone ever write a compiler in LabVIEW

I am looking for anything anyone has done along the lines of writing a compiler in LabVIEW. I have no experience writing a compiler, and would like to know if it can be done with LabVIEW.
My goal is to create MS Executable files to perform simple tasks.
Thank you,
Mike Du'Lyea

"Labviewguru" wrote in message
news:[email protected]...
> Obviously I'm not getting my message across, so I'll try again.
>
> I want to write a compiler with LabVIEW. No, I don't want to be able
> to write code in LabVIEW and have it made into an executable. I
> basically want to write a programming language that this program can
> change into executable code.
>
> Nothing that exists today is what I am looking for, nothing I have
> seen anyway.
>
> For example. LabVIEW Application Builder converts LabVIEW code into
> either an executable file, or a DLL.
>
> I want to build an application in LabVIEW in which I enter (through a
> means I have not yet determined) instructions and the application
> compiles this set of instructions into machine code which can execute
> on my machine.
>
> Typically, compilers are written in C or C++. The tutorial I am
> reading instructs the user to create the compiler in either gcc (the
> GNU C++ Compiler) or Microsoft Visual C++ IDE (A compiler inside of an
> Integrated Development Environment.)
>
> Instead of writing this compiler in C/C++, I want to write it in
> LabVIEW. If I follow the tutorial, the compiler will take a C program
> (a .c source file) and compile it into an executable for an intel
> chipset (x86).
>
> The problem I am having is that the tutorial instructs the writing of
> the tutorial in C. As I don't have a reference manual for all of the
> libraries and commands called by the compiler and examples, I can't
> know exactly how to mimic the C code in LabVIEW.
>
> Sure, I could write it in C, create it as a DLL, and then use LabVIEW
> to call the CIN or DLL, but that would defeat the purpose.
>
> Just so that it is known, this is nothing more than a hobby project.
> I am trying to determine just how capable LabVIEW is, and at the same
> time, learn how to create a compiler. As a side benefit, I will learn
> a little bit about C/C++. I was told that the best possible way to
> learn C/C++ was to write a compiler. It gives you a very intimate
> understanding of the programming language. I figure I can kill two
> birds with one stone. Another note, this project's results will be a
> complete waste of time and effort. There are already tons of
> compilers out there. I am hoping to learn a lot about compilers,
> programming languages, and the capabilities of LabVIEW.
Labview is a very capable language in itself. To use it to compile code
written in another language would be a waste of time seeing that the whole
point of Labview is to reduce development time, not add another layer of
complexity.
If you want to learn C\C++ I recommend getting a book and working the
examples, I like Thinking in C++ by Bruce Eckel it is available for free on
electronic form or you can by the paper version.

Similar Messages

  • Has anyone ever written a driver for LabVIEW for Omega CN9500 process contollers w/Modbus protocol over RS485?

    Omega has a protocol manual to facilitate this on their web site

    Jay,
    Most folks use an OPC Server, such as Lookout Protocol Drivers (sold under package "IA OPC Servers") to communicate with devices using the Modbus protocol from LabVIEW. The KnowledgeBase below describes this method in detail.
    Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware"
    As for direct Modbus protocol VIs for LabVIEW - I have never personally used them, but I have seen many Developer Exchange posts in the past where folks have used and recommended them. Simply search this developer exchange for "modbus AND labview" and numberous discussion threads on this topic will be returned.
    Regards,
    Greg
    Caesar
    Applications Engineer
    National Instruments

  • Has anyone ever succeeded to use the scope_identity() from the LabVIEW DB toolkit ?

    Hi,
    Using LabVIEW 2014 DS, and MSSQL 2008R2.
    I have configured a table with identity, so the indexed will be incremented automatically.
    I am trying to get the ID of the last Insert command that I am using.
    I am trying to SELECT SCOPE_IDENTITY() but with no success.
    I read about trying to so it with a procedure or transaction, but I just could not succeed myself.
    Has anyone ever succeeded to use the scope_identity() from the LabVIEW DB toolkit ?
    If yes, can you please elaborate more or even share the code ?
    Thanks, 
    Amitai.

    Yes I have...let me dig out some code...
    I do my INSERT query (with a semicolon at the end) and in the same query string do a "SELECT SCOPE_IDENTITY() as inserted_id;" - essentially what you're doing here is running two queries in one - one to insert your data and the second to retrieve the ID. From what I remember of when I did this (last year?), I think scope_identity() is valid for the same connection so as you're doing both queries in the same connection it should always be valid.
    I then do this to get the ID (pardon the crappy VI snippet):
    Essentially I execute the query and the result is a 2D array that contains one row/column which is your last inserted ID.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Is anyone using testing seeing compiler lock-ups? [SOLVED]

    As the title says, is anyone using testing seeing compiler lock-ups? I've been seeing them for about two or three days. Sometimes the system will hang for a few seconds at "Starting make" with 100% CPU usage, then will continue normally. Other times it will stop in the middle of compiling and CPU usage will drop to 0. Also, I've been seeing small hang ups with patches. Maybe four or five seconds when simple patches are being applied. Bringing MAKEFLAGS down to the default 2 from 3 seems to help a tiny bit.

    fakeroot would put it in the right time frame. I linked to your bug report Anarconda as it seems like the same problem. As always if anyone has anything to add, please do:
    http://bugs.archlinux.org/task/13699

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    Take a look at this document that discusses how to monitor IMAQ memory usage:
    http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
    Hope this helps -
    Julie

  • When I try to sync my Ipad Mini, I get an error message that says "sync session failed to start".  Anyone ever deal with this?

    When I try to sync my Ipad Mini, I get an error message that says "sync session failed to start".  Anyone ever deal with this?

    Quit iTunes, restart your computer, restart your iPad and try again. If it doesn't work with a restart of the iPad, try a reset of the iPad.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Has anyone ever had a problem with their screen going all "choppy" for lack of a better word. It happens when I go from one window to the next and they sort of mesh together.

    In addition to doing this today my mouse went all crazy and it was like I had no control over it. Once I restarted my computer it was fine. I took it into the genius bar a few weeks ago, but they couldn't find anything wrong with it. If anyone has experienced something similar OR has any idea what in the world might be causing this please let me know!

    Did anyone ever suggest you reset your PRAM?
    http://docs.info.apple.com/article.html?artnum=2238
    Also might want to try resetting the SMC, although I
    doubt there's an issue there.
    http://docs.info.apple.com/article.html?artnum=304123
    I'm getting tired of people who supposedly know what
    they're doing simply guessing that resinstalling the
    OS might solve the issue. It's like trying to dissect
    a frog with a sledge hammer, and wondering why you
    didn't learn anything about anatomy in the process.
    These sorts of things, although bizarre, should be
    (and probably are) fixable without major surgery.
    Thanks for the suggestion... but I think my first question would be why these parameters would need re-setting? This is a new machine... It has never been shut down hard. It is used at most 10 hours per week... mostly using Office 2004 for MAC. I need to figure this out as I will soon need it as a Cs2/CS3 - Aperture workhorse.
    I too agree that it is best not to use a sledge when a scalpel is needed... but as a novice to the MAC world I may have been misled by Apple support. I seems to have fixed the symptoms ( some) but appears NOT to have addressed the cause... which is what I am after.
    Would TechTool Pro detect a bad HD or RAM?
    Thanks....

  • Has anyone ever had this problem and know how to fix it!!! I upload songs on to my ipod and they appear on the ipod in iTunes but after I disconnect they are not on my ipod!

    has anyone ever had this problem and know how to fix it ?? I upload songs on to my ipod and they appear on my ipod in itunes but after i disconnect  (the correct way) the songs do not appear on my ipod. If i plug the ipod back into my computer it still shows them as being on my ipod through itunes but not when i disconnect please please please help!! thankyou! (Also the songs i'm trying to upload are cd's that i have brought)

    See Grouping tracks into albums, in particular the section Missing Artist or Album not with others by same artist.
    tt2

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • TS1717 I get the following error message after installing the latest version of itunes via auto update:  "the itunes Library file cannot be saved. An unknown error occurred (-54). Has anyone ever seen this message and anyone have a suggestion what to do?

    I get the following error message after installing the latest version of itunes via auto update:  "the itunes Library file cannot be saved. An unknown error occurred (-54). Has anyone ever seen this message and anyone have a suggestion what to do?

    Hi pholewinski!
    I have a couple of articles for you here that I believe will help you with this issue. The first is an article on advanced troubleshooting, and it can be found here:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/ts3297
    If following that article's steps doesn't take care of the issue, you can try the things listed in this article, which is about permissions issues in iTunes:
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/TS1277
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Is it possible to disable the optimized compiler in LabVIEW 2010

    Hello,
    I have a project that take 3 minutes in LabVIEW 8.6 to build and now with LabVIEW 2010 it take 10.5 minutes. 3x more longer.
    In fact my project as 61 .lvproj for a total of 4300 vi's that take 1 hour to build. If I interpolate, the entire build process will take 3 hours in LabVIEW 2010. This is not acceptable
    I know that the new compiler optimize the code for better performance, but if I don't need better performance.
    Is it possible to disable the optimized compiler in LabVIEW 2010 with an INI key in LabVIEW.ini.
    Dany Allard
    Dany Allard
    Solved!
    Go to Solution.

    Jarrod S. wrote:
    One Application Builder setting you might try out to make builds go much more quickly is the Remove Unused Members of Project Libraries checkbox and the Modify Project Library File after Removi....
    This can drastically cut down the build times. Note, however, that this option does not work well if your application will load external plug-in VIs when it runs, because the libraries of those plug-in VIs may conflict with the modified libraries in the executable file. If you don't have a plug-in architecture, this will not affect you.
    The "Remove unused members of project libraries" was already selected but not the "Modify project library file after removing unused members" and selecting this cut the build time from 10.5 min to 4 min.
    Thank you Jarrod for this tips
    Dany
    Dany Allard

  • HT203200 has anyone ever had this problem? seems to be a problem in itunes, as i am having no problems downloading other files."There was a problem downloading "Outlander / Howard McCain". An unknown error occurred (-50)."

    has anyone ever had this problem? seems to be a problem in itunes, as i am having no problems downloading other files."There was a problem downloading “Outlander / Howard McCain”. An unknown error occurred (-50)."
    kinda suck to pay for something you cant use!..

    Try fixing up the validation issues...
    http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.stereogol.com%2Faudi o%2Fwimpy_podcast.php
    Not promising it will help, but it's worth a shot.

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisitio​n VI to predict when it is time to cease the acquisitio​n to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    got these vi's off ni site a while ago - see if they help
    Attachments:
    Memory_Monitor.zip ‏132 KB

  • Has anyone ever seen this error

    We just launched a vaccation tracking app with a coldfusion
    front end and an access 97 backend (dont ask). The app was tested
    for over a month and passed all tests. However we never tested for
    volume, or amount of users hitting the app. On the backend, we have
    an access table linked to a text file. Again, this tested out
    perfectly over the past month. This morning after release to the
    entire company of about 2,000 people, users began reporting this
    error:
    The text file specification 'EmployeeList Link
    Specification6' does not exist. You cannot import, export, or link
    using the specification.
    Some users logged in to the app successfully and some
    recieved this error. For those that recieved the error, we had them
    back out and re-login and then the app worked just fine.
    Has anyone ever seen this or have a guess as to what is going
    on?

    Hi,
    The right way would be to use a "real" database server.
    But you can test if db-caching can improve the issue.
    With each <cfquery> you can set a cachedwithin
    parameter. Using that should allow you to query the Access db once,
    and then have CF keep the query results in memory (for the DB as
    well as the text-file).
    You could query the complete database with no filtering this
    way, and then filter the data using QueryofQuery to output only
    records for specific users/groups/regions.
    You also need to make sure the settings in CF admin are
    configured right for this.
    The more often the database content is updated, the slower
    this solution will get though.
    cheers,
    fober
    ps. for the cachedwithin parameter in the query set a
    timeframe of forever, so the recordset never gets updated, and then
    actually execute a new query to update the recordset at the end of
    your "save a vacation" or "updated a vacation" functions. This way
    the app would only read the db when a real change to the records
    occurred.
    But like I said with 2000 users, even that may not be enough
    to get the app performing.

  • Anyone Ever Seen This Before?

    Hello,
    Has anyone ever seen this before: http://digitalmarketing1.com/MacErrorPicture.jpg
    Running an IMac Intel Core 2 Duo 2.33 GHz, Microsoft Entourage 2004 for Mac v 11.3.6.
    Opened Entourage and selected some of the tons of spam > hit Delete and there you have it! Wasn't really sure how to answer this one! It was like a Bill Gates trick question for Mac users. I had to have someone else come in the office to make sure I wasn't having a stroke or something.
    I did eventually select the highlighted button after a coin flip, but to no avail. Nothing happened. Selected the other button then thinking that MUST be the right answer! Nothing...
    Finally, an end task was the right answer. Seems to have gone away for now, but Entourage still crashes quite often. Rebuilt email, repaired permissions, etc. Nothing appears to be wrong, but clearly something was amiss.
    Any ideas?

    An unexpected exception has been detected in native
    code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
    occurred at PC=0x92150b9
    Function name=(N/A)
    I get this error when I call the same native function
    twice.Yes, many people have seen it many times when doing JNI.
    The usual reasons;
    -In the vast majority of cases (think 99.9%) there is a bug in the C/C++ code that does JNI. As usual a pointer is the problem.
    -Very, very rarely there might be a problem with something else. Like the jvm or a third party library.

Maybe you are looking for

  • Won't load on XP

    I was excited to download and try LR/4 but completely disappointed that it won't load or run under Window's XP. The error message says that I need Vista or later. The very last thing I would ever to is to "upgrade" to Vista. Adobe, get real! Yes, Win

  • Home sharing and trying to copy song from another library not working.

    Trying to copy or drag a song from one library to another in the new Itunes 11.0 is not intuitive.   The Help comments suggest there is a show button "at bottom of itunes" that will display "songs not in my library"  but I don't see that.   Anyone el

  • How do I get Firefox not to put my ctrl-v text into a picture box?

    I'm entering data into a website via Ctrl-c Ctrl-v and it is entered as a picture with a sizing box around it instead of text. This does not happen when I edit the site with IE.

  • Vendor change in PO

    Dear Experts, We have created PO for Vendor X and subsequent goods movements has taken place. As we are using QM, usage decision was also made and stock has been moved to unrestricted use. Being this PO is for material(Customer will provide material

  • Photosmart C6100 "Filter" failed

    What does the message "Stopped - "Filter" failed, 1 page" mean? How do I correct the error? I have an HP Photosmart C6100 series printer from an iMAc OS X 10.8.4 (Mountain Lion?)