Programar en LabWindows

Muy buenas:

I have a nominal of problems has the programar in LabWindows hora. El primero are what el programa yo estoy realizando UN bucle entered there is is in ese bucle sin hacer caso one otro any button, y lo me gustaria're me vigilara los demas botones para poder dirty del programa. Y el segundo problema're quiero get una imagen con una Cámara para despues procesarla, alguien me could decir alguna statement for more images. Gracias y a c editor el programa. MUCHAS gracias.

Hi Mikelmoyano,

How are you sugeri in el otro tema, you application no can be developed directly inside of the recall of UN boton puesto el proceso goes a durar largo tiempo in el Québec no estas mirando a los otros botones. Hay that say that the problem is could be added the ProcessSystemEvents (cada tiempo espera dentro) statement did y global variables using para maniobrar señales than allow the interrupcion del proceso so are necessary u otras tasks than el usuario requiera, pero esto can be used para small and code point, is that better no alterar el normal procedure of los eventos in el programa Detección.

Sigue is in mi opinion lo valido you aconseje in aquella discusion: tendrias Quebec you código utilizando una Máquina estados made inside of a timer control, of manera as el sistema maniobrar los eventos generados in other controls can y please al usuario interrumpir el proceso u some run sin Street Québec that renda necessary wait the fine del proceso para reobtener el control por. Te Aa±ado una liga than can serte util en este development: Using astatine Architecture Machine (Event Driven); Aunque los examples of code in el documento esten made in LabVIEW, sin embargo los universales son concepts are applied al CVI tambien pueden.

Tags: NI Software

