ActiveX control in CVI Edit substep

I'm under CVI 2010 (10.0.1.419) and TestStand 2010 SP1 f1 (4.5.1.144).

I came across a problem today and I know that I must be missing something easy. I am trying to create a step with a stage to change type. The lower level change called a CVI function to its module code. The CVI function opened a panel that contains an ActiveX control.

When I try to use the lower level edit (by clicking the button in an instance of the step type), I got an error that the DLL cannot be loaded. Changing the setting of adapter CVI to run the steps in an external Instance of CVI let me see that ICB receives an ERROR of EXECUTION NO DEADLY that 'ActiveX controls cannot be created in a thread which the concurrency model is apartment multithreaded (MTA).

I know that Edit substeps are supposed to use STA threads (there is a post of Doug somewhere around here... ah, here). So I did not know what went wrong. I created the simplest example I could think of nothing else than a control IE WebBrowser on a Panel in a .uir and still have the same error.

More strange is that I got the error When you run one of the TestStand examples! I tried the example \Examples\StepTypes\CVI\HP34401a and got the same error:

NON-FATAL RUN-TIME ERROR:   "c:\...\StepTypes\CVI\HP34401a\HP34401aStepType.c", line 356, col 5, thread id 0x00001694:   Library function error (return value == -176 [0xffffff50]). ActiveX controls cannot be created in a thread whose concurrency model is multithread apartment (MTA)

There must be something I am doing wrong, or an option that is out of order. Any ideas?

-J

Change substeps are executed in a threaded so executed in the process. If you are running in an external CVI, then you will get a MTA thread. You probably don't want generally be run some edit sub-steps in a CVI outside themselves, that is why there is a checkbox "Always run in the process" on the CVI module specification table (I recommend to all developers step using CVI modules for substeps type use this setting for all of their sub-stages). Your original question was probably unrelated to the COM threading model I recommend that you debug and debug the process of with CVI seqedit.exe rather than your modules running in an external CVI.

Hope this helps,

-Doug

Tags: NI Software

