When to use Active X

Hi all,
Thought this might be a good general question.  I go through posts on the message board and it looks a bit like whenever someone is unsure of how to do something complicated, they always ask if active X is needed to program it.
I won't lie I've done it to, mainly in regards to Excel, but thats another beast.
Anyhow, does anyone have a good, to the point answer as to when its a good idea to use Active X, and when its not.  Maybe an answer for what Active X does that can't be done using properties, or manipulating included functions?  Who knows maybe even a short list of ideas that are pretty common in the labVIEW environment that are pretty much agreed upon that Active X is the way to do it, even if its possible with given functions?
Thanks for the contributions, I think this might add some good perspective on the whole topic, for me and countless others!
LV7.1, LV8.5

That's quite a broad question! I might not be able to answer it fully, but hopefully I can contribute some...
Let's take a look first at using ActiveX in LabVIEW vs. calling a DLL.
1. The first bonus for using ActiveX is that the ActiveX server (whether it's an ActiveX dll or an application like Excel) exposes properties and methods with (commonly) known datatypes to LabVIEW. It's nice to be able to set properties directly in many cases, rather than using some sort of wrapper function to accomplish that. Furthermore, the methods expose all the input and output arguments and whether they're required or not. This means you don't have to look through some cryptic header file to determine exactly what to input into a given function, and LabVIEW is much less likely to crash if you don't get it just right. Standard DLLs operate pretty much like a black box. LabVIEW passes data into them and has no idea what happens after that. The DLL may end up overwriting parts of LabVIEW's internal memory and wreaking havoc if you don't pass in enough pre-allocated data. If you've heard of .NET, that is taking this one step further by creating a platform with standard datatypes and memory management schemes. For Windows at least, that may be the platform of the future.
2. When you load a DLL in LabVIEW or any other language, you load it into LabVIEW's memory space. This means it's a dependency of LabVIEW. If that DLL is simultaneously being called by another application, there will be two separate copies of it in memory, and they can't communicate with each other at all. ActiveX, on the other hand, allows for communication between separate applications that have distinct memory spaces. This is how you were able to manipulate Excel through LabVIEW. You didn't have to load Excel as a dependency of LabVIEW; you were able to send commands to it across application barriers. So ActiveX can be beneficial if you have two applications that are running independently and need to communicate with each other.
3. One downside of using ActiveX in LabVIEW is that it can sometimes be tedious to navigate through the various levels of the object hierarchy. You doubtless experienced some of this when using Excel. First you open a reference to an application object, then the workbooks object, then a specific workbook, then the worksheets, and so on until you finally get all the way down to the one property you want to read or manipulate. That's a lot of property nodes
4. I'm very much on fuzzy ground with this one, but I have often heard that there's a lot of complexity involved in creating ActiveX-compliant applications and DLLs. Standard DLLs are comparably easy to compile and the process is well understood.
5. Cross-platform compatiblity: ActiveX is definitely Windows-only. You won't be able to port your application to other platforms. This is somewhat true of standard DLLs, too. You can't just port the compiled object code to another platform and expect it to work. But often the source code for the DLLs can be somewhat salvaged and recompiled on the target platform.
OK, that's a start. And take this all with a grain of salt, but it should help get you started!
Message Edited by Jarrod S. on 11-22-2006 03:17 PM
Jarrod S.
National Instruments

Similar Messages

  • How do I turn off background ni file activity when not using Labview? files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, nicitdl5.exe

    How do I turn off background ni file activity when not using Labview? I use labview rarely, and I also use my computer for demanding multimedia applications, including multitrack digital audio recording. I need to reduce as much background activity as possible, and taking a look with task manager I see files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, and nicitdl5.exe running even when I haven't used Labview (8 I believe). These files run even after I right click the NI icon on the lower right and turn off the application. I would like the computer to boot up without these files, and for the necessary files to be activated only when I start the program.
    Can this be done or do I have to remove labview from the system to improve performance?
    Thanks

    Hello, those processes are part of running NI services that start when Windows boots.  These processes serve varied purposes and stopping them can have undefined and unknown consiquences for your NI products.  These products run at "normal" priority meaning that they should be preempted by any process running at a higher priority which I would expect your other application to be doing given their time sensitivity.  That being said, in Windows XP (I can't speak for other OSes), you can lower their priorities even greater through task manager (right click the process»set priority) to further remove them from contention for resources.  If you want to prevent them from running you can set the service startup type to "manual" in Control Panel»Administrative Tools»Services.  Right click the process go to Properties and Under the General tab choose Startup Type»Manual.  This will start up the processes only when something directly starts it up.  LabVIEW will start these processes up as it attempts to use them.  When you shut down LabVIEW you will need to manually shut down these processes through task manager.  Again, doing this can cause problems with your NI products on your system and it is not advised.
    Travis M
    LabVIEW R&D
    National Instruments

  • When I first activated the iCloud keychain it was working great. But now it doesn't seem to be working on my iPod or iPads, i.e.: a wifi password it was able to use a few days ago over all devices now will only automatically work on the MacBook?

    When I first activated iCloud keychain on my stuff (MacBook Pro, iPod and 2 iPads) it was working great and the all logged in to a wifi network that I had only used the password for on the MacBook. But yesterday the others all started asking for the password again (which I unfortunately don't remember and the friend who had it has recentlly had a stroke and also cannot remember it). I've tried turning iCloud keychain off and then back on again, but to no avail. Any thoughts would be appreciated.

    What probally currputed is the battery, all type of devices do this when the battery gose out. and when it only lights up when pulged in that a sign of a bad battery. click here for support on a replacment battery. Hey dose maybe this page or this page will help.

  • When trying use any Creative Cloud product on opening an application it attempts to verify my subscription "Membership Expired". I click the button "Try Again" and it says "Thank you, your Creative Cloud is now active. Click Continue to use your product."

    When trying use any Creative Cloud product on opening an application it attempts to verify my subscription "Membership Expired". I click the button "Try Again" and it says "Thank you, your Creative Cloud is now active. Click Continue to use your product." Clicking continue takes me back to the Member Expired prompt. My account and subscription are both active and current.

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • I have a new iMac running OS 10.9 when I use the Command S shortcut it no longer saves the active document it speaks it instead.

    I have a new iMac running OS 10.9.  When I use the Command S shortcut in any of my apps (numbers, text edit etc), it no longer saves the active document it speaks it instead.  How can I revert to the save shortcut function?

    have you looked in
    system preference->Dictiation & speech if it's assigned there?
    or system preference->accessibility if it's assigned there?

  • When occurs crash recovery,why use active online redo log not archived log?

    If current redo log had archived, but it's still 'ACTIVE'. As we all know, archived log is just an archived copy of the current redo log which is still 'ACTIVE', they have the same data. But why use active online redo log not archived log for crash recovery?(I think, if crash recovery can use archived log, then whether the online redo log is 'ACTIVE' or not, it can be overwritten)
    Quote:
    Re: v$log : How redo log file can have a status ACTIVE and be already archived?
    Hemant K Chitale
    If your instance crashes, Oracle attempts Instance Recovery -- reading from the Online Redo Logs. It doesn't need ArchiveLogs for Instance Recovery.
    TanelPoder
    Whether the log is already archived or not doesn't matter here, when the instance crashes, Oracle needs some blocks from that redolog. Archivelog is just an archived copy of the redolog, so you could use either the online or achive log for the recovery, it's the same data in there (Oracle reads the log/archivelog file header when it tries to use it for recovery and validates whether it contains the changes (RBA range) in it what it needs).

    Aman.... wrote:
    John,
    Are you sure that the instance recovery (not the media recovery) would be using the archived redo logs? Since the only thing that would be lost is the isntance, there wouldn't be any archived redo log generated from the Current redo log and the previous archived redo logs, would be already checkpointed to the data file, IMHO archived redo logs won't participate in the instance recovery process. Yep, shall watch the video but tomorrow .
    Regards
    Aman....
    That's what I said. Or meant to say. If Oracle used archivelogs for instance recovery, it would not be possible to recover in noarchive log mode. So recovery relies exclusively on the online log.
    Sorry I wasted your time, I'll try to be less ambiguous in future

  • I am using a Microsoft Natural keyboard and when i use the close button on Ver. 5.0 or newer it closes the whole screen not just the active tab is there a fix for this

    I am using a Microsoft Natural 4000 Keyboard
    IF I update to Mozila 5.0 when i use the close button it shuts down the whole browser nut just the active tab
    Is there a workaround for this because I like the close button feature

    Could you try disabling graphics hardware acceleration? (I'm having trouble determining from your "More system information" whether it's enabled or disabled.) Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    orange Firefox button ''or'' classic Tools menu > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, is the issue resolved?

  • If I travel outside the US with an unlocked iphone and use a local SIM will I still receive iMessages sent to my US number when wifi is activated?

    If I travel outside the US with an unlocked iphone and use a local SIM will I still receive iMessages sent to my US number when wifi is activated?

    Ok, one of my problems is that when I arrive it will take me a few weeks to get a social security number and only t-mobile will give me a sim without a ssn - but edge for a few weeks will be better than no iPhone.
    Unless someone out there can suggest an alternative?

  • I have IPhone 6 and when I using Viber Siri is actives itself ones I turn it off is actives my player itself as well. What can I do to stop that happen.

    I have IPhone 6 and when I using Viber Siri is actives itself ones I turn it off is actives my player itself as well. What can I do to stop that happen.

    Try turning off Siri in your Settings. Follow the steps on this page: http://www.imore.com/need-disable-notification-center-control-siri-access-lock-s creen-heres-how-ios-8
    If this doesn't help, try resetting your iPhone. This won't delete your data stored on the phone.
    Press and hold the Sleep/Wake button
    Press and hold on the Home button
    Keep holding both buttons until the display turns off and back on with Apple logo on it.
    Alternatively, you may go to Settings - General - Reset - Reset All Settings

  • HT201441 i buy used iphone 5s from japan and when i do activated it write need apple id and i no have that id because i buy from japan and i know in lebanon pleas tell me what i do

    i buy used iphone 5s from japan and when i do activated it write need apple id and i no have that id because i buy from japan and i know in lebanon pleas tell me what i do

    There is not a thing you can do except get the Apple ID and password of the previous owner...that iPhone is in Activation Lock mode and cannot be unlocked any other way.  The Activation Lock is an anti-theft protection that cannot be bypassed.  You very well may have a stolen iPhone so try contacting the who you bought it from and get your money back.

  • How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    How do I check internet usage history? When i use the "History" tab on the tool bar all I see is today's activity & the calendar does not change when I click on it. Thanks

    zedzed,
    Here's another thought.
    Navigate to HD > Users > Library > Safari: Make a duplicate of History.plist.
    To duplicate the file, click once to highlight it. Press the Command + D keys.
    Drag the History,plist copy file to the Desktop.
    Highlight it. Press the Command + I keys, to get info.
    Change Open With to TextEdit.
    When you open the file in TextEdit, it will be difficult to read, but you will be able to pick out some sites.
    ali b

  • Error -2146960888 when opening excel from labview using active x

    attempting to open an instance of excel from labview using active x, I even tried using the "open excel and make visible.vi" found on this site. I get errors every time, Inserting a break right after the property node, I found that it does open excel with no active workbook. once the program runs to ompletion excel terminates. The error is on the line right after the property node executes.

    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F15456A4E034080020E74861&p_node=DZ53003&p_submitted=N&p_rank=&p_answer=&p_source=External
    Attachments:
    XL97table.zip ‏29 KB

  • Hello everyone !  As any developer I got the iOS 7 beta on my iPad mini , before few days when I used my iPad it says that it's not activated, and I can't activate it using the iPad , When I plug it on my win so I can restore it using iTunes , I got to er

    Hello everyone !
    As any developer I got the iOS 7 beta on my iPad mini , before few days when I used my iPad forgot my passwaor, and I can't unlock it using the iPad , When I plug it on my window so I can restore it using iTunes , I got to errors , once "Unkown error 3004" and once "It's not eligble".
    I hope you can help me.
    Thanks,

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • 1)Now I use Lightrom 5.7 how to upgrade to 6 or CC? 2) What is the difference between 6 and CC vercion? 3) When I used lightromm 3, I could see inEXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is ve

    1)Now I use Lightrom 5.7 how to upgrade to 6 or CC?
    2) What is the difference between 6 and CC version?
    3) When I used lightromm 3, I could see in EXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is very sad  I am stiil waiting and hope that it would be possibble in the new  versions. Or this indication may  possible by setting?

    1)Now I use Lightrom 5.7 how to upgrade to 6 or CC?
    Purchase the standalone upgrade from here: Products
    Download CC version from here: Explore Adobe desktop apps | Adobe Creative Cloud
    2) What is the difference between 6 and CC version?
    See this comparison chart: Compare Lightroom versions | Adobe Photoshop Lightroom CC
    3) When I used lightromm 3, I could see in EXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is very sad  I am stiil waiting and hope that it would be possibble in the new  versions. Or this indication may  possible by setting?
    Rob Cole's ExifMeta plugin displays the Subject Distance field (and much more).  Unfortunately, his Web site appears to be down again.  He used to be very active here, but he hasn't posted in several months.

  • IPhone 4 Voice call problem when wifi is active

    Not always, but randomly my voice calls (send/receive) establishes properly. However, neither me or the other party can hear anything. The most common times it occurred, is when the wifi is active. Any suggestion anyone please?
    Additional Info:
    I had my iPhone replaced due to the home button malfunction, and after a couple weeks, this started happening. Since I don't have warranty coverage anymore I can't replace it again. Came with iOS 5.0.1. After this started happening quite frequently, I upgraded to 5.1.1. Still same thing. A non-funcitoning home button was better than a non-functioning phone! Feels like I've been cheated !!

    I think I've pinpointed the problem!
    Whenever I use data (EDGE / Wi-Fi), the handset becomes quite heated. If I initiate a voice call at that moment, the dialer starts with the 'speakerphone' icon being pressed.Given that, no party can hear no party.
    However, after a minute or two (when not using data) the handset becomes cold again (quite fast) and then if I initiate a call, the 'speakerphone' icon is not being pressed anymore and everything is normal!
    Really donno, what is actually creating this strange problem!! Overheating battery? Overheating wi-fi chip? Overheating any other chip? Firmware? or just my luck!!
    P.S: To keep the phone operation smooth, I've disabled wifi & cellular data at the moment! And all is running well. So, it must be something with data usage!

Maybe you are looking for

  • HT1386 i cant see my iphone when i connect with itunes

    iam unable to see my iphone when I plug to itunes. can someone help.

  • Get Message when ALE Idoc-Import cancelled

    Hello, I would like to get informed, when our regularly ALE Idoc-Import has cancelled. Today we receive Idocs from an SAP R/3 of our parent company over night within actual currency. Sometimes the Import by ALE Idocs has cancelled for example if ther

  • Cannot resolve symbol

    Hello, I'm brand new to Java. Why is it that the compiler will not recognize my return variable?? Thanks import javax.swing.*; import java.text.*; class BookOrder      public static void main(String[] values)           String bookCode = JOptionPane.s

  • ORA-0092 error when trying to create an external table

    For some reason, I always received the following error whenever I attempt to create an External table. ORA-0092:missing or invalid option This is the code that I am using in SQL Plus: SQL> create table products ( 2 product_no number, 3 description va

  • Firefox will not open at all (regular, safe mode, profile manager).

    Firefox hung while using the Garmin import plugin on the mapmyrun.com page. No crash report was provided. After closing it, firefox will no longer open. It appears in the taskmanager momently, but then disappears before any window appears. It never c