Similar Questions

  • The interface of the AVI with the PC using LabWindows/CVI

    Hi friends,

    I have a vector Network Analyzer Keysight Technologies / Agilent Technologies N5230A. I want to run with the LabWindows/CVI to measure channel 40 GHz. I want to interface the AVI with the PC using LabWindows/CVI. It is really essential for the measures, and I have no experience in doing these things. Would you please direct me to the best, easy as possible of this work? I'm really conscious of the fact that and thank you for your time and concern.

    Mohamed

    I have a vector Network Analyzer Keysight Technologies / Agilent Technologies N5230A. I want to run it with the LabWindows/CVI and measure channel 40 GHz. I want to interface the AVI with the PC using LabWindows/CVI. It is really essential to me, and I have no experience in doing these things. Would you please direct me to the track better, easy and correct these work? I'm really conscious of the fact that and thank you for your time and concern.

    Mohamed

  • Real-time execution trace toolkit to optimize the Labwindows/CVI code

    Hello

    I am trying to optimize a code in real-time in LabWindows/CVI by minimizing the time of each section of the code is taking and find bottlenecks in the code. I check this time using the real-time execution trace toolkit.

    However, I just found it seems to be a constant error when you use the tool of real-time execution trace.

    When I put the traceviewer 'start' and 'stop' right after the other, I get around shift schedule 9us. It seems that the CPU will in some "idle" after the start of the trace mode, or maybe it's the time of communication or something.

    I'd appreciate it if someone could give me an idea of why this is happening. The time of real-time application window is very limited and I'm trying to minimize the time as much as possible. Even the United States 9 error is difficult to resell.

    I used the following code:

    TraceConfigure (1, 1, 0, 25000, NULL);
    TraceStart ();
    TraceStopAndSend (HOST_ADDRESS);

    and there is a photo in the toolkit of real-time execution trace.

    Thank you.

    Generally, you might be better off picking off the clock at the beginning and end of what you want to track. RTETT my introduce overhead that becomes difficult to quantify... Which is what you probably already see. The debug mode will also implement a ton of overhead. Then... Destemming of the clock in release mode will probably give you you the best estimate.

  • LabWindows 2015 Titlebar UIR classic and not shown as classic Panel

    LabWindows/CVI 2015, complete development system, Version 15.0.0 (413)

    In my test code, I put in a DLL to call from TestStand, I a UIR displayed when I need the user to return a switch on the test station. I have the title bar of the Panel, established in the Visible and the classical style. Which seems, in the LabWindows/CVI development window, with the title centered at the top of the Panel. However, when I have the window that appears, by using either an executable LabWindows or LabWindows DLL function call to TestStand, the Panel is not displayed as classic. The title is left justified at the top of the window. The code, indicators and controls work fine. It all works on a functional level, I prefer the look of the Classic (centered title) sytle.

    Is there some files that I need to include in the project / linker to have the Panel located in the classic style?

    NOTE:

    If you're wondering what I did to the uir:

    I realized, after removing the code that is not relevant to this discussion, the code that I use. The IUR is a laminated board. For the rings around the switch, I have layered the outer ring, inner ring and then the switch (up and down). For the text, I created a text box to place text inside. I could not determine just how to put text on the screen without using a text box. However, I couldn't put the framework of text box to zero or change the color. So I placed a decoration of chassis on the text box frame and changed the color of the background color decoration to give the illusion that the framework of text box is not there. When I run the code, although the text boxes have been defined as indicators, when the user has placed their mouse on the text box, the box would move slightly and highlight the text or the framework for this kind of thing. The user could not change the data, but it annoyed me. To get rid of it, I placed a decorative box on all of the panel layout interior color to transparent. In this way, said he layered on the text boxes so that text boxes don't behave oddly. Finally, I put the control in FACT on top of that, so that the user could say the test program when the switch of the test station has been configured according to the needs. Also, the omega symbol uses the value transparent background image control.

    Unfortunately, the classic title bar, is visible (observable) for signs of the child only. For parent panels, it is the Windows setting that determines the display of the title bar.

  • Instrument LabWindows DLL in memory DLL handles

    I am rewriting some of the software of test of production for the company I work for. Development requires that I rewrite all instrument drivers placing them in a DLL. Then I re-wrote the functions test placing them in another DLL. Adding to what they were doing is adding TestStand to call the test functions in the desired sequence. The old code used the old sequencer LabWindows years ago. They insist to use the GPIB function calls rather than allow me to use the generic viWrite, viRead.

    I developed the instrument drivers so that the driver keeps track of the handles. Which worked find when I test the test functions LabWindows calling the functions of the unit. However, I have problems when calling thanks TestStand test functions. I put my instrument driver code to see what is happening MessagePopups. I see that the handle is here sometimes and not others. I guess that maybe TestStand create different instances of the code of the DLL (?). Anyway, I have add a pragma to see if that would cure the issue.

    struct AC_Power_Config
    {
    int ACPower_Device;
    int ACPower_GPIB_BoardIndex;
    int ACPower_GPIB_PrimaryAddress;
    int ACPower_GPIB_SecondaryAddress;
    int ACPower_GPIB_IOtimeout;
    int ACPower_GPIB_EOImode;
    int ACPower_GPIB_EOScharacter;
    };
    //
    #if defined (__AC_POWER_SUPPLY__)
    #pragma data_seg ("AC_POWER_SHARED")
    //
    int ACPower_GPIB_Handle = - 1;
    struct AC_Power_Config AC_Power_Configuration;
    //
    #pragma data_seg()
    #pragma how (linker, "/ section: AC_POWER_SHARED, RWS")
    #endif

    He did not. I don't know if I ironed the handle to TestStand to follow the handles if the handles would continue to operate.

    Are there instructions I put in my code LabWindows or some link that I can use to make sure that the handles are maintained in the area of DLL memory and options that all the function calls reference this memory? Any thoughts on the best way to deal with this would be appreciated. Although the change in the overall design (TestStand for DLL DLL) cannot be done.

    Thank you

    Hi Bill,

    I'm sorry to hear that you run in it, it seems like a strange behavior. Just to clarify, when you say "I see that the handle is here sometimes and not others" do you mean behavior varies according to the different tracks of the sequence or in a single pass, some handles are there, but others are not?

    Also, what do you call the DLL? I don't know if you have seen this already or not, but this KB can be useful in ensuring that it is no more than one instance of the DLL in memory at the same time:

    "Several Instances of dll or the sequence in memory files are possible with TestStand.

    http://digital.NI.com/public.nsf/allkb/6E1FF9F8EB5DCC0086256944004B90B0

  • How to use fft2d labwindows

    I would like to use the FFT2D function in the LabWindows CVI 8.5 analysis library.  Unfortunately, the help section is not very informative: the input signal to transform and fft 2D returned are the two type of void pointer.  I would like to pass an array of type double, and I expect an array returned by a complex data type, possibly a structure with a real and imaginary component.  There is an example of 2dfft in the directory/samples/analysis, but in this code they essentially rewrite the fft algorithm and use global variables to get the data.  What is the right way to call this function?

    As an alternative, I tried to use FFTW .dll file.  This package comes with a .dll file and .def files, but no library file (.lib).  On this page http://zone.ni.com/devzone/cda/tut/p/id/3341 the following statement is made: "If you don't have the DLL import library, you can create one using the LabWindows/CVI tools provides" but it fails to tell you how to do this.  So how is - a generates the .lib files .dll and .def file in LabWindows?

    Thank you

    CVI can generate a .lib for a dll file, if it has an associated .h file. On 7 CVI, open the .h file in the Editor window, and then click the Options menu item. You see a line "DLL import library to generate" - click here and follow the prompts from there.

    JR

  • LabVIEW compared to labwindows

    Hi all

    I have been using LabWindows for 3 years and just recently started learning the LabVIEW.

    LabVIEW seems to be the most popular and simple to program. This forum is full of experienced engineers in the test, automation and programming. How comments you these two products of NOR? What are their advantages and disadvantages?

    NOR did train hard work to spread the idea of LabVIEW everywhere and to encourage the use of the LV in schools and universities, and indeed, you see several educational institutions with the use of LabVIEW everywhere in the world. IE although CVI "just another C compiler" you will see it often announced there. Nevertheless, C remains a viable option and a good C programmer will approach CVI very easily, having not become familiar with the functions and labraries owners.

    LabWIndows/CVI and LabVIEW are different tools that you can use to achieve your goals, each of them has advantages and disadvantages; being a user of CVI for a long time with little experience LV CVI according to me is the best, LabVIEW users will feel the same for graphical programming that is to say, in my opinion, the two instruments are good and powerful and today are similar in power and flexibility.

    ICB began early on with a native compiler which makes it good for industrial applications where the ability to modify the code has been neglected in favor of repeatability of tests; LabVIEW has always be considered to be an "easy" programming language, everyone can use. As every programmer can confirm, that all both need time to be used in the best conditions, and how steep is in my opinion, the learning curve depends on your previous experience rather than in the own characteistics of the development environment.

    This comparison has already been addressed in the forum: Here you will find a long discussion that you might find interesting reading.

  • How to force the compilation released executable before running the distribution of LabWindows/CVI kit?

    I am new in 2015 of the CVI. I used CVI 7 and when I chose "Create the Kit of Distribution", when I was still in debug mode, Labwindows asked me to build the executable of setting before creating the Distribution Kit. This does not happen to CVI2015, and the Distribution Kit is created with the latest built executable version, although I made a few changes in my code! This is a problem since I work in debug mode and I usually forget to build the executable of liberation before calling the distribution kit, so I need CVI to do it automatically like CVI 7 did. I suppose that there is an option to do this, but I can't find. Can someone tell me please how to resolve this problem and force CVI to build the exe version before building the distribution kit? Thank you.

    Today, I've solved quite simply create a new distribution. The previous like unsing was automatically imported by CVI7 project. By creating a new distribution, now when I change something, CVI ask me if I want to build the release. So I did not understand the problem but I solved it by editing a new distribution kit.

  • Request reset Labwindows

    Hello..

    First of all... Sorry for my Communication skills week...

    I'm new to labWindows/CVI and develop an application to monitor the environmental conditions of a test room using Rs232 communication.

    My problem is... I want to reset all default application / departure (including controls and allvariables) of the single button.

    I have 6 panels and approximately 90 variables.

    is it possible?

    I don't want to use the button leave as it leaves the entire application...

    DefaultCtrl only give orders... I want to reset any application... including the variables...

    Thanks to you all

    There is no function integrated to do - you need to implement yourself. So if a user presses the reset button of your program, you will have to set / reset all the settings to the default values.

    You may want to consider a more general approach, that is, at the start of the program, read a configuration file and exit the program, save all the settings in the configuration file - the user will be happy the next time it starts the software to find its previous settings.

    This extra effort benefits while on "reset" all what you need to do is call this new initialization routine, that is, to read and set all the values.

  • NAN in the preamble gives labwindows crash

    Hi all

    I'm using Labwindows CVI 2015 (v 15.0.0) and I faced a problem where the symptoms where:

    • Features of AutoComplete does not
    • LabWindows CVI does not respond when you try to close the IDE

    This was happening with only one of my projects.  After investigation, it happened because I was to initialize some variables global (before the main function) by using the constant NAN or NotANumber function.

    Once, I replaced the NaNs by a finite value and initialized global variables for the most part, or in any other function the two symptoms mentioned previously disappeared.

    I don't know if it is an expected behavior but I Although it is sharing the information that I found nothing else on these symptoms on the Internet.

    I hope it will help others.

    Hello

    It is another aspect of this bug.

    Even if it is another matter, the cause is the same. We intend to fix this in a future release.

    The solution for this case is to do the initialization in a function (for example in the beginning of the great instead of global scope.

    Constantine.

  • LabWindows CVI and debugging dll MSVC ++

    We use a written LabWindows/CVI DLLS in the code for Teststand module. This DLL calls a DLL written in MSVC ++.  Is it possible to use the debugger of Labwindows/CVI debug this DLL MSVC ++ (if this DLL MSVC ++ is built with 'good' options)?  Or is possible only using the environment of development MSVC ++?

    Hello mkossmann,

    The CVI compiler generates different types of than MSVC debugging information.

    The debugger CVI doen't understand the debugging information generated by MSVC, so you cannot debug the dll compiled in MSVC.

    Constantin

  • Error 1921 when installing program 2015 LabWindows

    Recently, I upgraded to 2015 LabWindows/CVI.   I'm trying to load a program from a Setup program created with LabWindows 2015.  I loaded the same program on the same computer using an installer of LabWindows/CVI 2014 previously.  I have full administrative rights on the computer.  The computer is a cRIO-9081

    I am now getting an error: ERROR NI MXS 15.0.0 1921.  Configuration NI MXSSVR Manager could not be stopped.

    When I go to Task Manager and look for MXSSVR it shows that it is "downtime".

    How can I solve this problem, since I have 8 other cRIO-9081 which need to be updated?

    Paul

    I solved the problem.  Someone opened a remote session and who would not want the service to be stopped.  Once I disconnected them Setup worked.

  • Comparing 2 jpeg using Labwindows

    Hi guys,.

    Is there a way to compare 2 JPG files and determine if tey are different?

    Hello again,

    I looked into this again this morning.  If you open the help of LabWindows CVI and search for "jpg". You get a handful of results.  You will want to click on the article titled, "with the help of Bitmap objects.  The Bitmap is a two-dimensional pixel grid that represents an image and a bitmap can be created in multiple types of images (including the .jgp).  You want to create a bitmap for each file .jpg and trace through each value in the grid programmatically, subtracting each value of its corresponding value bitmap and store the result in a new array of result.  Then just check the new bitmap that stores the result of the subtraction for values not null determine if files match and to what extent.

    Try that and let me know how it goes!

  • LabWindows/CVI cannot compile a simple code

    Hi all!

    It's looks funny but LabWindows/CVI-9.1.0(427) cannot compile a simple C code

    XML.h

    void f();

    XML.c

    #include 'xml.h.

    typedef struct
    {
    int bar;

    } foo;

    void f()
    {
    int Baz = 0;
    If (!) Baz) baz = 1;
    foop foo;
    return;
    }

    It's not a bug, you make a statement block to a variable foop which is not allowed in the standard ANSI C89.

    You can activate the C99 extensions with a pragma if you want this to work in CVI 9.1

    Menchar

  • LabWindow CVI for students

    I would like to acquire the license student LabWindow.

    In addition, I have 3 questions:

    1. can I install the software on my notbook and on my desktop computer or on a computer?

    2. is there the LabWindow of 2009 for students? I saw on the Internet only for 8 LabWindow license licenses.

    3. what happens to the software after having finished my studies?

    On the side of the product, I have found no answer.

    1. you can install the software on up to three computers, but only works with one at the same time

    2 No., just on LabWindows 8

    3. you can use after your studies, as long as you want, but you will not be able to upgrade your software.

    I hope this helps.

    Stefan