Similar Questions

  • How to find the references to the ActiveX control

    Is it possible to determine where an activex control is used in a labview project?  I have a moderately important project who have used a combination of ad-hoc XML parsers, including the parser XML ActiveX for Microsoft (MSXML).  I am trying to replace all occurrences of MSXML with of builtin labview VI XML or our own DLL calls that make more complicated sequences of calls to XML-Xerces/Xalan libraries.  I want to assure you that I replaced all references to the MSXML parser without having to inspect all the VI in the project.  I was hoping that I could right-click on a function block "Automation Open" and select the option "Find all Instances", but apparently it is not available because it is for a VI I created.  In addition, I was hoping that if I went to the Project Explorer, it would show that the msxml.dll file was listed as a dependency where I could do a 'find Caller' as a regular dll referenced via a "call library function node".  Does anyone have a suggestion on how I can automate this search?

    Thank you.

    'Find all Instances' is only available for the screws that you create, but you can always find the function of automation opening in your project. Just open your project and open a VI. Then select Edit-> find and replace. In this dialog box, you can search for specific functions throughout the project.

  • Error Msg: ActiveX controls accept only fonts defined in GraphicsUnit.Point. Parameter name: fonts

    Using my PC all-in-one HP Officejet 5610 and download successfully. I can't use my OCR, or change with text by using the viewer of documents HP more.

    It worked fine until a few weeks ago.  Now when I select a single document for editing, I get this message.

    ActiveX controls only accept fonts that are defined in GrapicsUnits.Point.  Name of the parameter; Police

    My solution is to save everything in a .pdf file, so I can work with the MDC. If saved as a .tif program will not send or print or fax, etc.  I hope this helps, but it would be nice if they fixed!

  • ActiveX control error: your current security settings prohibit running ActiveX controls on this page.

    Original title: problem with Activex controls

    I m trying to open my scanner program, but windows shows me the below msg: Please help me solve this problem...

    one or more activex controls couold appears no not because either:

    (1) your current security settings prohibit running ActiveX controls on this page.

    (2) you have blocked an editor of one of the controls.

    As a result this page may not display correctly.

    Hi euriskofiles,

    The problem may occur if the security settings for the Local computer zone are configured to prevent the ActiveX content to run.

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756

    Steps to follow:

    (a) click Start, click run, type regedit, and then click OK.

    (b) expand the following registry subkey:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0

    (c) in the right pane, right-click right 1200and then click change.

    (d) in the value data box, type 1, or 0 to replace the existing value of 3. Then, click OK.

    Note If you type 1 in the value data box, you receive the following message when you start Microsoft Project:

    You want to allow software such as ActiveX controls and plug-ins to run?

    In addition, you receive this message at other times when you use Microsoft Project. If you do not receive this prompt, type 0 in the value data box.

    The values 0, 1 and 3 are associated with the following behavior:

    o 0 = on, or the action is possible

    o 1 = Prompt

    o 3 = disabled, or action is not allowed

    (e) exit the registry editor.

    See if that helps. Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to resize the activex control?

    I want to dynamically resize an ActiveX control in LV 7.0.  How can I do?

    I tried to manipulate the container manually, using the HWND parent, but although the ActiveX think than its resizing it na not really.  Looks like the window is to be rigged and then the image is cut off?

    Anyway, if there is a solution, I would greatly appreciate knowing.

    Thank you

    Adrian

    Don't know if this can help, but...

    Try right - click at the end of the container on the FP and select Create the property node >...

    If your ActiveX control is like mine which should give you the properties of the container.

    Ben

  • VB6 activex control does not not in labview 8.5

    I am currently trying to get out of VB6 and Laview for some applications to test automated for secondary (rechargeable) batteries.

    We use Texas Instruments fuel gauges to my business and communication with them requires an EV2300 USB box.  I have the drivers installed for the box, and it works without problem in VB6.  I need to get Labview to talk to the box in the same way.

    I use 8.5 at the moment, and I thought that I had the good idea to use the BQ80xRW.dll file that is already installed on my machines to VB6 application.  The only problem is that I don't have the source code of the DLL, only the dll and ocx in my win32 directory files.  Here's what I did:

    (1) import the activeX control to palette (bq80xRW.dll)

    (2) place the bq80xRW on my VI activex control

    (3) place call nodes for the functions I want to test (GetFreeBoards--> OpenDevice--> ReadSMBWord)

    (4) to include nodes with appropriate controls (integers, strings, etc.)

    (5) run the VI

    I've included the VI I developed with this post.  Nword must, in my view, be on 16 while Cmd should be set to 1 c (to read the serial number of the part)

    When I run the program, while the USB module is connected, the GetFreeBoards node returns the following string:

    \\?\usb#vid_0451&pid_0035#5&1c93b2c6&0&2#{8eb0fa22-a67c-4a27-9913-df9ab307d886},

    If I run the program without the attached USB module, the string is empty.  Without spaces or characters at all.

    If the activeX control is something.  It's just not what I want it.  And since I don't have the source code of the dll, I don't know why.

    This big long string starting with \\?\usb is the name of the Board of Directors.  Get rid of the trailing comma and passing under the name of your Board of Directors in opendevice().

  • Compilation warnings TestStand ActiveX controls in WPF 2012

    Hi all

    I use the TestStand (ApplicationMgr, SequenceMgr, ExcutionMgr) ActiveX controls in my project written in WPF 2012.

    After that I put the controls on the form, there are a few referrences automatically included in my project. But when I compile, I had the following warnings in the output window:

    CSC: warning CS1762: a reference has been made to the embedded PIA 'c:\Windows\assembly\GAC_MSIL\NationalInstruments.TestStand.Interop.UI\5.1.0.226__ad9244eb3b825cd8\NationalInstruments.TestStand.Interop.UI.dll' because of an indirect reference to that assembly established by the Assembly "c:\Program Files (x 86) \National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll". You want to change the property "Include the Interop Types" or another Assembly.
    CSC: warning CS1762: a reference has been made to the embedded PIA 'c:\Windows\assembly\GAC_MSIL\NationalInstruments.TestStand.Interop.UI.Support\5.1.0.226__ad9244eb3b825cd8\NationalInstruments.TestStand.Interop.UI.Support.dll' because of an indirect reference to that assembly established by the Assembly "c:\Program Files (x 86) \National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll". You want to change the property "Include the Interop Types" or another Assembly.
    CSC: warning CS1762: a reference has been made to the embedded PIA 'c:\Windows\assembly\GAC_MSIL\NationalInstruments.TestStand.Interop.API\5.1.0.226__ad9244eb3b825cd8\NationalInstruments.TestStand.Interop.API.dll' because of an indirect reference to that assembly established by the Assembly "c:\Program Files (x 86) \National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll". You want to change the property "Include the Interop Types" or another Assembly.
    CSC: warning CS1762: a reference has been made to the embedded PIA 'c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' because of an indirect reference to that assembly established by the Assembly "c:\Program Files (x 86) \National Instruments\TestStand 2013\API\DotNet\Assemblies\CurrentVersion\NationalInstruments.TestStand.Interop.UI.AxControls.dll". You want to change the property "Include the Interop Types" or another Assembly.

    When I change the property "Include the Interop Types", I rather the errors. Can anyone give some advice? What does the warning message? How do I get rid of the warnings or do I just ignore them?

    Thank you very much!

    Kind regards

    According to the text in the warnings, it looks like you had always incorporate true on some of the meetings.

    Try changing all those in warnings to not stir, and then the warnings will probably disappear.

    -Doug

  • LabVIEW Touch Panel Module | ActiveX controls | Windows CE

    Hello

    I am trying to determine if it is possible to use with the LabVIEW Touch Panel Module ActiveX controls.

    There is no ActiveX container on the pallet in the Touch Panel Module and I can't find any mention of ActiveX controls in the manual of touch panel.  So, I'm gathering that ActiveX is NOT supported on LabVIEW Touch Panel running on Windows Embedded CE.

    Can anyone confirm if the ActiveX controls are supported on the LabVIEW Touch Panel Module?

    Thank you

    Steve

    Hi, unfortunately they are not (see this link). For more information, see the Manualand the listof the supported features.

  • How to read and write FileGlobals with TestStand ActiveX control in c#

    Hello everyone,

    I'm trying to read and write FileGlobals with TestStand ActiveX control in c#.

    I tried with:

    SequenceContext contextOfTraceMsg = e.thrd.GetSequenceContext (0, out frameId);

    var filepara = contextOfTraceMsg.FileGlobals.GetSubProperties ("ProjectParameter.NestIsTested", 0). GetValue (1); (NestIsTested is an array of Boolean)

    but without success.

    Can someone tell me how to do it right?

    Thank you in advance!

    Concerning

    0049 wrote:

    Hello Doug,

    Thanks for the reply.

    It works to read a Boolean value. How to read the table of Boolean?

    Kind regards

    For a table you can either do:

    (1) myarray [] bool = contextOfTraceMsg.FileGlobals.GetValVariant ("myarray", 0);

    Or

    (2) using GetNumElements() and GetValBooleanByOffset().

    -Doug

  • Using ActiveX controls to the old user interface

    I tried to build a User Interface for TestStand 4.1.1 using LabView 8.6.1 (on Windows XP)

    However, ActiveX controls keep showing in the old non - 3d "block" style.

    This seems to be a problem when you build a new exe. If you use the included UI (Full Featured) in TestStand it appears correctly.

    I was able to replacte this problem on two other development systems (a new windows XP, LabVIEW 8.6.1 & TestStand 4.1.1 install).

    (1) take a copy of the full-functional UI of LabVIEW.

    (2) open the project file

    (3) rebuild the exe file

    It's only a problem when you use the exe file. When you run from the LabVIEW development system it looks good.

    Hi Simon,.

    For your UI to take on XP
    Theme controls, you will need to place a manifest file that specifies the activex control topics in the same
    directory as your executable file. TestStand comes with a manifest file for
    INTERFACE c# you can also use for the UI of LabVIEW. Just go to the \User Interfaces\Simple\CSharp and copy the file TestExec.exe.manifest in the directory of the LabVIEW User Interface executables.

    Note that the manifest file must have the same name as your executable file LabVIEW UI. For example, if you name your user interface, "MyCustomTSUI.exe", you will need to name the manifest file 'MyCustomTSUI.exe.manifest '.

    Please let me know if this solves your problem or if you have other questions. Thank you!

  • ActiveX controls disappear when VI is loaded in a subgroup of experts with the use of the modal to start dialog box

    Hello

    I have a secondary to a VI (VI1) in which one another VI (VI2) is charged. VI1 is used as a module for an Action step in TestStand. Vi2 has controls ActiveX as ExpressionEdit and Adobe PDF reader etc. VI1 VI2 in charge in a subgroup of experts and calls Dialog.vi Modal start. I put 'Show the front panel when it is called' true to VI1 so that the VI appears when the sequence is executed. During the execution of the sequence and when the VI begin dialog is called VI1, all controls ActiveX VI2 (loaded in the Sub-group of experts) modal disappears. Here is the screenshot of the façade of the VI1 operating sequence:

    This problem occurs in TestStand 4.2.1 TestStand 2010 and TestStand 2010 SP1 (for as far as I tested it.) May occur in older versions too). In the attached file, VI1 is 'ExprEdit Test.vi' and VI2 is 'SubpanelLoad.vi '. The sequence attached is developed in TestStand 2010 SP1.

    How can you solve this problem?

    Thank you

    Ganesh Kumar

    Hi all

    Found the solution to the question . The problem is that the front of the VI in which start Modal Dialog.vi is used should not be open before start Modal Dialog.vi is called. In the files that I have included in my previous post, .vi ExprEdit Test (does not work) had the ability to 'See the façade when it is called' enabled in the properties of VI. It was the origin of the problem. When I disabled this option, all started working well (ActiveX controls do not disappear during the execution of the sequence). I had accidentally turned off in .vi ExprEdit Test (work) that worked. A comprehensive review of the differences between the 2 screws led to find the cause of the problem.

    Thank you

    Ganesh Kumar

  • Problem of event reminder of the registry with Linkam ActiveX controls

    Hello

    I have a problem in configuration reference VI to interface with Linkam ActiveX control with an event callback function to register. I created a VI strictly typed with re-entrant execution, with all the correct connectors, as shown in the picture below, but LabView complains of a broken wire. The only difference between the input and the output seems to be that the result stands as an asynchronous function, and the entrance wants (synchronous) normal function? I can't find any option to make my VI reference become synchronous. Does anyone have any suggestions as to what to try next? Thank you very much

    Davide

    Hello

    Make a right-click on the terminal 'Ref VI' choose 'create the callback VI '.

    Do not try to build it yourself, it never works. :-)

  • Thorlabs Piezo controls - manually ActiveX control

    Hello

    I use T - Cube Piezos Thorlabs for Nanomax stage - TS, I control through LabVIEW. I managed to connect the piezo controls in the program and it works well, but I'm for the accomplishment of the piezo through a slider or an automated outside of the ActiveX control. But I ran in trouble, I can't control the piezos otherwise than through the activex container. Any ideas? Joined the .vi

    UPDATE: no response from Thorlabs but I realized my mistake, the while loop was iterations too quickly so when the cursor is moved to the entry has been reset every time it loop. Put a minor delay (~0.01 s) and it works beautifully.

  • Wrap the ActiveX control in a lvclass?

    I am trying to wrap an ActiveX control in a class. I use a Refnum of the automation of the private cluster for containing the reference to the class, create the open instance of ActiveX Automation and the private refnum allows access to the class. Very well. But without the destructor semantics how can I make sure that the ActiveX object is released properly? Also, private refnum ActiveX seems to come back to null when I transition vi at vi. I have to do an automatic open after unbundling the refnum every time?

    Nobody prevents you from implementation of constructor and destructor of yourself. Create a static dispatch VI, which creates an instance of your ActiveX object and create a dynamic distribution VI in order to release it (you can inherit from your class if you need to). The semantics of use your wrapper is the same as working with plain ActiveX refnums: you call your Shredder VI explicitly, you would have to do with "close Reference primitive." I wrapped a full hierarchy of objects this way COM and it works fine. BTW, you can take a look at Endevo GOOP Developer Suite: it simplifies the use with classes and provides a class with the constructor and destructor model, as described above. Unfortunately I have no idea why your automation refnum becomes invalid. Do you use it outside your class and accidentally somewhere close? Maybe OT, but if you need an accessor for the private refnum, you can use a trick to protect to close: wire your original refnum for both inputs of a primitive "Data Variant" and return to the refnum resulting: so you increment the counter of your COM object reference You can (and should) close the refnum safely without affecting your private.

  • Please help - StdType.picture - I need this object to an activeX control!

    Hi, I use an activeX control that has a property that needs a photo.

    the problem is that it is not a path to an image.

    This is the reference StdType.picture.

    I searched the internet for answers, but could not find.

    Help, please.

    Guy.

    Problem solved!

    Just look at this Post: "How can I load an image and use it in ActiveX at the time of execution?"

