Using ACTIVE X in labview

Hi all
Please see attach file ,, this is Active X  which called TPDFILTER.OCX . … this suppose to recognize if usb  device connected if yes letter E : rise
How can I use this active X in labview
This is the command in this ocx
System.String GetDriveLetterByHW_ID ( System.String strInput )
please i need this very urgent
thansk
Attachments:
TPDFilter.zip ‏195 KB

Not sure if you're asking how to use ActiveX in LabVIEW, or how to use this specific function. The latter I can't really help you with. Did you get documentation? Based solely on the name and the prototype it seems you pass in some sort of hardware ID and you get the drive letter. What this ID is supposed to be, I haven't a clue.
If you're asking how to use ActiveX in LabVIEW 8.2, you basically have to use Automation Open to create a reference to an ActiveX library, and then use the Property and Invoke Node functions to use the ActiveX library. There's plenty of examples that ship with LabVIEW that show you how to do this. Attached is a simple one for the library you posted and the function you provided.
Attachments:
TPDFilter_ex.vi ‏12 KB

Similar Messages

  • How to send a picture to excel using active X with Labview

    I would like to create a report in excel that would have a picture and various information about each picture, but I don't see a property for sending a picture to excel. Is it possible?

    Darrenb,
    I am sorry if I wan not verry clear on this answer. Here is a screen shot on how this is implemented in the Report Genration Toolkit for Microsoft Office. I would suggest purchasing this Toolkit as an add-on for LabVIEW as it has this functionality already built in for both Microsoft Excel and Microsoft Word.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    Attachments:
    ExcelPicture.gif ‏12 KB

  • Use active-x in labview

    There is a sensor network called 1-wire, by dallas semiconductors (www.1-wire.com). I am trying to communicate with the sensors using their drivers written as COM objects. I started a VI design of the following example(Originaly written in JS:
    boolean doing_work=true;
    // get the 1-Wire access provider
    var access = WScript.CreateObject("owapi.OneWireAccessProvider");
    // get the default adapter
    var adapter = access.getDefaultAdapter();
    // work loop
    while (doing_work)
    // get exclusive use of adapter (SESSION)
    adapter.beginExclusive(true);
    // clear any previous search restrictions (NETWORK)
    adapter.setSearchAllDevices();
    adapter.targetAllFamilies();
    adapter.setSpeed(adapter.SPEED_REGULAR);
    // enumerate through all the 1-Wire devices found (NETWORK)
    for (Enumeration owd_enum = adapter.getAllDeviceContainers();
    owd_enum.hasMoreElements(); )
    // get a ‘container’ for each device
    owd = owd_enum.nextElement();
    // do SOMETHING with device found (TRANSPORT/FILE/DEVICE)
    // end exclusive use of adapter (SESSION)
    adapter.endExclusive();
    // do other application work
    I got stuck with the declaration :
    adapter.beginExclusive(true);
    as it is tripple depth referenced which i dont know how to do in LV
    I will happily send the drivers and SDK with the COM objects to anyone who can help me.
    Thanks
    Uri

    Hard to tell from a typeless language like JS, but I would assume that the following code
    var access = WScript.CreateObject("owapi.OneWireAccessProvider");
    var adapter = access.getDefaultAdapter();
    adapter.beginExclusive(true);
    has access as a COM object and adapter as a COM object. If they are declared as such in the type library, then you should get an automation reference for each. Then calling the beginExclusive() method should be straightforward. What are you getting as a wire type for getDefaultAdapter()? I am assuming you are doing Automation Open for the first method...
    I went to the website but I don't read Chinese so that is all I know right now.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • 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

  • Excel Chart : operations on series using active X

    I use Active X to display XY graphs and its corresponding data on an excel sheet but i have difficulties playing with the series.
    For example, the first graph corresponds to f(B)=A where A and B are excel columns, and the second corresponds to f(C)=A.
    Unfortunately, on the second graph, the first serie f(B)=A appears even if I specify the correct range in SourceData. i tried to delete it with the Series Collection but i don't really know how to use this node with Labview.
    Following is the VBA script :
    Sub Macro2()
        Range("A1:A4,C1:C4").Select
        Range("C1").Activate
        Charts.Add
        ActiveChart.ChartType = xlLineMarkers
        ActiveChart.SetSourceData Source:=Sheets("Feuil1").Range("A1:A4,C1:C4"), _
            PlotBy:=xlColumns
        ActiveChart.SeriesCollection(1).Delete
        ActiveChart.SeriesCollection(1).XValues = "=Feuil1!R1C1:R4C1"
    I would be glad if i could get the graph corresponding to the specified range...and if someone can explain me how to use the SeriesCollection to be able to rename my series, delete some, etc...
    Thanks!!
    Chris

    Found the solution on this thread : http://forums.ni.com/ni/board/message?board.id=170​&message.id=142170&query.id=1860717#M142170
    I was giving bad arguments to XValues and Values...

  • How to use active X controls to read/write protect an excel or word document created by created by Save Report to File VI

    Hi all,
    I'm trying to creat a word and excel documents using Save Report to File VI. When wiring a password to this last VI, the document created are only protected against writing but not reading. How can I use active X controls to password protect these documents against reading?
    Thanks a bunch!
    O

    There is no predefined functionality available in LabVIEW. So you have to implement this on your own.
    It seems to me that you own the Office Report Generation Toolkit. You can use the Excel Get ActiveX References.vi from the Excel Specific >> Advanced palette to get access to the "generic" ActiveX Excel references. Starting from this point, you can use property and invoke nodes to get to the setting you are going to modify.
    Please refer to this link for information on Excel password protection. I have not searched for the object giving you access to those settings though....
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • 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

  • Active X between LabView and Lotus 1-2-3

    I want to controll Lotus 1-2-3 with LabView using Active X.
    I have tried the example: "Write table to Excel.vi", and it works.
    But When I try to do a simular opperation against Lotus it fails.
    When i select the ActiveX library: "Lotus 1-2-3 Versin 1.0" there are no creatable objects. When i remove the selection on :"Show creatable objects only" are the objects simular to the objects when Excel-Library are selected. But when used they don't work.

    Try selecting "browse" when you are prompted for an activeX object, and select the Lotus 1-2-3 activeX library from it's directory. If 1-2-3 is properly installed on your system, you should be able to create objects using it's activeX capabilities. If browsing does not work, I'd try installing Lotus again. I'd be glad to help you, but don't have Lotus 1-2-3 so... Good luck.

  • Creating Activation code for LabVIEW Applicatio​n Installer

    Hi,
    How could we create Activation code for LabVIEW Application Exe to restrict use to Single PC using LabVIEW settings/add-ons.
    I think NI should provide in-built feature in Application Builder to generate activation code as required.
    Regards,

    Or just vote for this idea.
    Try to take over the world!

  • How can I use Active Print on my Ipad and print to my usb connected HP officejet 6110 all in one

    I was previously able to use Active Print on my Ipod to print to my usb connected HP officejet 6110 all in one.  Now, however, with my Ipad version 2 I can no longer get this to work.  Can anyone help?  Thanks.

    Hi,
    HP do not provide any USB connection solution for iOS.
    As Active Print is a 3rd party application which provide this functionality, i believe you may find a better help within Active Print support as they more familier with their application requirement and functionality:
    http://www.activeprint.net/support/
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do we use if statement in labview?moreover can i use if statement inside for loop?

    how do we use if statement in labview?moreover can i use if statement inside for loop?

    The if statement in LabVIEW is the Case structure. You can find that on the Structures palette right next to the For Loop. If you're still on the same subject about terminating a for loop early, then what you do is enclose your functions inside the loop with a case statment and make one of the case's empty except for one or more constants that you might have to wire. Hopefully, the attached picture will explain what I mean. Also, as I mentioned in one of your other posts, I think this technique is not as good as using a while loop. The array in the attached example is the same size no matter what and you may have to handle stripping extra or invalid elements.
    Attachments:
    For_Loop_with_Case.jpg ‏21 KB

  • How do I use Active Sync to view SharePoint Lists (Contacts and Calendars) on a Mobile Phone?

    We are attempting to use SharePoint 2010 in combination with Exchange 2010 to implement shared calendars and contact lists throughout our organization.  We are able to connect the lists to Outlook 2010, but have been unsuccessful in viewing
    the calendars and contact lists from our mobile phones.  How do we use Active Sync to view SharePoint Lists (Contacts and Calendars) on a Mobile Phone?
    In trying to answer this question, we have come across a few different possibilities, all of them falling just short of a long term solution for us.  After doing research, we found that Active Sync will only show the default folders of the account.  To
    solve this, we downloaded an Add-In for Outlook (CodeTwo FolderSync) to synchronize folders and synchronized our SharePoint list with a new Contact list in the default folder.  The issue we came across with this method is that the Add-In we are using
    is not capable of automatic synchronization.  There is a button and it must be clicked after every update is made, which is not ideal for our solution.  We then went to the company (CodeTwo) and found server side software (Exchange Sync) that they
    offer which will automatically synchronize the folders.  After installing that on the Exchange Server, we now are running into the issue of not being able to locate the SharePoint lists on the Exchange Server.
    Does anyone happen to know how we can get to the SharePoint lists from the Exchange Server?  Has anyone else been able to use shared contacts lists and calendars from SharePoint on their mobile phones using Active Sync?  If so, are we in the right
    direction with what we have found so far?
    Thanks,
    Brad

    You cannot use ActiveSync for that, but there are SharePoint clients for the iPhone. Windows Mobile 7 natively supports SharePoint with SharePoint Workspace Mobile, part of Microsoft Office Mobile. Android and BlackBerry might also have some apps.
    Use Microsoft SharePoint Workspace Mobile
    http://www.microsoft.com/windowsphone/en-us/howto/wp7/office/use-office-sharepoint-workspace-mobile.aspx
    iPhone SharePoint Apps Shootout
    http://www.codeproject.com/KB/iPhone/iPhoneSharePointApps.aspx 
    Comparing SharePoint iPhone Apps
    http://blog.praecipio.com/2010/11/02/comparing-sharepoint-iphone-apps/
    MCTS: Messaging | MCSE: S+M

  • Client Certificate Mapping authentication using Active Directory across trusted forests

    Hi,
    We currently have a setup where the on-premises environment and the cloud environment are based on two separate forests linked by a 1-way trust, i.e., the exist in the on-premises AD and the 1-way trust allows them to use their
    credentials to login to a cloud domain joined server. This works fine with the Windows authentication.
    We are now looking at implementing a 2-Factor authentication using Certificate. The PKI infrastructure exists in the On-Premises Forest. The users are able to successfully login to on-premise servers configured with "AD CLient Certificate
    Mapping".
    However, we are unable to achieve the same functionality on the cloud domain joined servers. I would like to know
    1. Is this possible?
    2. If yes, what do we need to do to make this work.
    Just to clarify, we are able to authenticate using certificates by enabling anonymous authentication. However, we are unable to do the same after turning on "Client Certificate Mapping authentication using Active Directory"

    1. Yes!
    2. Before answering this I need to know if your are trying to perform a smart card logon on a desktop/console or if you just want to use certificate based authentication in an application like using a web application with client certificate requirements
    and mapping?
    /Hasain
    We will eventually need it for smartcard logon on to desktop/console. However, at present, I am trying to use this for certificate based authentication on a web application.
    To simulate the scenario, I setup up two separate forests and established a trust between them.
    I then setup a Windows PKI in one of the forests and issued a client certificate to a user.
    I then setup a web server in both the forests and configured them for anonymous authentication with Client SSL requirement configured.
    I setup a test ASP page to capture the Login Info on both the servers.
    With the client and the server in the same forest, I got the following results
    Login Info
    LOGON_USER: CORP\ASmith
    AUTH_USER: CORP\ASmith
    AUTH_TYPE: SSL/PCT
    With the client in the domain with the PKI and the server in the other Forest, I got the following response
    Login Info
    LOGON_USER:
    AUTH_USER:
    AUTH_TYPE: 
    I tried the configuration with the Anonymous Authentication turned off and the AD CLient Certificate mapping turned on.
    With the client and the server in the same forest, I am able to login to the default page. However, with the server in a trusted forest, I get the following error.
    401 - Unauthorized: Access is denied due to invalid credentials.
    You do not have permission to view this directory or page using the credentials that you supplied

  • How to implement a dual booting PXI system using windows 7 and labview RT

    Good Day
    My name is Mariano Ocana from the University of Manitoba, and I want to implement a dual system using windows 7 and labview RT in a PXIe-1082 chassis with a PXIe-8102 embedded controlled (the chassis came with windows 7 installed). What are the steps to use both systems (windows and RT)  in the same chassis?, in the NI help comes an example implementing a dual system using windows xp and RT, it is the same procedure?.
    Thank you in advance for all your help.
    Regards
    M. Ocana

    Greetings, Mariano.
    The real issue you have to contend with is whether or not you have a LabVIEW RT license.  If the 8102 controller was purchased Windows-Only, you likely do not have a license to run LabVIEW RT on the controller - you can purchase one, I think it's about $500, and at that point you can request a LabVIEW RT Configuration CD (that's not what it's called, but the sales guy will know what I'm talking about).  The Config CD is a CD that will partition your controller correctly with both FAT32 and NTFS filesystems (in the appropriate way) to allow you to run Windows 7 and LabVIEW Real-Time on the controller correctly.  Once done, you can then switch within the BIOS between LabVIEW Real-Time and Windows in order to dual-boot.  
    Either way, you likely need to contact NI sales to either purchase an RT license (if one was not received at the time of purchase) or to request a Configuration CD (it might also be called a dual-boot install CD or similar).
    -Danny

  • What are the pros and cons using Active Data Guard vs Data Guard?

    My understanding is that Active Data Guard is an additional database option for Oracle 11gR2 Enterprise Edition. I need to know the pros and cons using Active Data Guard vs Data Guard in order to decide whether to get pay extra for the Active Data Guard.
    Thanks for any help.

    Hemant K Chitale wrote:
    Before jumping in to Active Data Guard, one needs to evaluate :
    a. Is there really a need to run queries on the Standby ? The Standby could / should be at a remote site so queries are "across the network". Depending on the nature of the queries and the volume of output, the "performance" of the queries may not seem to be the same.
    b. If the database is not in Maximum Protection mode, the data "seen" at the standby may not be in "real-time" synch
    c. Not all applications are truely read-only when querying. Some applications use "jobs" that write to tables when querying. Such would not work with Active DataGuard. (example : EBusiness Suite). There are very complicated ways of handling this -- and one needs to consider if the complications can be introduced and supported.
    Over the network accessing standby read only is really not an good idea, I think no one will compare performance with primary and standby,
    But some of them they want to validate data which are very critical, as it is matching with primary or not, Its an added advantage with ACTIVE DATAGUARD
    Prior to that until unless stop MRP, open database and then we need to validate, So there is an interruption of recovery, I can say its also an advantage where there is no interruption of recovery.