Maybe you are looking for

  • How can I move C: to a different HD data (email + contacts)?

    I cloned one PC to the other. Both are Win 7 Pro 64-bit. Now I want to remove thunderbird + email + contacts of the new machine (because the data on clone are outdated). So I want to use MozBackup to move all the emails to update + contacts from the

  • NOR-RIO 4.0 is not compatible with 64-bit LabVIEW?

    Hello I have a 7841R multifunction RIO card.  I currently install the evaluation version of LabVIEW to test.  I've got 64-bit LabVIEW installed successfully and I had installed NOR-RIO 3.6 (which was on the disc that came with the card).  Trying to i

  • I can open an apk file in windows 7

    I have a corner it's an android operating system. I want to use windows vista or windows 7 for applications can it be done?

  • Try to install the Theme hospital on windows 7 - HELP

    I inserted the CD, but no matter what I do it do not open and let me install the program, I tried to run through a link in the control panel that says "run programs made for previous versions of windows", but it does not work, or nothing happens. Wha

  • BlackBerry Smartphones please help me to clear my info

    I got my Bold 9700 for almost 2 years.  I like it, but last week my usb port stop working.  I had done a backup on my computer a few days before, and I have a dock to load if it was no big deal, theres always bluetooth.  Well, on Sunday my screen wen