Maybe you are looking for

  • consolidation of two Mac OS messages.app archive / database (old SMS migration to new mac)

    Hi, some time ago I move from the MBW Unibody (Yosemite) to the MBP (as the new Yosemite and El captain now). System files of old, full of junk mac, did not migrate to a new. I had an iPhone 4S at this time, later I change 4 s to 5 s. It took me a wh

  • Update the BIOS HP Pavilion p6-2071scm

    Cannot locate the BIOS updates, or updates driver from HP site - is not that I do not receive my updates of pilot also. BIOS update is my last hopeful Act prior to disposing of this motherboard, since the old BIOS does not support my new graphics car

  • How to remove a corrupt backup?

    The system tells me it can not save, because my current backup is damaged.  But I can't know where to delete the bad ones. Thank you.

  • Configurator on Windows 7

    I have several facilities of CM and HSE Configurator support running on XP without any problem (with the same configuration of HW).  I bought the latest 4.1.1 version and installed on a Windows 7 Enterprise 64-bit PC and cannot operate.  The machine

  • Error in db oracle Linux log-in: ORA-01034, ORA-27101

    Hello worldI got below error when log installed on Linux REDHAT 6.4 (11 g R2) oracle database.[oracle@LOM-NEYTR-RHEL-NEW1 dbhome_1] $ sqlplusSQL * more: Production version 11.2.0.1.0 Mon. Nov 16 15:29:08 2015Copyright (c) 1982, 2009, Oracle.  All rig