Drawing functions in LabView - howto?

Hello,
are there any possibilities in LabView (I have 6.1) to perform some
graphical operations?
I want to plot previously recorded data (text file) - it is an easy
task. But later I want to be able to include some functions to measure
peak data, distance between baseline and peak, draw some lines... How to
do that, are there any implemented tools for doing that?
Thanks for any help,
Wawosz

Hi,
You can also display data into a picture (Functions>Picture>Graphics &
Sound>Picture Plots). The result is a picture, and you can draw all
'primitives' in it.
Using the cursors in graphs, as Labviewguru suggested, is easier, but
functionality is limited.
Regards,
Wiebe.
"Labviewguru" wrote in message
news:[email protected]..
> First, LabVIEW has internal functions for performing the measurements
> that you indicated. However; these are not peformed visually on the
> graph, they are array functions.
>
> Second, on the Graph, if you open the palatte, you will find some
> cursor functions. These will also perform similar operations to what
> you are looking for, right on the graph.
>
>
Third, if you are looking for something that you cannot find in either
> place above, then what you need to do is convert the graph to a bitmap
> image, bring it into a LabVIEW front panel, and then perform your
> operations.

Similar Messages

  • MIDI Read function in LabVIEW 8.2

    Is there a MIDI read function in LabVIEW 8.2?

    http://forums.ni.com/ni/board/message?board.id=170&message.id=280480#M280480
    You could have aksed it in your previous post since it concerns the same functions.
    André
    Message Edited by andre.buurman@carya on 10-26-2007 09:12 AM
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Register a Callback function in LabVIEW

    Is there any way to register a callback function in LabVIEW. For example:
    I have a DLL on Win2k that run a thread. This thread is doing a certain task (it is not important what it does...) I can't predict when this task will end and I need to know when the task is over. The easy way would be to poll this DLL and ask: "Is it over? Is it over?" over and over again. No! I don't want to poll. Not because it's too easy. I want this DLL to wake me up on time.
    Any idea, solutions, function that I'm not aware of, new features...
    Thanks
    Nitrof

    I think I have a much better solution for you. Here is an example program that show how to set a LabVIEW occurence in a dll. Therefore when your dll is done it can set the LabVIEW occurence, meanwhile your VI is just waiting on the occurence.
    More infomration on this is in the external code in LabVIEW manual Using External Code in LabVIEW
    NOTE:This will ONLY work in LabVIEW 7.
    Attachments:
    SetOccurDll.zip ‏165 KB

  • Different output of DST function in labview and matlab

    I am passing a 1D array of size 1550 as input to DST function. I have also calculated DST of same array in matlab using 'dst' function. I got approximately same answer till 1399th element but after that answers of two varies abruptly. I tried hard but I am unable to find the solution. I am attaching the data file in which it can be clearly seen that at 1530th element there is a difference of sign also.
    Attachments:
    data file1.txt ‏37 KB

    Out of curiosity, have you tried another software, like Octave? When you have two software that is different, which one is incorrect?
    Also, have you tried to use the DST function in LabVIEW directly?
    Another think to keep in mind... When you try to run a sequence for so long, small round-off errors could be cummulative and show later on the analysis. Also, it depends on how you load the data into each software. Hopefully when moving the platforms, the string conversion would not truncate the number. The best is not using string, but some kind of binary format...
    These are some ideas to check...
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Functions in labview

    Hy,
    I've got a question concerning functions in Labview.
    Is it possible to see the *source* of a function ?
    I'm working with the "Butterworth filter" and I need to know how it
    works *in the inside* :]
    Thank,
    Maura

    On Sat, 10 Jul 1999 23:19:29 GMT, Greg McKaskle
    wrote:
    >> I've got a question concerning functions in Labview.
    >> Is it possible to see the *source* of a function ?
    >> I'm working with the "Butterworth filter" and I need to know how it
    >> works *in the inside* :]
    >>
    >
    >The majority of the simple DSP functions are, to my understanding,
    >taken from the Numerical Recipes in C textbook. If you can get
    >your hands on a copy of that book, it will probably be the same,
    >or at least a very similar implementation.
    >
    >Greg McKaskle
    Thanks a lor for the info.
    So there is no way to get the algorithm directly from labview?

  • I am trying to call a function with LABVIEW developed in CCS compiler

    I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
    Matt

    PTE wrote:
    I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
    Matt
    MPLab is for programming PICs if I'm not mistaken. I'm not sure how you would want to call a function compiled in MPLab from LabVIEW directly. MPLab will create binary code for execution on PICs and there is no LabVIEW that could run on a PIC. On the other hand I didn't think you could create standard Windows DLLs, Mac shared libraries or similar in MPLab at all.
    You will have to recompile your code in a C compiler that can create the standard shared library format for the plaform you want to call it from LabVIEW.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can i call winmain function in labview

    hello everyone,
    Well i have written a C++ code that uses the  winmain function (windows function). i want to convert this code into dll and call that dll into labview.
    Is it possible to  call winmain function as one of the functions in labview. Please let me know as soon as possible.
    Thank you.
    Royal  tiger......

    You didn't say what development environment you're using, so I'm assuming Visual Studio. It sounds like you created a Win32 app (as opposed to an MFC app). This has a "WinMain" function. The prototype for WinMain is geared towards it being called by the OS when you run the executable. You could just add the __declspec(export) directive in front of the return type, but you also need to change some build functions in Visual Studio to get a DLL. You probably also don't need all the arguments that WinMain uses. You're probably better off by starting with a new DLL project in order to get the framework for a DLL, and then copy and past the function code. That's what I would do.
    I would also strongly suggest that you crack open the "Using External Code in LabVIEW" manual that gets installed when you installed LabVIEW. It's in the "manuals" directory, filename of "lvexcode.pdf".

  • Problems of integrating Matlab functions in Labview

    Hi,
    Does anyone know how to completely integrate Matlab functions into Labview program without a copy of Matlab in the system when I run the entire program?
    Initially I used 'Mathscrip' node but I heard that it doesn't support Matlab toolbox.  Thus, I tried out the other option 'Matlab script' node. This node works well in implementing Matlab functions but it indeed requires Matlab installed in the system. 
    So in other words, how could I realize the full integration(as what Matlab script node achieves.)  without Matlab installed in the system?   
    Cheers,
    Nicholas 

    hi smercurio,
    So you mean that the Matlab script is no longer necessary in my case right?
    Could I just ask my colleague to compile his codes to matlab dll and I use the Call Library Function Node  instead of Matlab script to call it?
    About MCR, is it the correct source at the following link  http://www.mathworks.com/matlabcentral/fileexchange/5268 ?
    Sorry for those basic queries in Matlab as I have very little experience in it. lol... thanks a lot.
    Cheers,
    Nicholas 

  • Where can i find the FFT functions in Labview 7.1 Express

    Can anybody tell me where i can find the FFT functions in Labview 7.1 Express or what i have to install??
    regards
    Acosmo

    Hello Acosmo,
    You can find them under
    All functions - Analyse - Signal processing - Frequency domain.
    It's maybe easier if you do a search: when you right click on the block diagram, you have a seach option, just write there FFT and you will have them there.
    Hope it helps,
    Paulo

  • Can not find size_t during import a dll and calling a function crash labview

    Hello, experts
    I need to use FingerLakeInstrument  DLL ( see the attached) inside Labview to talk to a CCD camera. it is built from microsoft visual studio C++
    I unzip FLI dll in my D:\proj\...\linfli-32 and import dll from there. created a c:\FLIDBG.txt as FLI dll needs to write debug message to it if FLISetDebugLevel() or others are called.
    During importing the dll, first thing I got is <sys/types.h>  ( ie size_t ) cannot be found. I have installed free version of microsoft visual studio C++
    but can not find "typedef unsigned int size_t"
    at the end, I just added
     typedef unsigned int size_t;
    in the libfli.h. Having done that, I am able to import all functions into Labview and have a user library called libfli.
    However, as soon as I start calling a simple function in a test.vi, such as FLIGetLibVersion(char* ver, size_t len), which involves nothing other than the library, the labview will crash.
    I created a simple C test.exe which calls many functions without any problem
    any suggstion?
    regards
    xiaofeng
    Solved!
    Go to Solution.
    Attachments:
    libfli-32.zip ‏93 KB

    Hi, Smercurio_fc
    thanks for your reply. Yes, you are pointing to the right place.  I have solved the crash problem.
    when importing DLL into Labview using Tools\import\Shared Library (.dll), Labview automatically set the calling convention as C not as stdcall (WINAPI).  it is this that later the labview crashes when a function is called.  as soon as I manually re-selecte calling convention as stdcall, my test.vi works OK (see attached).
    I tried Call Library Function too to call libfli.dll, as long as I select stdcall as call convetion. the test.vi works.
    How do I know which Call convention I need to choose if  there is no infomation from DLL provider?
    as for the size_t,
    I add   #include <crtdefs.h> in libfli.h and 
     add additional include path as
    C:\Program Files\Microsoft Visual Studio 10.0\VC\include.  this  solved the "not found" issue.
    for this case I know that the DLL is built from VC++,  is this right way? 
    again, thanks for your time.
    xiaofeng
    Attachments:
    test.vi ‏13 KB

  • Labview Dll call library function Causing Labview to unload

    I am trying to use the Call Library function in Labview 7.1 to call an Init function for a Zathic Can4USB device. When I run the vi, it complete log LabView out of the computer. Can anyone tell me why the function totally unloads LV without displaying an error?
    Thanks

    Either the function has a serious bug or you are calling it with
    invalid parameters or wrongly setup parameters. The problem happening
    here is that your DLL passes somehow invlid parameters to a system
    device driver and that driver causes a protection fault. For device
    driver execeptions which happen in the privileged kernel, Windows does
    not try to attempt to message a user in such cases (other than the
    threaded blue screen of dead which when you get it really means a full
    restart) but unloads the current application as fast as possible.
    Check the documentation for this function and try to see where you call
    it srong or contact the developer of this DLL for assitence.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Try-catch in draw-function

    Hi and hello,
    I'm creating a program that handels a lot of drawing. It happens that I get some objects that are null.
    My old solution was that I made several if:s to see if some of the objects was null. The code was very ugly so I instead of the if:s i want to make a try-catch inside the draw-function.
    Old code:
    public void draw() {
    DoStuffObject object1 = new DoStuffObject();
    if (object1 == null)
    return;
    DoStuffObject object2 = new DoStuffObject();
    if (object2 == null)
    return;
    DoStuffObject object3 = new DoStuffObject();
    if (object3 == null)
    return;
    // Draw...
    New code:
    public void draw() {
    try {
    DoStuffObject object1 = new DoStuffObject();
    DoStuffObject object2 = new DoStuffObject();
    DoStuffObject object3 = new DoStuffObject();
    catch (NullPointerException e) {
    // Wrong
    // Draw...
    Is the try-catch a stupid sloution for some reason?
    I think I have read that it was slowing down the process.
    Thanks!
    Erik

    CeciNEstPasUnProgrammeur:
    You don't need to care about the new DoStuffObject. I
    was only trying to make my point with the try-catch
    instead of the if:s.If I don't need to care about the code, why do you post it? It's very misleading.
    We can say that I do getDoStuffObject() instead of
    the new DoStuffObject() and the object I'm getting
    may be null.Use the ifs, or better, refactor to create a model that your view simply has to draw - or have one method return a set of those objects to iterate over. Hard to tell what you need to do without knowing your code. But whatever it is, don't use exceptions. Some would say don't use multiple returns either.
    if (a == null || b == null || c == null ...) {
      // do stuff
    }

  • Change width in draw line for LabVIEW 6.1

    Hi
    as I couldn't solve the problem up to now I'm posting this question again with the hint that I'm looking for a solution in LabVIEW 6.1. LV 7 has already a SetPen.vi where the style and the width can be chosen.
    Link to the other posting
    Original Text:
    HI!
    I wanted to draw thicker lines in a picture control in LabVIEW 6.1. I found some posts where they mentioned that I have to edit the according VIs. So I played a bit around but didn't get it working. I'll attach pictures of the diagrams of "SetPen.vi","DrawLine.vi" and "Draw
    MultipleLines.vi". Can anybody tell me what to change or provide a suitable vi? Is there a tutorial where the code and the generation thereof for picture controls is explained?"

    Andy,
    The format and specifications for the picture data type and unfortunately not published for public use. The supportability of the picture data type only extends to the functionality provided in the corresponding VI�s shipped with LabVIEW. You are welcome to play around with how it works, but know that it is not supported. I hope this does not provide too much of an inconvenience.
    Have a great day!
    Robert Mortensen
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • Save As function in Labview 8.6

    I am not able to get the "save as" duplicate all dependences function to work as I assumed it would.
    The function will not allow me to utilize the *.lvlib files names in the project I am copying from into the new project. It gives me an box with "name is already open in memory".
    If I change the names and then try to open the new project it says it can't find the new names and is looking for the original names.
    I am trying to move the project from my development system (XP) to a newer lab system (XP) to be able to work closer to the machine that the project will be utilized on.
    Both systems are running Labveiw 8.6 (just upgraded last week) and I need to make this happen soon.
    Help
    RSI

    Hi RSI,
    Thanks for your post and I hope your well.
    It has been sometime since you posted your issue and I am sorry to see you have not received any support. Please accept my applogy for the delay. I am not sure why one of the Applications Engineer World Wide haven't been notified the your post has gone unanswered. I do hope, however, that you may have resolved your issue by now. However, just incase you have not:
    The best way to transfer a project from one machine to another is by using the Application Builder toolkit, do you have this? 
    If so, please read more information in the following Knowledgebase article:
    How Can I Transport My LabVIEW 8.0 Project to Other Machines?
    http://digital.ni.com/public.nsf/allkb/166ECBD0AB87C320862571080082AA0F?OpenDocument
    Please let me know what you think, 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Mod function in LabView's Configure Formula

    Hello, all.  Today is my first shot at using the Configure Formula feature in LabVIEW (7.1), and I'm not doing well at it.
    The kicker seems to be my (mis)understanding of the mod function.
    Here's the formula I have to work with:
    J=1+(((((C/100)%4)*5)+G)%7), where

    duplicate post, see: http://forums.ni.com/ni/board/message?board.id=170&message.id=161086
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • IPod No Longer Works In iHomes H5

    Since I updated to the latest version of iTunes, my iPod doesn't work in my iHomes H5. I've tried three H5s, and it doesn't work in any. However, my wife's nano works fine in our H5. Also, I've taken my iPod to two different electronics stores for di

  • Cannot sync Nike+ iPod wirelessly

    Quick background: - using an iPhone 4 running 4.2.1 - lost iTunes as it was removed from my work laptop - use Nike+ iPod machines at the gym (think they are branded Matrix) So here is the issue: Before I used to connect my iPhone to my laptop, iTunes

  • File upload in WD4A

    Hi, I am trying to use GUI_UPLOAD function module to upload an excel file. But giving the error as ' Access via 'NULL' object reference not possible'. Is there any other function module to upoad the file?

  • Automatically update PLA Serial Number

    Hi CIN Gurus, When we create J1IIN-Excise Invoice, the RG23A Serial numbers getting updated. But how to get PLA Serial Number automatically updated in the database table. (J_1IPART2). Because the client requirement is When the Invoice is printed, in

  • My 8GB iPod won't work after I clicked restore on iTunes?!

    I clicked restore on itunes as my iPod had two/three lots of the same songs on it and i just wanted to wipe the memory and start again by putting all my albums on. Now it won't work as it says there was a problem with recovery and it's in safe mode a