Is it possible to seperate an ActiveX control from the GUI thread?

I have an activeX control (*ocx) that we use for communicating with external instruments. We are running into some difficulty because if the communication with the instrument is held up it can take up to 30 seconds to timeout and our LabVIEW user interface is frozen in the mean time. The VI that contains the control itself does not have to be visible and all the subVIs that use the ActiveX reference have been set to run in the "instrument" execution system thread, but the GUI still freezes. Its my theory that since the ActiveX control itself is in a container and part of a front panel, all refernces to it must be executed in the GUI thread. I just wanted to confirm that this was the case. Also if anyb
ody would like to suggest any work arounds, feel free. The only idea I've had so far was to move all use of the ActiveX control to external code, which is not a very attractive solution for us.

....Also if anybody would like to suggest any work arounds,
> feel free. The only idea I've had so far was to move all use of the
> ActiveX control to external code, which is not a very attractive
> solution for us.
ActiveX controls are loaded into the UI thread and all interactions with
them, property nodes, and invoke nodes, have to take place in the UI
thread/main thread of LV. So, setting the VIs to run in the
instrumentation or other execution systems, doesn't do much good since
each call to the property or invoke will just have to switch back.
What other choices do you have? If the control doesn't have a UI
anyway, it would improve matters if the control were simply an
automation server. The automation server can be set to run in a single
thr
eaded apartment, or a MT apartment. Changing it to MT means that you
will have to deal with protecting the code from being called from
different threads, and having those calls interleaving and competing
with one another. When you change it to be MT, it can tie up other
threads in LV and leave the UI thread alone. Another alternative is to
change the ActiveX control to spin up its own thread and have a method
that initiates, and one that reads the results or returns the status.
Greg McKaskle

