String ActiveX Server property

Hello world

I am developing an application using LabWindows/CVI 8.1 on a machine WinXPSP3. To enable easy automation of functions in my application, I decided to add an ActiveX Server interface to my request and the first tests look very promising. However, after I introduced a property of type string to my ActiveX Server I get a strange error when the get method is called by the customer. The code generated automatically from the ActiveX server receives the application string and converts it to a BSTR that is returned to the client. The string pointer returned by the demand function is converted to this type BSTR and later in auto genereated the string pointer is freed with a call to CA_FreeMemory (). Generally that it works fine but when I run my application in mode Debug execution is interrupted at this point (even when there is no breakpoint) and the debug window displays the following message:

Heap [application_debug.exe]: invalid address specified to RtlFreeHeap (00140000, 027995E0)

In fact, the allocated memory is not released.

I have generated a small sample project that reproduces the issue. The error occurs in autotest_axs.c on line 71, a breakpoint is set for convenience. The attached VI LabVIEW is used to serve the client ActiveX and makes the necessary calls to reproduce the effect. Simply build the CVI project in debug mode and start the VI during execution of the implementation of the CVI.

At the moment I don't think I'm doing something wrong, maybe everyone at OR has an idea.

Thanks in advance!

Torsten

In the AutotestApplicationget_String function in the autotest.c file, you should use the function library ActiveX CVI CA_AllocateMemory to allocate memory for the string. Instead, you use the ANSI C malloc function. This affected memory is released later by calling CA_FreeMemory call to the CaSrvrAutotestApplicationget_String function in the autotest_axs.c file. It is allocated in the memory manager and deallocated in another.

Tags: NI Software

