Client server of executable activex LabVIEW project with excel vba

Hi all

I submitted a ticket to support nor on this problem, but my deadline for this project is very close, so I would like to ask the community to see if someone has encountered this problem before (I hope it's ok that I'm doing this!). I did a fair amount of forum-scouring, and I didn't know this even discussed problem.

I built a labView project which is essentially in the material data and
preforms various visualizations and transformations on the data. A bit of the
Screws in this project are available by VBA Excel as a Server ActiveX with LabView and
Excel as the customer - and it works! I recently discovered I would need to do a
executable version of my project, so I'm now trying to figure out how to do the same thing
with my executable file as the server instead of LabView. Here's a simplified version are
My VBA code:

Void Button1_Click()
Dim lvapp As MyServer.Application
Dim vi MyServer.VirtualInstrument

Set lvapp = CreateObject ("MyServer.Application")
    
VI the value is lvapp. GetVIReference ("Main.vi", "", True)
    
Sheet1.cells (1, 1) = vi. GetControlValue ("Path")
    
lvapp. Quit smoking
End Sub

I replaced LabView here with the name of my server. The code
failure of the CreateObject method with the following error:

Run-time error '13':
Type mismatch

Things, I'm pretty sure I'm doing it correctly:
-L'application is configured as an ActiveX server in the build options
-J' ran the VI once and close/re-open it just after each build before trying the
worksheet
-In excel, VBA method is configured to reference the type library of the server.
-J' have LabView itself closed when I run the .exe

Thank you

Alex

My versions and such:
Software of NEITHER: LabVIEW version 2012
OS: Windows 7

It's interesting - I'll have to look into the issue. In the meantime, I found a solution.

It's quite mysterious, but it seems that all I had to do was make sure you only the type library of the server executable has been referenced in VBA (no LabView or OLE type library) and declare the variable app as object, rather than MyServerName.Application. Honestly, I have no idea why this works, but it does. Also, I learned that you need to use the executable file paths, which are a little different than the paths of project files.

Thank you

Alex

Tags: NI Software