Similar Messages

  • Is it possible to call a activeX control from PL/SQL...?

    Hi all,
    Is it possible to call a activeX control from PL/SQL...? If yes, please give me sample code or any link.
    Thanks,
    Pal

    The LoadLibrary() Win32 call is used to find the physical DLL and load it into memory. This API call first look in the current directory for the file, and then uses the PATH environmental variable to try and find the file.
    Thus you need to make sure PATH is properly set. A Win32 process runs in a 32bit VM (Virtual Machine). Been a very long time since I did Windows server side development, but as I recall this VM inherits the default o/s environment (unlike Unix where the parent process environment is inherited).
    You can set the environment using the Properties menu of the System desktop icon (or via Control Panel).
    However.. Oracle does not run as your user. Typically it is installed as the o/s user Oracle and this user owns all the Oracle processes (listener, instance, etc).
    So you will need to make sure that this user's environment is correctly configured... Further more than this, I'm out of my depth. Did a lot of Windows stuff back in the 90's, but for many years now I'm only using Unix/Linux professionally - with Windows being my console platform for playing games at home. :-)
    On the Linux/Unix side, I configure the environment variable via the Listener. E.g. Under the entry SID_LIST_LISTENER, I configure the external procedure handler as follows:
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME=/tjs-dev/app/oracle/product/10.2.0)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    )No idea how this applies and works on the Windows side.

  • ActiveX control from Java

    Hi.
    I have few ActiveX components which I want to control from Java.
    I have googled for some solutions and found the following:
    1. Write a C code which will behave as a bridge between ActiveX component and Java (using JNI). But this seems to be rather very complicated :p
    2. I have found one very interesting paper at javaworld (http://www.javaworld.com/javaworld/jw-03-1997/jw-03-avb-tech.html?page=7). They compare ActiveX components and Java Beans there. There is also stated that (for example) it is possible to "develop an ActiveX control in Visual Basic that opens a window and adds a C++ AVI player (an ActiveX control), and then operate the player from a Java applet." However, I can't find any sources or samples which shows how to do such things in practise.
    Can anybody help me with this?
    Many thanks
    Miso

    See Tool at
    http://www.simtel.net/product.php[id]93010[SiteID]simtel.net

  • Can the position and szing of a control element in a View be controlled from the ViewModel?

    Is it possible to change the position of a control, say a label, as a response to some action/operation from the ViewModel?  Like if one response to something is true then place the label in the top left corner.  If false, place the label
    in the lower right corner.  I realize you could have a label in each position and just set the visibility.  But can the position and sizing of said label be controlled from the View Model?  What would be a sample coding of this?  would
    it be in the xaml or combination of a method in the ViewModel and the xaml? 
    Rich P

    First off Rich, say TextBlock to yourself ten times.
    Use a TextBlock rather than a label.
    There are a bunch of different ways to do this and the easiest is to have two controls whose text is bound to the one property.
    Bind the Visibility of each to another 2 properties in the viewmodel.
    Collapse one and Visible the other.
    The reason for that is that it's easier.
    Technically, you could put one textblock in a grid and use margin to control this.  You could animate x y co-ordinates and move the textblock mysteriously across the window if you put your mind to it.
    Or you could put it in a row/column "cell" of a grid and change which cell it goes in - but that would involve some mechanism like messaging from the viewmodel to the view and is not really ideal if you can avoid it.
    I'd have a pair of textblocks, here's one:
    <TextBlock Name="TopLeftMsg"
    Text="{Binding Msg}"
    Visiblity="{Binding TopLeftVis}"
    Both would bind to a public string property msg in the viewmodel.
    They each get their own public visibility property  and that'd be switched between Visibility.Visible and Visibility.Collapsed.
    Sizing of textblocks is best fitted to content because all you see is the text.
    Textboxes are arguably different because you can see the things.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • Is it possible to remove my hard drive from the Macbook and install it in a new Macbook Pro?

    I currently have a 2009 Macbook and am wanting to upgrade to a new Macbook Pro.  I have upgraded my hard drive in the macbook to a 500gb and have a duel boot with Windows 7 installed with Boot Camp along with other software that I do not want to lose.  Is it possible to remove my hard drive from the Macbook and install it in a new Macbook Pro?

    A much better solution is to hook your two Mac together and the first time you start the new Mac and it asks if you wish to recover data from another Mac, answer yes. This will invoke Setup Assitant which will do the job for you but intelligently.
    I know because I just used Setup Assitant. It worked like  a charm.
    Allan

  • Is it possible to purchase an Applecare plan from the United States (LLA) for a MacBook Pro from Latin America (LZA)?

    Is it possible to purchase an Applecare plan from the United States (LLA) for a MacBook Pro from Latin America (LZA)?

    That's somewhat of a legal question which may not be able to be answered here by the uers/volunteers - I'd suggest you check with a local apple store.
    In the US, you can purchase it at any authorized reseller as long as you register it with the serial number of the computer within the first 364 days of ownership, but I do not know if a US product will work with one from another country.

  • Possiblity to import any particular table from the full dmp file

    Hi,
    I am using Oracle 10G database.
    I a have dmp file.
    I need to import only a particular from that dmp file.
    Is there any possiblity to import a particular table from the whole dump.
    Thanks and Regards,
    Ansaf.

    Ansaf wrote:
    Hi,
    I am using Oracle 10G database.
    I a have dmp file.
    I need to import only a particular from that dmp file.
    Is there any possiblity to import a particular table from the whole dump.
    Thanks and Regards,
    Ansaf.
    You can specify like below example
    impdp hr TABLES=employees, xxx, xxxCheers

  • Can i place controls from the properties dialog of an express vi on the front panel?

    I'm using the spectral measurements express vi in my vi and I'd like to put the "window" and "number of averages" controls from the properties dialog on the front panel. However, there are not outputs on the express vi icon for these parameters. Can I place controls for these on the front panel somehow or do I always have to go into the block diagram and open the properties dialog to change the values?

    The way to do this is to right click on the express VI and select Open Front Panel. This will convert it to a standard subVI. then go into the subVI and replace the Spectrum Averaging and Spectrum Window constants to front panel controls by right click on them. Right click the icon and select Show Connector. Wire the new controls to a free terminal on the connector. You may have to add additional terminals if there aren't any available to wire to the new controls.

  • Is anyone experiencing problems with opening mission control from the desktop.  Running mountain lion with parallels 7 and windows 7

    is anyone experiencing problems with opening mission control from the desktop.  Running mountain lion with parallels 7 and windows 7

    I had been having a similar problem on Lion with Safari pdf files despite downloading the latest Adobe Reader XI.
    I would constantly get the same messages - There was an error opening this document. The file is damaged and could not be repaired. And I would get a blank page when I tried to print the pdf if I tried printing from the Safari web page using File - Print from the top toolbar on my laptop.
    Then I came across the grey Safari lozenge with action icons.
    This allowed me, without downloading the pdf, to print the pdf file direct from the Safari page by using the Print icon on the grey lozenge that appears centrally three quarters down the screen.
    Then I discovered that if I save the pdf using the Save icon from this same grey lozenge on the Safari page I can open and print this pdf version from my desktop.
    I've tested it with a couple of different pdf files and these methods work using the grey lozenge icons but the same pdfs files don't work using File - Save As on the Tool Bar.

  • Is it possible to have jinitiator install silently from the OAS?

    When the client tries to start our 10g forms app for the first time, they are presented with the jinitiator install screens. Is there a way to set it up so it just installs silently or does browser security prevent that from happening?
    Now I have found several posts pointing to command lines with silent install options, but how does this get set up so it runs from the OAS?
    Thanks for any info.
    Gary

    Is it possible to have multiple exchange accounts from the same server?
    Yes

  • I plan to buy an iphone 6 from New York. I am from India and shall be using the phone in India. Is it possible to get an unlocked iphone from the store? If yes, how much would it cost?

    I plan to buy an iphone 6 from New York. I am from India and shall be using the phone in India. Is it possible to get an unlocked iphone from the store? If yes, how much would it cost?

    It is going to be months before any unlocked iPhone 6s will be available.
    Also be aware that the iPhone purchased in the USA will only have warranty service in the USA. Any warranty service will require you to bring it back to USA.

  • HT201320 When using an iPad Air, is it possible to have my email removed from the server after downloading it? That's what I have been doing on my PowerBook and I would like to use my iPad as my primary email reader now.

    When using an iPad Air, is it possible to have my email removed from the server after downloading it? That's what I have been doing on my PowerBook and I would like to use my iPad as my primary email reader now.

    OK, I found the answer in the mail settings under the advanced button.

  • Is it possible to delete multiple e-mails from the inbox in the Mail app? If so, how do you do it?

    Is it possible to delete multiple e-mails from the inbox in the Mail app? If so, how do you do it?

    Yes, it is possible. When you are in the relevant inbox, tap the 'edit' button on right hand top corner. now select the mails you want to delete by tapping in the small circle next to the mail. keep selecting and in the end tap the red delete button that will show you how many are being deleted

  • It seems that NI dropped the Activex Events from the Control Panel in LabVIEW 7.0. Why???

    I have Labview 6.0/6.1 Activex vi's that no longer work in LabView 7.0 There are no longer ActiveX Events vi's in the Communications->ActiveX control set. What is the deal with that??? Pretty much makes my $2400 upgrade investment worth nothing as far as I can see.

    kup,
    Are you sure that your VIs no longer work? They should. The support VIs are located in "vi.lib\Platform\ax-events.llb". The functionality was not taken away, the VIs were simply removed from the function palette. Also, ActiveX Events may now also be handled using calback VIs. This is much better, IMO. Seach the examples for "ActiveX" and "callback".
    -Jim

  • Can I call any ActiveX control in the Forms under Oracle EBS 11.5.10 ?

    Hi All,
    I have a custom form that works under EBS 11.5.10 (Windows Envoirnment). Is there any way for me to call an ActiveX control on this form? My requirement is to show a URL ( a web application) in Microsoft Web Browser.
    I can successfully call ActiveX outside of the EBS i.e as forms runtime.
    In EBS I get FRM-41344 OLE object not defined for <<block item>> in the current record and then FRM-40735 for exception ORA-305500.
    WEB.SHOW_DOCUMENT is an option to accomplish but ActiveX will provide more control and better look and feel.
    Thanks,
    from Houston.

    Hi;
    Please check below and see its helpful:
    ActiveX controls in Oracle Forms
    ActiveX controls in Oracle Forms
    Forms 6i to Oracle9i Forms Upgrade Reference
    http://www.oracle.com/technology/products/forms/pdf/forms_upgrade_reference.pdf
    Please also check:
    http://www.oracle.com/technology/products/forms/htdocs/forms904FAQ.html
    R12: Publish via Report Manager, Activex Component Can't Create Object [ID 788958.1]
    Hope it helps
    Regard
    Helios

Maybe you are looking for

  • To maintenance order to purchase order

    Hello, How could i convert my maintence order for me to create a purchase order to that same maintenance order? Thanks and Regards, Ryan

  • Acrobat 8 can't locate scanner to create PDF from printed document using OCR

    Hello, I have an Epson scanner that is my default scanner on my OSX (10.6).  Every program I have locates my scanner perfectly except Acrobat 8.0.  Is there something I can do? From the home dialogue box I click "Create PDF from Scanner".  The next d

  • Pie Chart Legend Control

    Hi, guys. I am a fresh learner in Flex. Now. I am trying to learn how to use chart. I found all of the legend areas are displaying  to things; Color and related category. I want to know that is it possible that I also display category values in the l

  • Issue with CSV export while using HTMLDB_ITEM.SELECT_LIST_FROM_LOV in SQL

    Hi, I have created a SQL report with HTMLDB_ITEM package. IN that report, I have generated a report column using SELECT_LIST_FROM_LOV, which can be used by the admin to update the column entry. Here is the link:- http://apex.oracle.com/pls/apex/f?p=5

  • I can't import any movies/clips

    I have an U2 iPod. But since I got a new laptop (read: vista), I haven't been able to import movies to my ipod. I converted them to mpg4, but I cannot drag and drop them into itunes like I used to be able too. I have to 'file>import files to library'