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

Tags: NI Software

Similar Questions

  • 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

  • How to get the count of UUTPassed and UUTFailed of c# ActiveX control

    Hello

    My operator interface use the TestStand ActiveX in c# control. I'll use the OP to a bench of EHR, which runs the same file in sequence. I would like to know the total UUT-tested, UUTPassed and UUTFailed count after each HAD tested. Is there built-in parameters does the work for me and how can I get it? If there is not, I have to create internal variables in c# to do the job.

    Thank you

    Kind regards

    No, there are no construction based on this. So either you have to implement something like this in on of the following:

    (a) the user interface

    (b) the SequenceFile (as long as it is not discharged in the meantime)

    (c) the process model

    (d) use an external tool for analysis

    If you already work with databases for reports, I suggest using d). If this isn't the case, you can choose. But change the process template is not recommended (if other, simple solutions are available), I would not recommend c).

    hope this helps,

    Norbert

  • 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

  • How to change Teststand UI controls in the Labview example

    Hello community,

    32-bit Teststand 2014

    32-bit Labview 2015

    I'm trying to make changes to the provided Simple Interface for Teststand in Labview called first level VI.vi.

    I want to be able to make changes to the Teststand UI controls and have a difficult time.

    However, I found the brower property for buttons, I can make some changes in the style of text.

    There are a few buttons I disable and came across this link for help, but I did not fully understand it.

    I tried to use 'Ungroup by name' and 'node to invoke. However, I don't think that I did it correctly.

    http://digital.NI.com/public.nsf/WebSearch/3FE78CAEC4AD770286256E9100090900?OpenDocument

    Then I tried to rename the buttons and came across this link.

    http://digital.NI.com/public.nsf/WebSearch/530118071CD7E3B686256E89007BB16D?OpenDocument

    Also, while looking at examples of labview for teststand I noticed that it is possible to go for regular control of labview Teststand UI control. Is it interesting to watch in place?

    I want to make the interface better watch and not be able to make changes for the control of teststand UI holding me.

    Any help or examples on how to make changes to a teststand UI control would be greatly appreciated please.

    Thank you

    These buttons are buttons of ActiveX.

    To change their properties, right-click on it and select property browser...

    Please note that the TestStand has.  Changes may be overwritten by TestStand during execution.

    If you use a LabVIEW native button, you can use the method of the ActiveX button => don't click to start the sequence when your button is clicked.

    However, you have to take care of the other properties (such as devil when start run sequence) of your button yourself.

  • Windows security update common ActiveX controls - the stop bits.

    Hello people,

    There is apparently a windows update (related to the ActiveX security) which defines the stop bit in the registry for some ActiveX controls mutual (see treeview etc.). Thus solutions based vba now don't compile on some machines in my company network.

    By mistake (or the goal really is to disable these controls?) / how to do around the issue?

    Thank you

    Yiannis

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in Pro.You Windows 7 ON can follow the link for your question:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

  • 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().

  • 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.

  • 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

  • Beachball days :(

    Everything was ok, for years, then Powerpoint crashed, VLC did the same thing and I was unable to really do anything else since. Do some research here, did reset the SMC, started in safemode, turned off and unplugged, made an another RAM reset, check

  • I want my phone to ring when I get a phone call, but not ring when I get a text message.

    My phone is ringing when I get an SMS and it sounds when I get a phone call. I want to know if I can have my phone not ring or vibrate when I get a text Message, only to ring when I get a phone call. So, I want to: message text: no ring phone call: r

  • No sound from computer to tv via HDMI cable

    I have a hp probook 4710 s, I have recently cleaned my computer wiping windows vista and download of windows 7 for my computer.  Before I did my hdmi cable that I used for the tv worked, and now that I have reset everything on my computer I can not g

  • An OEM key still works on a computer that has had a hard past?

    I have a HP Pavilion Notebook PC g6-1d21dx that was originally installed with Windows 7 Home Premium. However, the HDD started acting funny, so an SSD has been put in his place and Windows 8 has been installed on it. However, now I want to go back to

  • The application of filters in FDMEE

    HelloI am a complete newbie.  Have managed to export and to validate the data of the EBS.  There are a few problems with the target load and I thought it would be useful that I limited my loading data to a single account.Can someone tell me how to do