Untypical uses for LabVIEW : G Abuse

I was just thinking about the times where I have used LabVIEW for things which LabVIEW wasn't actually conceived. I have used it for things as simple as replacing all \n with \r\n in a text file (Whoo hasn't, right?), to a general stopwatch on the desktop to a relatively complex data analysis software (Which dealt purely with text, no graphical output, no instrument control and so on).
I'm sure there are plenty out there who can give much better examples of areas where LV can be used which aren't within the "typical" field of automation.
There are a few discussions going on that LV WILL become a general purpose language. I personally find it interesting to acknowledge that the LV programming style defnitely offers benefits far beyond the SCADA market. Where is LV already good, and where could it be better? Especially OUTSIDE the SCADA market....
How about some examples.
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

I've said it before, I'll say it again: LabVIEW is a terrible name, because it's hard to pronounce (at least for me). B and V together just don't work.
Now, to the topic of the thread:
There is actually a project in the pipes for general open source software written in G. This is supposed to push both developers and LV forwards by doing stuff that's not "native" to LV, and (if the programs will be good enough) maybe help spread the LV word around to people who don't know it.
At the moment this is still in the very initial stages of planning, and is debated offline, but hopefully soon enough responses we are waiting for will arrive and we will know better how well this will fare. This project still doesn't have parents like OpenG, so its exact nature is still unclear. We will post more on this when we have a better idea. Anyone wishing to comment\make suggestion\volunteer to help can do so here or send an email to [email protected] . Be warned that you are unlikely to receive a personal response if you send an email there, but I promise to try and read them all. So far that box is spam-free and I hope it can stay that way.
Incidentally, my suggestion for an opening move for this project was to ask people to design some games in LV, since those are more fun. The obvious types are board games, mind games, puzzles, maybe some old style arcade games. An important thing to remember is that people have different OSes and different versions of LV, so an older version and pure G code are preferable. Since this is still in planning, I suggest that people just start writing and not post here, but wait until more light has been shed on this project.
Personal P.S.
In my opinion, unless NI does a major switch, this will be somewhat doomed to fail. I know there are people in NI who are pushing to make LV more general, but I still don't see LV competing in the near future with many of the things Java or C can do. This is not necessarily unjustified. NI makes its money from selling to a specific market and offering its product at lower costs to a wider market is not something they have to do. It is something many users hope they will choose to do, however, which is one of the main reasons this project was suggested.
Like I said, more updates will follow in the future (don't expect it to be tomorrow).
Try to take over the world!

Similar Messages

  • Can a "object reference" type from TestStand be used for Labview VIs

    I am creating a test sequence in Test Stand and I am looking to use a "object referrence" type stored in the globals of TestStand as an input to VIs that I will use later in TestStand.  The object can be from .NET or ActiveX.  I need to know if I can use a input that will support either type.

    Hi Mcfrenzy36,
    Object references can be used for LabVIEW. I have found an article that teaches how TestStand handles Activex object references. Here is the linkt o it:
    http://zone.ni.com/devzone/cda/tut/p/id/2984
    I hope that this helps.
    Regards,
    Perry S.
    Applications Engineer
    National Instruments

  • Need spartan 3e driver for LabVIEW FPGA 2011

    Hello,
    I'm looking for Spartan-3E driver for Windows 7 LabVIEW FPGA 2011.
    Thank you

    Thank you for all the helps. I do appreciate that.
    By the way, I'm wondering the latest driver on NI is used for Labview FPGA 2012 or 2012sp1?
    Just in case our department would purchase the latest version of Labivew in the near future.
    Thank you again and have a nice day.
     

  • Is it possible to build a project with Labview 2010 on a Windows XP system, that is useful for a system with windows 7 on it?

    Hi there,
    I am planning to use Labview 2010 in a short time.
    But before I'm going to use it I have some questions.
    I know it is possible to run Labview 2010 in an XP environment. But is it also possible to, when running Labview 2010 on a XP system, to build a project to a version that is useful in a Windows 7 environment?
    Or do I have to run Labview 2010, when I want to build a project that is useful on a Windows 7 system, on a system with Windows 7?
    Please give me some information.
    I hope to hear from one of you soon.
    Regards,
    Kenny
    Solved!
    Go to Solution.

    Is it possible to build a project with Labview 2009 on a Windows XP system, that is useful for a system with windows 7 on it?
    Thanks.
    Philippe B.
    Certified Associate Developer / Dépt Moyens d'essais
    www.ingenia-system.com

  • Using a "fopen" call in a DLL made with MatLab for Labview

    Dear Sirs:
    My name is Juan Crespo and I write you from Spain. I answer if you could help me with a Labview problem. This is the problem.
    I want to write a DLL for being used in labview, and i want to use matlab for write this DLL. I have been searching in the web and reading the NI "using external code in labview" manual in order to know what I must do.
    I know that if I want to use MatLab, I must build a "wrapper function" to avoid the different data type between MatLab and C. I have found on the web -Thanks to Alberto Sanchez- one example about how could a DLL could be written.
    But it exist one diference: I want to read a plain text file that has the input data. so I must read the file, store
    the data in an array and then pass this array to the "interface functions" but in a simple example this dont works
    My question is ¿How could I open a text file in order to use it as input data in a DLL in Matlab?
    Attached to this message is the code I use as "wrapper function". when I compile it there is no apparent errors, but when I try to use the DLL in a VI, an error appears.
    If I change this code and the input is made "manually" (using the VI) there are no errors. So I think that problem is in the way that Labview consider "fopen" function when I build a DLL. The "num.txt" file, where the data input are, is on the same directory that dll file and VI file.
    I hope that you can help me with this problem.
    Thank you very much in advance and please sorry for my bad english
    Best Regards
    Juan Crespo
    Attachments:
    foo_wrapper.c ‏2 KB

    Dear Juan Crespo,
    normally I don't answer questions concerning Matlab because I have no experience with it. But your question was waiting a long time and had to do something with DLL I decided to look at it.
    Your C code has a serious error. You are declaring a variabale named "in1" as "double *". You do not set this pointer to point to a variable. Then you use this uninitialized pointer in the fscanf function to read in from the file. The value is written somewhere in the address space at a place where "in1" is pointing randomly. This will cause an error or crash.
    Declare "in1" as "double" like you have declared "out". You must change some other places where you have used "in1".
    Waldemar writing from Germany
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • After Replace queue.llb and notifier.llb for LabVIEW 6.1, I can't use find examples.vi any more.

    After Replace queue.llb and notifier.llb for LabVIEW 6.1, I can't use find examples.vi any more.Error list shows that SubVI 'EF-remove queue element with exit or error stop vi': subVI is not executable.
    Attachments:
    snap158.gif ‏13 KB

    I believe that by your action, you removed the compatability VIs and it would appear that the Find Examples used the older queue functions that require the compatability VIs. I would suggest you revert back to the LLBs that were distributed with 6.1. The new queue functions are there for you to use in new development and older VIs won't be broken. You could also make a request to NI support to see about an updated Find Example that uses just the new VIs.

  • Vernier labpro VIs designed for labview 6.1/7.0 using them in labview 8.5

    Hi
    I have downloaded the labpro toolkit and mass compiled them in labview 8.5.I wanted to store the vernier sensor data using labview, however the analog data collection VIs are for Labview 6.1/7.0.
    The computer restarted and labview stuck when I tried to use the VIs.
    How can I read data and save/store it for further analyses?
    What should I do?
    Is there any compatible VIs that will run without any problem , should I download patches or any labview version?Does vernier have a solution?
    I am looking forward to hearing from U.
    Thanks

    I looked at the drivers from their web site and the code structure (as you would expect) pretty much sucks and the serial io routines need to be updated to get
    rid of all the compatability VIs, but right off hand I don't see
    anything too dire. The one exception is that if you are using the USB
    interface access is through a DLL that they wrote - that could be a big
    problem. A lot has changed since 2003.
    How are you interfaced to the device? USB or Serial? What OS are you running? Did I understand you to say that the computer crashed? What do you mean by LV "stuck"?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Error when compiling my API Programm thant i want to generate DLL for use in Labview!

    Pls see the attachment!!I use API "GetComputerName" to programm in vc6.0 to make a dll file for use in Labview.But i get the error in the attachment. Pls give me a hand!
    Attachments:
    machinename.zip ‏1493 KB
    error_when_compiling.txt ‏1 KB

    Hi,
    If you are using the CVI libraries on this you can use the GetCompName() function from the programmer's toolbox. However, your code looks fine, the only thing that you need to change is the data type of the paramenters in CompNameLength. Just declare them using the predefined Windows data types; like this:
    LPTSTR computerName;
    DWORD compNameLength = MAX_COMPUTERNAME_LENGTH+1;
    computerName = malloc(MAX_COMPUTERNAME_LENGTH+1);
    GetComputerName(computerName,&compNameLength);
    printf("%s",computerName);
    free(computerName);
    Don't forget to include windows.h where those types are defined.
    Good Luck!
    Juan Carlos
    N.I.

  • I would like convert a c++ dll for use in labview--my device has no labview dll

    I have a piezoelectric control board (Piezomechanik gmbh) that I would like to use through LabView.  Currently, the company does not offer any support for Labview.  Windows sees the device (It came with a driver file), but the company only provides dll files for C++ and Visual Basic.  Can I convert these files to a format Labview can use?  How can I get Labview to communicate with the control board (and ultimately the piezoelectric device attached to it)?  Thanks!
    Solved!
    Go to Solution.

    This will only help you when you have the header file for the DLL, otherwise you will have to create the wrapper manually using the "Call library node" and the DLL api description or write an header file for the DLL yourself based on the api documentation and use the wizard.
    Regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Q: Must one use special LabVIEW types (e.g. float64) for DLLs in LabWINDOWS/CVI?

    Hello,
    I have recently started compiling C code using LabWindows/CVI, and have successfully called a simple DLL function from within LabVIEW.
    I have a question about the types defined in LabVIEW's extcode.h file:
    These are defined to explicitly quantify the number of bits used for each data type (e.g. float64 instead of float) in order to eliminate ambiguity across compilers.
    When I am using LabWindows/CVI to compile, do I need to use the LabView numeric types defined in LabView's extcode.h, or can I use the standard C types (int, float, etc.)?
    Is there a distinction between having to use these special types for CIN versus shared library calls in LabVIEW?
    Thanks
    in advance,
    Frenk

    You do not have to use the defines in extcode.h, but you certainly can if you want to.
    The float64 is equivalent to CVI's "double", and the float32 is equivalent to CVI's "float".
    These correspond to the double- and single-precision types in the IEEE Standard for Floating Point Arithmetic, IEEE-754.
    I hope this helps.
    Brian

  • Where can I find more informatio​n, tutorials, or examples using the toolkit NXT for labview?

    I have read all the PDF's of the page http://zone.ni.com/devzone/cda/tut/p/id/4435 :
    LabVIEW_Toolkit_for_LMS_NXT_Getting_Started_Guide
    How_To_Create_NXT_Blocks_with_NI_LabVIEW
    LabVIEW_for_NXT_Advanced_Programming_Guide
    but I want to know if you know or have more information about, tutorials, examples using the toolkit NXT for labview.
    I want lo learn more about this toolkit, but there isn't enough information...
    thanks everybody that can help me

    a  list of LabVIEW leranings can be found here
    http://www.ni.com/academic/lv_training/how_learn_l​v.htm
    for the NXT you can also look on the LEGO site
    greetings from the Netherlands

  • I want to use a labview spectrum analyzer for 2.4GHz anylizer

    I am trying to build a 2.4GHz antenna for a class reasearch project. and I want to use a labview Spectrum analizer to test it. But the boards we have in our lab only support frequencies of 2KHz. I was wondering if NI made a DAQ board that would support this frequency and exactly what is it.

    The PXI-5660 and associated software (Spectral Measurements Toolkit, Modulation Toolkit) are very tightly integrated with LabVIEW. I might be unclear as to your situation, but I will look at this from two perspectives:
    Hardware perspective:
    If you are testing a 2.4 GHz antenna, if you wanted a digitizer to simply digitize the output of the antenna, it would have to run at a sampling rate of at least 4.8 GSamples/sec due to the Nyquist Sampling Theorem. Other options include placing an RF downconverter in front of a digitizer. The downconverter then shifts the signal of interest to a lower frequency, which also lowers the Nyquist ctiterion, allowing lower sampling rates to be used.
    None of NI's DAQ boards can sample fast enough to captu
    re RF signals, unless there is some form of signal conditioning on the front end, like a downconverter. The PXI-5660 RF Signal Analyzer uses this approach.
    Software perspective:
    Once the data is acquired, it can easily be analyzed with LabVIEW analysis VIs and with the new Modulation and Spectral Measurements Toolkits (both in LabVIEW). Regardless of how you acquire the data, LabVIEW can analyze it.

  • Suggested in-process database for use with LabVIEW?

    I've been researching databases for a few days looking for something lightweight that I can use when developing applications. I saw the post by Anthony Lukindo on Expressionflow (http://expressionflow.com/2007/07/05/labview-based-utility-to-package-deploy-ms-sql-server-2005-expr...), but I'm not really looking to use an enterprise level db and it sure seems complicated. I looked at both MS SQL Server Compact 3.5 and SQLite, and they both look to be about what I'm looking for, but I haven't found any LV interfaces to these things. There appeared to be an aborted effort to get a SQLite interface made as an OpenG toolkit (SQLite database toolkit (Windows)), but it seems to have inexplicably vanished. I like the idea of SQLite better than the MS product because it seems to only include the things I'm looking for, and it's cross platform (and public domain) and I am thinking about starting to write an interface myself. I'd appreciate any comments on the topic.
    I do have the LV DB toolkit, but I would rather not have all the overhead associated with speaking to an out-of-process db through external components (plus the headeaches associated with deploying the thing). I am pretty much a nubie in this area though, so maybe I can be convinced otherwise.
    Thanks,
    Chris

    SQLite is propably the best performing free open source disk based database for a "single-threaded" applications or for reasonably sized multi-threaded applications that do not require row-level or table-level locking. So do not consider SQLite only as a development time alternative... it is a good alternative for many purposes.
    You can connect to SQLite with a  ODBC driver, I think, and do not need a native LabVIEW support for SQLite. Just google SQLite ODBC.I have not tested this, but if so, you can use any of the ODBC database toolkits for LabVIEW, even the National Instruments one
    A different thing is that if you need a database for development purposes, should you actually set up one? I'm a friend of a software-as-a-service and currently use hosted mysql databases at Mosso. I use them for web development project but I see no reason to use them with LabVIEW as well, as long as your development computer  is online. The good thing about hosted services is that they really are zero-configuration and zero-maintenance. When ever I've a problem or don't know something, I simply chat with the support person online Another good thing is that my hosted databases come with online administrative interface, phpMyAdmin, which simplyfies the database management, especially during the development phase when everything is not working as expected. Furthermore I can use MySQ Workbench to visualize the structure of my database for documentation purposes.
    p.s. Mosso pricing starts from $100/month which may be over your budget, but the support is simply superb. For the price you get practically unlimited number of databases of you choice such as MySQL and MS SQL 2005, and practically unlimited number of hosted web sites running in a load balanced cloud with either Linux or Windows or mixed. The downside is you cannot install new programs such as LabVIEW and you have to do with the services they provide. When your computational needs exceed certain limit of processor cycles a month, you need to pay more. This limit is something like a single processor server.If you decide to go for mosso, use the following referral code "REF-EXPRESSIONFLOW" to get the second month free. The promotion is valid until the end of September and after that you get $50 off from the first month price.
    Tomi Maila

  • Genetic algorithm for use within LabVIEW

    I want to use a genetic algorithm to optimise a control system.  I was going to use MatLab because I can write the GA with that, but I cannot get it running fast enough with my C-DAQ.  The alternative is to use LabView, but I could not write a GA VI.  Do you know of a GA for use in LabVIEW?

    Hi Jack@Newcastle,
    Take a look at the following example of Genetic Algorithm implemented in LabVIEW (https://decibel.ni.com/content/docs/DOC-13699).It should give you an idea how to write your own code.
    Regards,
    Edvin

  • Poll: Which LabVIEW version do you use for new projects?

    I have posted a poll on the LAVA forums, here:
    Poll: Which LabVIEW version do you use for new projects?
    Thank you for taking the time to tell us your thoughts.

    I'm giving this thread a bump to remind eveyone that we want to know your opinion.  Please vote in our poll.
    Thanks,

Maybe you are looking for

  • How do i set a default group (not staff) for new files?

    by default, new files created from within applications appear to be assigned group "staff", regardless of the folder in which they are being created. i want new files to inherit the group of the folder in which they are being created. if i create a n

  • How do you get your songs from your ipod to your computer?

    can anyone tell me how to get your songs from your ipod to your computer?

  • Iphoto update error

    Just went to download and install an iphoto update and got the following error: The Installer could not validate the contents of the 'iPhoto_81' package. Contact the software manufacturer for assistance. Is this something I need to contact Apple on?

  • JSP Session in a Javascript Window

    When I open a javascript window (with window.open) and use session cookies everything works. In the new javascript window I have no problems to navigate. After disabling cookies I tried to open the javascript window again and get the following errorm

  • HTMLResources works when tested local but won't work when the folio is uploaded

    hi there, creating a DPS app with on the cover, inside a popup, a button that calls a pdf in the HTMLResources.zip Button's function HTMLResources/cover/filename.pdf filename.pdf sits in the folder 'cover' inside the HTMLResources folder before zippi