Similar Questions

  • Adding units of a string, or a property

    Hi, I have several strings to values of a Json online, and I want to know if there is a way I could include units like C and or F in them or in the labels on my qml file is the code that I have

    CPP

    setTemp (["temp_C"] current0 m:System.NET.SocketAddress.ToString ());

    And in my qml

    onTempChanged: {}
    weatherDataTemperature.text = temp;

    At the risk of completely underestimating your problem can not you just add the to the end of the string?

    weatherDataTemperature.text = temp + 'C '.

  • Reference error VI open when you use an EXE created LV as an ActiveX Server

    Make a long story short, I am creating an executable in Labview, I can call another program Labview via active x. I used the article following my guide:

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

    It sounds simple, but I get error 6945 saying that the name of VI is no longer suffiencient. I checked and rechecked the name VI that fuels the path of the VI and I know that it is correct. What I'm really trying to do is capture the VI reference so I can hide the front panel. A screenshot of the code and the error is attached. Any thoughts?

    I would first try to run the executable and get the path of the VI including "Current path VI" primitive in VI. This is to ensure that your calling way really matches what is in the executable file.

  • 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

  • ActiveX - LabView from c#

    Hello

    I create a program in LabView in a program already developed in c# that uses ActiveX to control a laser machine.

    The first thing I see in the program is the initialization of the ActiveX Server and equipment system:

    Laser = new LaserAxApp();

    LaserSystem = Laser.System;

    I found a refNum in labview with LaserAxApp, but in their properties, I found systems within the ILaserAxApp property. But also, I found a different refNum called laserengineLib.ISystem which is another reference to class as AxApp.

    which choose to continue implementing my program of c#?

    Thanks in advance,

    Stavrosyt wrote:

    Hello

    I create a program in LabView in a program already developed in c# that uses ActiveX to control a laser machine.

    The first thing I see in the program is the initialization of the ActiveX Server and equipment system:

    Laser = new LaserAxApp();

    LaserSystem = Laser.System;

    I found a refNum in labview with LaserAxApp, but in their properties, I found systems within the ILaserAxApp property. But also, I found a different refNum called laserengineLib.ISystem which is another reference to class as AxApp.

    which choose to continue implementing my program of c#?

    Thanks in advance,

    Thanks anyway... I managed to find the answer.

    It works with the properties and methods in the ActiveX menu in Labview. To answer my own question, the result is to use iLaseraxapp and ilasersystem refnums.

    Here is better explained:

    (1) start the laser with refnum laserengineLib.ILaserAxApp

    (2) use the open automation to open and

    (3) bind it with a node of the system IlaserAxApp (true visible) property.

    And that's all. Then you can use lib system even for event reminder reg and ilaserdoc for loading a file of xlp laser.

  • ActiveX-17502 system-level exception

    I have compilied a VI in LV2009 in an ActiveX Server. I tested the ActiveX functionality with a VI call to read a value of control and it works great. He opens the executable file using the 'opening function Automation. " uses the method 'Get a reference VI' to get the reference; then use that reference to get the value of control.

    If I try to create a reference VI of the Teststand 4.2 ActiveX COM adapter, the sequence throws an error "system level 17502 Exception." The executable opens and works once it is open, if I run it manually. The cluster 'ERROR OUT' on the front panel indicates no error.

    I have attached the LV pattern-block and the stage of TestStand screenshots in case I'm missing something. The path to the VI was copied form the LV path string is obviously correct.

    I'm baffled by this one.

    Do not create a file, this is not what this setting is. This setting is for deserialization of an object stored on the disk. You must use the default 'Create New' instead. TestStand will find your server by using the Windows registry (the operating system is really what makes this) you don't need to specify a path to your server.

    Hope this helps,

    -Doug

  • SE atg.servlet.pagecompile.PageCompileException: cannot load the class: _dasadmin_3__UTF_s8._index Exception while accessing the dynamo Server merch

    Hi Experts,

    I am getting error while accessing the dynamo of merch, next server

    18:10:17, 334 ERROR [STDERR] java.lang.UnsupportedClassVersionError: _dasadmin_3__UTF_s8/_index: version unsupported major.minor 51.0

    18:10:17, 335 ERROR [STDERR] at java.lang.ClassLoader.defineClass1 (Native Method)

    18:10:17, 335 ERROR [STDERR] at java.lang.ClassLoader.defineClassCond (unknown Source)

    18:10:17, 335 ERROR [STDERR] at java.lang.ClassLoader.defineClass (unknown Source)

    18:10:17, 335 ERROR [STDERR] at atg.servlet.pagecompile.ReusableClassLoader.findClass(ReusableClassLoader.java:330)

    18:10:17, 335 ERROR [STDERR] at atg.servlet.pagecompile.ReusableClassLoader.findClass(ReusableClassLoader.java:286)

    18:10:17, 335 ERROR [STDERR] at java.lang.ClassLoader.loadClass (unknown Source)

    18:10:17, 335 ERROR [STDERR] at atg.servlet.pagecompile.ReusableClassLoader.loadClass(ReusableClassLoader.java:602)

    18:10:17, 335 ERROR [STDERR] at java.lang.ClassLoader.loadClass (unknown Source)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pagecompile.PageProcessor.loadClass(PageProcessor.java:2704)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pagecompile.PageProcessor.loadClass(PageProcessor.java:2605)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pagecompile.PageProcessor.compilePageClass(PageProcessor.java:2479)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pagecompile.PageProcessor.getPageInfo(PageProcessor.java:1787)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pagecompile.jsp12.Jsp12PageProcessor.getPageInfo(Jsp12PageProcessor.java:324)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.minimal.MinimalServletContainer.compileServlet(MinimalServletContainer.java:153)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pagecompile.PageCompileServlet.service(PageCompileServlet.java:303)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.DynamoServlet.service(DynamoServlet.java:148)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:160)

    18:10:17, 336 ERROR [STDERR] at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:657)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:253)

    18:10:17, 336 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:228)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.FileFinderPipelineServlet.service(FileFinderPipelineServlet.java:729)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:275)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.ServletPathPipelineServlet.service(ServletPathPipelineServlet.java:208)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 337 ERROR [STDERR] at atg.security.ExpiredPasswordAdminServlet.service(ExpiredPasswordAdminServlet.java:312)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.BasicAuthenticationPipelineServlet.service(BasicAuthenticationPipelineServlet.java:513)

    18:10:17, 337 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 338 ERROR [STDERR] at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491)

    18:10:17, 338 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 338 ERROR [STDERR] at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:249)

    18:10:17, 338 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    18:10:17, 338 ERROR [STDERR] at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1271)

    18:10:17, 338 ERROR [STDERR] at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:952)

    18:10:17, 338 ERROR [STDERR] at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272)

    18:10:17, 338 ERROR [STDERR] at atg.nucleus.servlet.NucleusProxyServlet.service(NucleusProxyServlet.java:237)

    18:10:17, 338 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    18:10:17, 338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    18:10:17, 338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    18:10:17, 338 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    18:10:17, 338 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    18:10:17, 339 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    18:10:17, 339 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

    18:10:17, 339 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    18:10:17, 339 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

    18:10:17, 339 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

    18:10:17, 339 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

    18:10:17, 339 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

    18:10:17, 339 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    18:10:17, 339 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    18:10:17, 339 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

    18:10:17, 339 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    18:10:17, 339 ERROR [STDERR] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)

    18:10:17, 340 ERROR [STDERR] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)

    18:10:17, 340 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

    18:10:17, 340 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

    18:10:17, 340 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$ Http11ConnectionHandler.process (Http11Protocol.java:599)

    18:10:17, 340 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$ Worker.run (JIoEndpoint.java:451)

    18:10:17, 340 ERROR [STDERR] at java.lang.Thread.run (unknown Source)

    18:10:17, 340 ERROR [PageCompileServlet] page compilation error: index.jhtml: could not load class: _dasadmin_3__UTF_s8._index

    atg.servlet.pagecompile.PageCompileException: could not load class: _dasadmin_3__UTF_s8._index

    Can you please suggest me to fix this problem.

    Thank you and best regards,

    Murali

    Check which version of the JDK bin directory is in the path as 'javac' would be executed to compile the jhtml pages used in dyn/admin. There is a/atg/dynamo/servlet/pagecompile/ExtendedJhtmlPageProcessor of core component which has a string of compileCommand property whose value is specified as something like "javac - classpath {1} d {2} {0}". In fact, this same chain of command is used to compile pages with jhtml javac. Placeholder for the entrance of this is source file {0}, {1} for classpath and {2} is for the default destination directory, \home\pagebuild. In the first post, you mentioned this error:

    18:10:17, 334 ERROR [STDERR] java.lang.UnsupportedClassVersionError: _dasadmin_3__UTF_s8/_index: version unsupported major.minor 51.0

    This means that the major version number of your class file for the jhtml compiled of dyn/admin page 51, which means it is compiled with the java compiler JDK7 and so it can work very well with an interpreter of java7 unless you specify the java version of target when compiling as 'javac - target 1.6'. Looks like you have JDK7 and JDK6 on your machine and the JDK7 javac is coming to the system path. You can check the default version in the path by running "javac-version" on the command prompt. Change your path if necessary so that "javac-version" will give you the 1.6 version that you use. Also, make sure that ATGJRE is the version of java-oriented correct in \home\localconfig\dasEnv.bat: .sh

    It will be useful.

  • What is the recommended method to configure a web proxy to another server on the LAN?

    Hello

    I use Server to manage incoming web traffic, but also have another server running I want to use outside.

    I work in directly modifying the site configuration file and adding the ProxyPass and ProxyPassReverse directives but these overwritten when the site configuration is changed in the.app

    I want to implement this in a way that is not crushed and is more robust.

    Any advice would be very welcome.

    Thank you

    Gary

    I'm certainly not an expert in the field, but I think you can do what you're asking using the functionality of the Web application.

    You bring a plist to webapps folder and a conf file in the apache folder and then using.app, edit your Web site, and then click Change advanced settings and select the Web application that you created. It should not then be written more if you make any changes.

    The content of the conf file would proxy information in it:

    # of http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

    RewriteEngine on

    RewriteCond% {HTTPS} = off

    RewriteRule. -[E = Protocol: http, E = port: 8000]

    RewriteCond% {HTTPS} = we

    RewriteRule. -[E = Protocol: https, E = port: 8010]

    ProxyPassReverse / http://secondserver.example.com:8000 /

    ProxyPass / http://secondserver.example.com:8000 /

    and the plist would be something like this:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <! DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0 / / IN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > ""

    <!-see the manual pages for webapp.plist (5) and webappctl (8) for more information on this example webapp.plist->

    < plist version = "1.0" >

    < dict >

    includeFiles < key > < / key >

    < table > <! - include files are enabled in the virtual host then webapp - >

    < string > /Library/Server/Web/Config/apache2/httpd_yourwebapp.conf < / string > <! - name must match your conf file - >

    < / array >

    < key > name < / key >

    < string > com.example.secondserverwebapp < / string >

    displayName < key > < / key > <! - name displayed in app server - >

    < string > SecondServerWebApp < / string >

    installationIndicatorFilePath < key > < / key > <!-the presence of this file indicates web app is installed->

    < string > /Library/Server/Web/Config/apache2/httpd_yourwebapp.conf < / string >

    sslPolicy < key > < / key > <! - determines the behavior of the webapp SSL - >

    < number > 0 Integer < / integer > <!--0: by default, UseSSLWhenEnabled->

    <!--1: UseSSLAlways->

    <!--2: UseSSLOnlyWhenCertificateIsTrustable->

    <!--3: UseSSLNever->

    <!--4: UseSSLAndNonSSL->

    < / dict >

    < / plist >

    This is perhaps not completely right, but can direct you in the right direction, I hope that someone with more knowledge will be the chip in the meantime

  • Caching server and IPv6 support

    Anyone know if it is possible to configure the server for caching to work if you are using a dual stack IPv4 and IPv6 network.

    When running dua-stack all client devices will prefer IPv6 when it is possible so set cache server service from Apple is to see every customer who logs as coming from a separate network rather than a single network. It doesn't seem to be a way to configure the server caching on OS X Server 5 for an IPv6 subnet, it accepts IPv4 addresses.

    Before that I have to submit this as a bug can someone prove me wrong with a workaround to get a double network stack to work with caching server.

    I got this job, it was just a matter of editing the configuration file server caching by hand to add the IPv6 range.

    The configuration file is located in /Library/Server/Caching/Config/Config.plist

    Make sure that the caching server does not work as you change the configuration file.

    Open the file in the Terminal for editing and search for the following text:

    < key > PreviousDataPaths < / key >

    < table >

    < string > / library/server/cache/data < / string >

    < / array >

    < key > region < / key >

    < string > 65622637284725D55356E27799AC1535 < / string >

    I will use the example of a range of IPv6 for the following subnet, 2001:377:3f:65ec: / 64

    Change the configuration file to add the IPv6 range as follows:

    < key > PreviousDataPaths < / key >

    < table >

    < string > / library/server/cache/data < / string >

    < / array >

    < key > PublicRanges < / key >

    < table >

    < dict >

    < key > first < / keys >

    < string > 2001:377:3f:65ec:0:0:0:0 < / string >

    < key > last < / key >

    < string > 2001:377:3f:65ec:ffff:ffff:ffff:ffff < / string >

    < / dict >

    < / array >

    < key > region < / key >

    < string > 65622637284725D55356E27799AC1535 < / string >

    Now add the TXT DNS record in the zone file located in /Library/Server/named/db.example.com

    _aaplcache._tcp 259200 IN TXT "prs = 2001:377:3f:65ec:0:0:0:0 - 2001:377:3f:65ec:ffff:ffff:ffff:ffff.

    Now start the update server cache and restart the DNS server if it is running.

  • Call2 method not found (ActiveX VI method)

    I have the following problem. I have an executable Server ActiveX is enabled.

    the code below is a calling VI. the code worked correctly before. When I inserted a new node called on the block diagram, I can't see not all methods.

    I think that the image below says a lot.

    Help, please!

    Thank you

    RENN

    LV2010Sp1 32-bit

    Hi Moritz M.

    you don't know. I'm happy to post the solution.

    Normally, the ActiveX Server is registered automatically at startup of the executable.

    But since the EXE EXE of old and new has the same name, at first, I had to cancel registration of the old activeX Server (see link: http://support.microsoft.com/kb/297279) save the new one manually.

    Its NEITHER too well documented on support page.

    How can I register type libraries, ActiveX controls and ActiveX servers?

    http://digital.NI.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A

    I got the diagram broken in appellant VI (that I've posted before) because the activeX Server (in my case the executable file) was not registered.

    Thanks for the reply

    RENN

  • ActiveX - Reg - led event reminder

    Hello

    I'm building a control for a Laser machine which based its controls in the ActiveX control technology. I had a program in c# that works, but I have because I wanted to change the settings and then connect it to another program Labview, I "translate".

    I start with a very simple operation:

    1. 'Start' ActiveX Server

    2. "load" a design for the laser.

    3. program of the "end".

    and then based on event (using the reg event reminder):

    If the "QueryStart" laser signal is activated by a switch, then "run" program.

    If the laser "starts", then light a led

    If laser 'ends', then light a led.

    I have problems to light a led by using the ref (LaserStartedLed) VI. I'm using as a model the Labview example: CWKnob to see a number from the button. But in this case, they use the numbers from the button, in my case are just Boolean, and I try to get data from common event.

    Can you help me with other ideas and corrections?

    Thanks in advance,


  • ActiveX stops working when I convert my vi to an executable

    Hello

    I have an app that works very well as a vi but when I convert it to an executable file the vi that uses ActiveX to connect to a camera, the game stops working. I tried to build the vi with and without the option "enable the activex server' checked with the same results.

    I don't know I'm missing something obvious!

    quick update, looks like I've fixed this problem.

    It seems to be down to the firewall windows is blocking access to the .exe once I added the .exe to the firewall exclusion list that it worked fine.

    See you soon,.

    Stewart.

  • Instantiate MFC ActiveX

    Hello everyone,

    I can't understand a very annoying problem.

    I'm building a new ActiveX under MS VC ++ 2008 with MFC.

    Then in LabVIEW, I use "Open Automation" (OK), then call the "About box" method (generated automatically by VC ++): I get messag error 0x8000ffff (catastrophic failure). Even if I turn on the indicator "without necessary window' (flag: windowlessActivate).

    I'm stuck here. Any idea?

    Thank you.

    Problem: I'm trying to use an ActiveX of LabVIEW Control. I use the function of automation open and pass the reference open in an invoke node. The invoke node returns an error:-2147418113 'catastrophic failure in xxx.vi.

    Solution: If you encounter this error, you are probably trying to use an ActiveX control, as you would for an ActiveX Server.

    Full source here: http://digital.ni.com/public.nsf/allkb/E0FA5D83F1E5276B86256C7E005FD83C?OpenDocument

  • MSXML SelectSingleNode property

    Hello

    I use the MSXML in labview to read an xml file. My VI works fine. But now I want to read the attribute xsi: noNamespaceSchemaLocation from the node root with the SelectSingleNode [queryString As String = @xsi: noNamespaceSchemaLocation] property. The result is an error. If I read all the attributes of the root node, the VI does not display an error. Is it possible that labview or the property cannot interpret the ': ' (colon)? Because it can read any other attribute without a ': '.

    Thanks for the reply,

    Shavo

    Hi Hillman,

    Thanks for your help, but I solved the problem another way. I used the 'attributes' property > "nodeName". So, I get a picture of all the attribute names and I compared it with the location of schema attribute. Is there a correspondence, the MSXML to get the value of the node and it's good. I create the following XML VI with the 'selectsinglenode-colon-problem' and post it here.

    See you soon

    Shavo

  • VISA resource name strings

    Hello

    I have a control "VISA Resource Name" on my front, according to the guidelines of the attached screenshot, which should automatically fill with the names of all the VISA resources that the PC can see.

    Is it possible to get a picture of these names as strings (via a property node, or other) programmatically?

    Thank you very much

    Dan

    In the schema click Instrument of e/s > VISA > VISA advanced > VISA find resources. This VI returns an array of strings. You can type cast the string in a resource VISA type.

Maybe you are looking for