Maybe you are looking for

  • Safari won't open after updating to 6.0.3

    Hey, after I had updated my Safari to the latest version (6.0.3), Safari is unable to open itself and shows an instant crash window after clicking on it. I have deleted my extensions already, but that didn't help. I was hoping if someone would be abl

  • Purchased app is no longer available

    Hi. I purchased a few apps from the app store recently and installed them and they worked fine. When i tried to sync my ipod with the itunes library the comp crashed and then itunes was corrupt and no longer worked. I re-installed itunes and quicktim

  • PlayStation Store Update – 7th July 2015

      New on PlayStation Store: F1 2015, LBP3: The Journey Home and new PS Plus games Plus, Red Goddess and Pneuma: Breath of Life Here are this week's offerings, with F1 2015 taking pole position... ...from the PlayStation Blog: Arcade Archives Ninja-Ki

  • What is AdbeRdr60_enu_full_exe in other languages?

    Hi can someone help me out? I've an urgent translation to make, it's about Adobe Reader 6.0 and installing that version. In the steps to follow the following text appears: Double click AdbeRdr60_enu_full.exe . I would like to know how I should `trans

  • User Interface stopped working after adding existing project

    Hi, I've just created a new User Interface for one of our service beans. To do this, I created one application (called UserInterface) with one project (also called UserInterface), this project uses JSF JSPs to get the GUI. On its own, this project wo