Similar Questions

  • Find the requirement software LabVIEW project

    Hello world

    Someone knows how, a LabVIEW project with multiple targets data (computer, Compact RIO sbRIO, PXI,...), which is the component of the software and drivers required to run correctly and completely the screws of the project contains assuming the screws project successfully on the developer's computer and I have the hardware components of project defined at my disposal.

    What should I exactly ask the report as software OR necessary components.

    Thanks guys...

    Hello

    With Labview 2013 generation project installation program may automatically add all additional installers to your installation package.

    I don't think that the process is perfect, but it should certainly help. More details here...

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvdialog/addl_install_info_db/

  • GENERATE EXCEL IN CLIENT SERVER ENVIRONMENT

    Hello

    For the moment, I use the < utl_file > to generate an Excel (from oracle table) via sql * form GUI on the server (my development/cilent server have a single machine)
    The user presses a button on the form of GUI and the excel file is generated.

    Now let us when we transfer to a 'real' production environment with the client, server architecture, different machines, my drive to excel cannot generate an excel file:

    error: ORA-29283: INVALID FILE OPERATION: ORA-06512 at invalid file for the file 29283 ORA SYS_UTIL operation

    Thre is a solution for this where the user can press the button in the form of GUI and the excel gets dumped to the customer? (export excel)

    THANKS adavance everything advice.

    Good luck... and don't forget to mark your question as answered.

    concerning

  • LabVIEW DSC Client\Server application. How to install the executable on the client.

    Hi all

    I'm currently programming an Client\Server application.  The server application must host shared variables, and the client application must read.  The client application reads the shared variable in the indicator of their connection with the properties of the indicator.  I started programming and the client application and the server are in the same project.  In the client application I am lie the indicator to the library in my project that has the "My Computer" as the address.  My question is how do I tell the executable installed on any computer, that I wanted to use the variables shared on the server?  I have LabVIEW 2009 DSC.

    Thank you

    If by "data binding", you hear the Variables defined on your computer, then Yes, unless you want not linked to new variables on each executable, in this case here is an example that can help.

  • EPICS 2015 Client of e/s server on 64-bit LabVIEW

    Hi guys,.

    Ich have installed LabVIEW Full Development System andLabVIEW 2015 2015 Full Development System 64 Bit SP1 on a 64-bit Win7 machine. Now, I want to install EPICS 2015 Client server of e/s (http://www.ni.com/download/labview-datalogging-and-supervisory-control-module-2015/5501/en/). However, it works so, but it only installs the 32-bit version. I need desparatley to work with 64-bit LabVIEW.

    Any ideas, I'm desperate now?

    See you soon

    try to use this

    http://www-CSR.Bessy.de/control/SoftDist/CA_Lab/

  • Client-server applications with problems

    We use appvolumes 2.10

    We are certain to have issues with client-server applications such as launch winscp and subversion.they very well, but they can not connect to servers. The appstacks work fine on own vanilla but does not work on the main image with all the policies and basic applications. When install us it manually on the main image the applications work as expected. Indications on where we can make changes on the primary image for the appstacks works? Thank you

    Lakshman thanks for you the directions. I tried to change the .cfg file last week, but had no luck. It's a known with Appsense AM incompatibility. We have uninstalled Appsense & h and it seems to have solved the problem.

  • How to configure Gemfire mode client/server with external supplier of XA transactions

    Hello

    I would like to have a transaction between the operations of Gemfire and WebSphere MQ using Atomikos as XA transaction manager.

    The documentation is rather evasive about how to configure Gemfire with an external transaction manager when using a client/server Gemfire deployment.

    Any help appreciated.

    Thank you!

    Unfortunately the Atomikos is not supported. Please see this thread for more information: GemFire and Atomikos in tcServer

    -Jens

  • How to share a project with a non Adobe user and present it to perspective clients?

    I have to share my project with a person who will present it to perspective clients. I can't ask this person to open an Adobe account. Is there a way for him to access my folio DPS and show it? Or I can export it in a way that allows to enjoy the features of the interaction built inside?

    Thank you!

    They create an Adobe ID or do you it for them and give them. There's no other way.

  • Peuvent Test pots customized with form 6i-&gt; Client/Server performance?

    I want to test Jar files with Forms 6i in my office, but I can't get the handle shape-> Web to work. Is it possible for the run-time load just for PJC pots when you run shape-> Client/Server? So far, when I did, it does not perform any CJP. Any ideas, tips?

    Thank you
    Kurz

    You cannot use CJP when you run client-server.

  • Which supplier Source control would you recommend for a single developer on a labVIEW project moderately important

    I have not used a front Source control provider.  My hope is that I don't have to deal with a large learning curve in using the basic features of a source control provider.

    Also curious is the most popular provider used by LabVIEW developers.

    Thank you.

    If you are getting started with Subversion (Tortoise SVN is the 'client' to a Subversion server), you have the choice between three options:

    1. Use a server Subversion maintained by your company or your University.  (I, fortunately, put at my disposal one).
    2. Use a commercial Subversion server.
    3. 'Rolling' (which means that the other host a server yourself, on your PC or on another PC, or simply use a 'local' repository).

    I listed them in the following order (according to me) that it is "desirable".  I, myself, would be enough worked to avoid Option 3, because it puts all the "eggs in one basket', in other words, you must assume the responsibility of not only keep your code Committed/updated the repository, but you must keep secure, backed up repository, and 'remote' (if your house burns down and the external unit containing the repository also goes up in flames you lost everything).

    I recently started a collaboration with a colleague in the Canada.  Because of institutional policies, I couldn't access our server local to Subversion, but found that assembled (www.assembla.com) offered a Subversion server access at a reasonable cost.

    Once you have identified a server, get your created repository and your project saved in the repository is not too difficult.  A practice I found works well is to organize the filing of LabVIEW, one project per repository projects, with the name of deposit is the name of the project.  I have adopted the model of trunk/branches/tags subfolder for the repository (i.e. the filing "Of Bob Project" will have a trunk, a branches and a subfolder of tags), with most of the activity taking place in the trunk.  I try to use the branches almost never, but that's another story.

    There are a number of tools to put "hooks" in Subversion in LabVIEW.  My personal preference is to do all my work of Subversion at the level of the Explorer of Windows files, validation and updating of entire projects to the end and beginning of work sessions (commit to the end, updated at the beginning).

    Bob Schor

  • There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    Hi, I m a bit new in LabVIEW and I'd like to ask a few questions...

    -There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    -One API PI or raspberry beaglebone exists for LabVIEW?

    -Power supply Wich can recommend you control with LabVIEW? (some chip solution witn 0 - 30v / 0 - 3A DC)

    Thank you very much for your advice!

    Best regards

    Elena

    Elena,

    I know raspberry, so no comment on that.

    For the rest:

    -Do you want to create tools for developers? If so, we must look in the API of project VI and VI server. If this isn't the case, please compile your application LV as executable and call this one using a batch file.

    -LV prefer specific supplies. LV is a programming language. There are several power supply providers (including OR) which provide directly the LV API for their power supplies. So, essentially, the approach is:

    1. choose food that serves your needs.

    2. check if the power supply has a standard interface for programming (such as Ethernet, GPIB, or if the power supply is PXI, is already providing a programming interface!)

    3. check if the LV API (so-called "instrument driver") is available for the device. In the case of a PXI system, get you a device driver (for example NI DCPower).

    4. check if the LV samples are available (for example in the Finder for example LV once you have installed the driver).

    Norbert

  • Can Excel launch an executable of Labview?

    Hi all:

    Can Excel launch an executable of Labview?

    I would like to open an Excel file, fill data in Sheet1

    and then press a button on the worksheet "Sheet1" Excel.

    By pressing this button, it will start to run an executable of Labview.

    Thank you all,.

    \\carlos in Sunnyvale, CA

    An executable of LabVIEW is an executable file like any other executable file. As long as the LabVIEW run-time engine is installed, you can call in an Excel macro using the Shell() command as calling Shell (executable).

    (EDIT: clicked Post until I had finished it)

    OR, you try to call using ActiveX with LabVIEW as an ActiveX Server?

  • LabVIEW project

    I have a project with a file source labview and many outbuildings and would collect all the physical files for use on another machine.  Is this Source Distribution?  Please give me brief description how to do this.

    Thank you

    dkfire wrote:

    2 points:

    1. have you installed drivers/modules Fieldpoint after you installed LabVIEW 2013?
    Whenever you install LabVIEW, you must install the modules be used after, so that each module is becoming international in this version of LabVIEW.

    2. you should not install the full developer system on a target machine.
    Normal you build an exe file to run on the target. And the exe is sufficient runtime engine, a small installation and drivers.

    Perhaps, but to play the lawyer of the devil here, I worked for a well-known aerospace company which has actually made entirely under license from developer environments for each of their test machines of production for slightly different products.  In addition to being ultra expensive, the only drawback would be that technicians could screw things, but they never - and anyway, all software was checked crc and the software would not be executed if does not match the crc check.

  • What is the best method to implement the communication client-server TCP/IP of multiples?

    I want to make a customer network and multiple server using the TCP/IP protocol.

    I have 30 remote wireless sensors to send data to a server with LabView.  This problem is corrected.

    The server has a router that communicates with the sensors and is connected to the PC via cable net.

    I want to find the way the most effective communication from the point of view of resources and, above all, the response speed of the system, because I want to update the screen as quickly as possible, to send more data per second of the sensors.

    I think I have (only?) two options:

    (* 1) open 30 simultaneous ports and process them in parallel to decode and display the data from each sensor.
    (* 2) using two loops: one to listen to new connections and the other to take the floor, placing them in the 'tail' and decoding and then each of them separately in order to display the data from each sensor. See http://www.ni.com/white-paper/3982/en/

    NOTE: at the moment I have only 4 sensors tested with method 1: it takes about 3 minutes to establish communication (why?), and then it works properly.

    What method would you recommend? Why?

    Thank you all in advance!

    I assume you mean to "Start Asynchronous Call. Which has been added to LV2011. If you are using an older version the method I posted above works fine. In fact, we always use this VI (Manager Spawn of connection, which is the one we wrote) in LV 2011 and 2012 LV.

    In fact I posted this library recently. You can find the code here. That the code implements a queue-based network. You can watch as an example of a server that generates handlers for each client that connects.

  • Unable to connect target RT in the LabView project

    Hello

    I use time LabView real-time 8.5 on a desktop PC. I see the target at MAX where I can change the network settings on the target and use FTP without problem. But it is impossible to connect to the target in a LabView project.
    The error of the target journal wrote:
    ####
    #Date: Monday, June 9, 2008 03:04:29
    #OSName: PharLap
    #OSVers: 13.0
    #AppName: PH_EXEC
    #Version: 8.5
    #AppKind: AppLib
    #AppModDate: 09/06/2008 06:55 GMT

    LVRT. DLL loads the address: 0x003EE000

    Can someone help me?

    Thanks in advance

    Hello everyone.

    The problem is solved! The reason of my problem is that LabView RT 8.5.0 supports no more than 2 GB of RAM installed on the computer, as described in this document.
    My RAM GB setting the things that were not possible before:
    -to connect to the target in a LabView project and deploy the code.
    -to activate the multiple core processor in the BIOS of the machine

    I said that the withdrawal of the USB keyboard is useful. Indeed with my keyboard plugged in, when I install other software as server VISA for example, MAX do not recognize the target automatically, I have to add it manually by specifying the IP address and I can not connect to the target in a project of LV.
    Unplug the USB keyboard (and other devices) to solve this problem.

    Good day...

Maybe you are looking for

  • Satellite A60 and wireless card

    What card can I use for my laptop so that I can connect to the internet wireless, at the University or in other places of the internet enabled. Really need help don't understand something on the wireless cards and also could you recommend all those w

  • Reference length Separator - Pages

    After nearly an hour of looking, I found how to get my reference separator to the right place. Now, I want to set the length of this one - to run the length of the text in which it is located, that is to say. from margin to margin across the page. Bu

  • memory card reader does not

    Compaq Presaro CQ3000 model series CQ3420AN memory card reader does not read SD cards. Where can I find download original driver.

  • Air iPad problems

    My brother has an iPad Air and he put a wrong e-mail address in iCloud.  He has reset the iPad to factory settings and now has activation lock.  He can't put the password because the email does not exist, so there is no real password.  Any help?

  • HP Pavillion G7096EA &amp; a modem to broadband from three (Huawei E220).

    Hi all A friend bought a laptop HP Pavilion G7096EA 2 weeks and also signed for three broadband. Its three modem is a Huawei E220. When it is plugged in, Windows Vista does not recognize the modem correctly. Normally, these modems will fool the syste