CAObjHandle handle ActiveX object to the NI LabWindows/CVI 2009 Server

Is there a way to create a CAObjHandle on the ActiveX of LabWindows/CVI server without opening a new application of CVI?

A bit of history, I am trying to automate the creation of files in HTML help by function panels. Thanks (http://forums.ni.com/t5/LabWindows-CVI/Is-there-a-way-to-automate-generating-the-documentation-from-... I have found that there is a function that exist to achieve this.

CVI_AppGenHtmlHelpFromFPFile is the function that I need to call, but I got a handle created.

I can get a handle to it using the CVI_NewApp function, but the problem is that it opens a new application of the CVI (which is certainly not favorable). At a very high level I need this feature to treat more than 100 panels of function in order to see how this can become a bit extensive and involved to open CVI every time. It should be a relatively small appilcation of command line that basically takes the path of the file and go to CVI_AppGenHtmlHelpFromFPFile and it does its magic.

Any help on this would be greatly appreciated.

Thank you

Do you need to treat each Panel function in separate your program calls? If so, is it possible that you could treat several panels by invocation?

If you're really stuck to running a separate process each time, can you pass some indicator of command line to your program to tell him to close CVI or not? If you don't stop it, then your program can always use CVI_ActiveApp and it would keep reusing the same instance of the CVI over and over again. Then when you call your program for the last Panel of the function in your loop you might pass a command line flag saying it close CVI before leaving.

Tags: NI Software

Similar Questions

  • CVI 8 has problems with the code of CVI 2009 - why?

    I use NI CVI 2009 and thus programmed. Now, I bought 8 CVI and wants to continue programming. But CVI reports errors in the source code of the ICB 9 and I do not understand what is the problem?

    example of

    char save [size + 1];

    Erros

    128, integer 22 should be constant.
    ...

    What is the problem with this simple line of code that worked perfectly before?

    Unfortunately the statements of variable length arrays is a feature of c99 is supported in CVI9, but probably not in version 8. If you use CVI8.5, you can try to add this pragma at the code and see if that fixes the problem, but according to this list of features posted by Luis, I'm not positive in this regard:

    #pragma iso_9899_1999;

  • "Value is invalid or out of range" when you build the project in CVI 2009

    I converted a project to the wire of the CVI 9.0.1 to CVI 2009, and whenever I try to compile the distribution I get immediately the error message "Value is invalid or out of range" and stop the construction.  This error message is not too terribly useful to determine what the problem is, and I don't see anything obviously wrong with the signs of 'change the Installer '.  Any idea what's going on?  Thank you.

    Well, I'm a little confused by what I see. The newspaper confirms my suspicions earlier that one of the values of timer progress cached version is cause of an error. However, the values in the file "TriboScan OFFLINE.cds" you posted appear very well and do not cause an error when I copy in .cds another simple distribution (since I do not have the files to test your actual building distribution). Are you sure that you build the 'TriboScan OFFLINE.cds' distribution? In any case, I recommend a little offending the .cds hand editing. Save first (just in case), open it in a text editor and delete everything between and (that should be all down). This should solve your problem.

    Let me know what you find.

    A. Mert

    National Instruments

  • Cannot compile the project in CVI 2009 which were previously opened in CVI 2010

    This was extremely irrititating and does not know what the devil.  I have a computer with CVI 2010 and separated with CVI 2009.

    I have a project and the CWS, which was established in 2009.

    I opened and recompiled in CVI 2010 things since then, ensuring that I saved my .uir file in a CVI 2009 version or earlier.

    I usually open the file .prj or .cws on my computer of CVI 2009, but trying to compile and run in debug mode, all of the CVI crashes.  How can I recompile and work with it on my computer of CVI 2009?

    Am I missing something here?  Tehre are no error, warnings or reports of incidents, CVI righteous acts as I hit Alt + F4


  • Time clock real function communication RS-232 with Labwindows CVI 2009

    Salvation OR,.

    1st quarter > we at KPIT try to build a timer based LabWindows project as a system 'real time' that transmits a packet of 80 RS-232 bytes to an ecu each 10msec. With our current PC RS-232 communication port configuration (115200bps, 1Stop, no parity, 8 Data Bits, no flow control) we are facing difficulties when trying to send this package with consistency. The timer to 10msec mechanism does not always follow a call to 10msec timer callback function. Is it possible, as part of the 2009 ICB, we can get close to 10msec periodicity (more less more than 1msec)? (some times the periodicity is scary and my clock works at 100msec instead of 10msec however it is observed intermittently, not continuously). My machine configuration is CPU 2 GHz, 1 GB Ram, Windows XP. Please adivse.

    Q2 > in the future, we would like to update 4 stripcharts (with the answer of the ecu which is a 12-byte packet), a table that lists the 12 a bytes in each column and also write the package received in a file on the disk in the rest of the time between pitches to 10msec. Is this possible at all?

    Kind regards

    -Mowgli

    Salvation OR,.

    We at KPIT are grateful for the quick and accurate response. We have revised our project based on your inputs. We are pleased to announce that the timer is very well behaved for steps up to 10msec (more less jitter msec). We will now try to introduce a frequency appropriate for our GUI elements. Our project for your reference and final excel is attached. We hope that this data will help other users should they encounter a similar problem.

    Kind regards

    -Ashish

  • uninstaller application, created with Labwindows CVI, work of doesn´t after the upgrade to version 2010

    Hello

    I worked with Labwindows CVI 2009 without problem, but after the upgrade to the 2010 version, I have the following problem:

    When I m going to run the unistaller, Panel configuration Windows or directly from the icon uninst.exe, it doesn´t work. The PC thought for a few seconds and does nothing, and it happens with all applications that I build with Labwindows CVi 2010.

    Thank you

    Asier

    Hello-

    You install these distributions on a non-English system?  If so, the first thing to try is the workaround solution listed on this known issue.

    The known problem lists only the Italian OSs because inconvenient BONE, but in fact, it can happen on of many different non - English OSs. I will update the text accordingly the next time I update the list of known issues.

    NickB

    National Instruments

  • Where can I find NEITHER-HSDIO SMU 6556 LabWindows CVI examples?

    Greetings!

    I am looking for examples LabWindows CVI or a help file that shows the function or api calls to control the attributes of progrannable of the HSDIO SMU 6556/6555.

    Ken Grohman

    Hi Ken;

    "' You can find examples for the NOR-HSDIO in the example LabWindows CVI Finder by clicking on help > NOR example Finder and navigate to the material input and output" Modular Instruments ' NOR-HSDIO; "" "" or you can search in Start "all programs" National Instruments "NOR-HSDIO ' examples.

    http://zone.NI.com/reference/en-XX/help/370520J-01/HSDIO/using_ni_hsdio_in_labwindows_cvi/

    Just make sure that when you installed the driver, you have also installed the Application Development Enviroment Support for LabWindows CVI, otherwise the examples will not be there.

    Best regards;

    Pedro Muñoz

  • the .c and .h files still open in CVI 9.0 even with CVI 2009 is installed

    I had this problem for a while but have managed to live with her. Since I installed LabWindows/CVI 2009 my .c and .h files still open in LabWindows/CVI 9.0. all .cws, .fp, .uir and .prj files will open in 2009. I tried the files in "file types" remapping and even fiddled with the registry to try to get the .c and .h files to open with the correct version of the CVI. This has been without success.

    Any help would be appreciated.

    Thank you!

    I found myself fixing entering into the registry and change the path to cvi.exe. He was always set the path to the executable file for CVI 9.0. That's what the types of files for .c and .h files were SEO even if I selected the executable file in 2009 of the CVI.

    It seems that the path was never changed when I installed CVI 2009.

    Regards-

    John o ' c

  • Using a DLL built with LabWindows/CVI

    Hello world

    I'm pretty new in the environment, LabWindows/CVI, until present excuses for any silly question. I have a real-time application running in a PXI, but I want to "complete" by adding new features, I have in the C Code generated from Dymola. I thought about creating a DLL of this code (using LabWindows) and then insert it in the .vi (the one I have running in the PXI) using the library function call so that I could have the new .vi running in PXI.

    Will it work?

    Thank you

    Hi all

    I S is true, you can find this knowledge base and really useful related links. This tutorial looks also interesting. However, take into account that the code runs on a real-time platform (such as the functions will work with the same priority as the appellant threadand, many other issues). Remember to FTP the file *.dll for PXI.

    Hope this helps,

  • ActiveX - Word - casting of the objects to the variants

    Hello

    I'm just getting used to the use of Active X to automate the tasks of MS Office. I have the full suite and report generation tool does some things, but there are many others that I have and I give X a go Active (that's basically what NOR do anyway).

    I have problems with some of the methods they have a variant of entry type, but no one tells me what is the format of the Variant. For example, I give you this VI which seems to add a caption to an image. I see the following documentation from Microsoft, which tells me that:

    Documentation of the method

    Label
    Type: System.Object

    Required object. The legend label must be inserted. It may be one of the WdCaptionLabelID constants.

    Title
    Type: System.Object

    Optional object. String to be inserted immediately after the caption (ignored if TitleAutoText is specified).

    http://msdn.Microsoft.com/en-us/library/Microsoft.Office.Interop.Word.range.InsertCaption%28V=Office...

    -So, I should get my variant such as "System.Object" (?). I could probably assume that the title is just a simple string, but where would know that officially? My guess will fail eventually.

    Enum for type of legend:

    http://msdn.Microsoft.com/en-us/library/Microsoft.Office.Interop.Word.WdCaptionLabelID%28V=Office.15...

    -J' tried casting as a string and a number, or work (I guess an enum is a number, I tried 0,1,2)

    Any help would be appreciated, even if this can be more Microsoft is not to document their structure of objects that the problem of NOR, we are working towards the same goal! It is possible that there is another mistake as to why this program does not work, but I still need the General method...

    Note that you must have an input file specified to make the program work.

    Thanks for your help,

    Rik

    rik_aspinall wrote:

    (4) catch on the .NET support. The limitation was not good advertising.

    (5) words, Interop, ActiveX, .NET and COM all seem to be things that make this technology works. In addition, .NET looks like he's trying to keep old technology goes, which is worrying for the long-term support. The fact that nobody does this simple and well documented as a solution means that I'll ask an open-ended question: this feature/technology becomes obsolete, and if so, what will replace it and when?

    Thanks to tyk007 and bob for your help!

    Rik

    COM Interop in LabVIEW execution is tedious for a number of reasons - mainly because of the architectural design of many COM components. Their well-designed components are loosely coupled, but this often means a lot of calls on many objects - many of whom often optional parameters. My suggestion is to use a wrapping to LabVIEW .net is necessary. It is not that it is not possible to apply directly in LabVIEW (obviously), but you need a lot of infrastructure in your code to make sure that you don't lose that same coupling or, more importantly still, readability in your own extension of LabVIEW.

    In your scenario, I would ask myself: is this interface that I am building a long-term solution or a code that I am likely to change often? If Yes, then you could encapsulate COM Interop calls, and actually create a façade allowing the final user (eg. LabVIEW) functionality you need via an interface determined, without exposing the interchangeable parts (COM Interop). However, you must be comfortable said creation .net assembly that can be intimidating if you don't have the experience.

    http://en.Wikipedia.org/wiki/Facade_pattern

    As future support goes - it's a really, really good thing that .net helps keep these old technologies going. Long term support becomes a growing concern for these markets (read - more commercial rather than consumer solutions) and there are millions of apps out there running currently running one of these technologies. It's one of the reasons why I have recommended to you than a façade may be the best solution in the long term - there is always a desktop API. A front will always provide the same interface, whatever it is, if the calling code is not affected when the fact of the way that you interface API.

    PS: Windows 8 exposes the WinRT Basic programming framework, which is based mainly on the... COM I don't see not its predecessor going anywhere for many years yet.

  • Is it possible to get a list of the refnums all ActiveX objects loaded into memory?

    Specifically, I want to programmtically save and close an open excel workbook which has not yet been registered and I don't know the name of. LabVIEW.

    I know how to manipulate the workbooks I open from a saved location, but don't know how to take any workbook is open on my computer and save it to a known location.

    Thank you!

    I saw this post and thought it might be a similar method for ActiveX objects to vi:

    http://forums.NI.com/T5/LabVIEW/is-it-possible-to-get-a-list-of-refnums-to-all-vis-loaded-into/TD-p/...

    DaveRines wrote:

    Specifically, I want to programmtically save and close an open excel workbook which has not yet been registered and I don't know the name of. LabVIEW.

    I know how to manipulate the workbooks I open from a saved location, but don't know how to take any workbook is open on my computer and save it to a known location.

    Thank you!

    I saw this post and thought it might be a similar method for ActiveX objects to vi:

    http://forums.NI.com/T5/LabVIEW/is-it-possible-to-get-a-list-of-refnums-to-all-vis-loaded-into/TD-p/...

    This should work:

    If you want to change the path or to have more control over the options, you can replace '_Workbook/Save' method with

    In this case, if you want to avoid pop-ups, make the 'Visible' and 'DisplayAlerts' FALSE properties when you open the Application in the first node of ActiveX

  • The word 2013 Document ActiveX object display

    I know that the old method of visualization of Word documents is to use a webbrowser object.  It does not now since the document opens in word instead.  MS has a work around, but suggests no not to use new projects (it involves changing the registry and I'llbe distribute this application to other machines, so it's not an option).  I would like to know if why webbrowser2 does not appear as an exploitable ActiveX object in LabVIEW 2012 and if anyone knows how to use the Word document object, you can scroll and navigate in a word document.

    Thank you

    I gave in to the next solution although Microsoft recommends that there is another way, I can't seem to make it work. ()

    http://support.Microsoft.com/kb/982995

  • visibility of object inside the function handling

    Hello!  It is to animate CC HTML5 Canvas.  I am sure that it is extremely simple, but please explain why does not the following:

    function hideButton() {}

    This.Button.Visible = false;

    }

    hideButton();

    At the same time, running this.button.visible = false; outside the service works very well.

    How can I correct this clip from movie?

    Thank you!

    PS is there a reference library that I can look to animate CC JavaScript?

    It does not work because the event handlers in JavaScript, 'this' by default refers to the window object, not the object that raised the event. Simplest solution is to use bind() when you assign to the event handler (the built-in code snippets illustrate this).

    Best references for coding in canvas mode are:

    CreateJS | A suite of tools designed to work with HTML5 and JavaScript libraries

    JavaScript | DND

  • passage of data container of teststand labwindows/cvi handle error

    Hello

    I'm moving a container of teststand parameter to labwindows/cvi using this UI API messages following this code created by Peter-r. example:

    https://decibel.NI.com/content/docs/doc-23332

    It is a great example to start with, but as I run using worldwide debbugging lying on the build options, I see that the handle of the containerData object is not released. If I add the CA_DiscardObjHandle (containerData) anywhere in the project, it gives me a FATAL_RUN_TIME_ERROR. This handle must be released? If I call a bunch of these user interface Messages, it will cause memory problems? My code runs right now, great, but I don't want to face a problem of memory later.

    Any help on this will be great!

    Thanks in advance.

    -Luis

    When you add throw it? Maybe you add it to the wrong place. You must add it just after the CA_FreeMemory() called as follows:

    CA_DiscardObjHandle (containerData);

    It should work.

    You can also try the following instead of the functions:

    CA_CreateObjHandleFromInterface (var, & IID_IUnknown, 1, LOCALE_NEUTRAL, 0, 0, & containerData);

    I think that you will still need to get rid of the objhandle when using this API.

    -Doug

  • Unidentified for reference ActiveX object

    There are objects in the examples following that I can't identify (the program was written by someone else).

    There are labeled WINX32Lib.IExpSetup and pFile on the block diagram. There's obviously static ActiveX references, but the contextual help of Labview said "no description available".
    What do these, and how to create them in the palette of functions?

    calvintiger wrote:

    They were in fact part of the Winview (used for scientific CCD cameras).

    Do you know how to create these items on the block diagram?

    I admitted little knowledge or not and you think I can help it Fund?

    I'll take the complement and offer what I can in Exchange.

    Start by droping a container ActiveX on the FP.

    Right click and find an option to navigate (or something like that).

    There may be an option to "Create from the document" available for ActiveX stuff.

    In the case of navigation find something that looks like what you want (with the help files you will have to explore).

    After choosing the AX thingy, go to the BD and start adding nodes of property or invoke nodes and see what you find.

    I don't know if this will help. That's what I would do if I found myself trying to create code using undocumented stuff AX.

    It would be interesting to link to serach for help on the web for the AX.

    You COULD also just drag the code that you have demonstrated a new schema and there is.

    Made with the specualtion!

    Have fun!

    Ben

Maybe you are looking for

  • NEITHER Vision Builder built exe does not have logging.

    Hello!I did have an application with NI Vision Builder, and the executable version does not save the log file. During the test it or vision, she recorded when I migrate to labview it records, but when I build the executable file, which does not have

  • HP Stream: Enter the password administrator or power on password

    my HP stream (laptop), boots by saying, "Enter password or power on password administrator". \ After failing several times, I get: "System disabled".[85325803]

  • Internet Explorere 11.0.2 not supported on EA2700 browser

    I just bought the EA2700 and get a message when you connect to Internet Explore 11.0.2 using Windows 7. EA2700 firmware is version 1.1.39.145204. Firefox works fine. Browser not supported To use Linksys Wi - Fi smart tools, we recommend that you use

  • Transfer data between two pages

    I have a login page where I'll give you the user name and password, after a successful login, I receive a LoginToken from the server I have to use for the particular user's information in the next page (profile page). My problem is that I get the Log

  • Should what development environment I use?

    Environment: 32-bit Windows 7, latest development environment Sun's Java, Visual Studio 8 most recent plugin beta BlackBerry 9700 Simulator works very well in the white list remote .NET/ASP/SQL Server 2008 to use as remote as possibly .asp page direc