How can I use a VI to perform a function in another, parallel running program on Windows XP?

I have a state machine based VI that moves moves a sampling actuator into exhaust gases that we would like to sample.  One of the states is a sampling process where our diagnostic equipment (gas chromatograph) sucks in the sample and analyzes it.  Unfortuntately, the GC is so old, that I can't find a way to make a Labview driver for it.  However, it does have its own software that can trigger it.
 If I was to do it manually, I would just click a button on the GC's program that says "Sample".  What I would like to do is have my Labview VI do this autonomously ever time it gets to the sampling state.  I have a feeling this involves the Windows API or DirectX but I have absolutely no clue on where I can look to perform such an operation.  
Would anybody be able to offer me any assitance, know-how or direction for this vexing question?
Thank You,
Tei

In the absence of drivers, a rather nasty way to achieve this would be to ensure that your software always occupies the same portion of the screen such that you know the position of the 'sample' button. You could then simulate a mouse click at those coordinates when you require a sample to be taken.
This would not be a robust solution as a user could move or minimise the window, or other windows could also find their way into the critical position and cause the application to work incorrectly or cause unexpected things to happen.
However, if you just need a short term work around this method might be acceptable, just be aware of the risks if you try it.
Searching for simulate mouse clicks and having a play is the way forward.
As an example of simulating a mouse click in a certain position, have a look here:
http://forums.ni.com/t5/LabVIEW/Programatically-Se​lecting-a-ring/m-p/1463242#M557128
Ian

Similar Messages

  • How can I create a button that performs the function of a keyboard shortcut, specifically print scrn

    I need my presentation users to take a screen shot of a slide within my presentation.  I know that windows 8 has a new function that allows a screen shot to be taken and saved directly to the user's computer and I need a button that can be placed on a slide and perform this function.  The shortcut is (windows key) + (print scrn).  I want to save my userss some time and just have a button perform this task.  Any idea on how I can make this possible? I am using Captivate 7.

    I think Ajit may have misunderstood your need.  The command he told you about triggers the Print command to allow you to print the currently active slide (on a laser or inkjet printer). This does not have the same result as you would get by hitting the PrintScreen button on your keyboard (to take a screencapture and have it saved to the Clipboard for pasting somewhere else).
    You can add a button to your slide and set the PrintScreen key as the shortcut, but this will NOT mean that clicking the button will cause a screencapture to be taken.
    There are JavaScript libraries that will allow you to execute JavaScript code in a Captivate project that can take a screen capture:
    https://github.com/ariya/phantomjs/wiki/Screen-Capture
    However, to implement these solutions you would need to be quite knowledgeable with setting up JavaScript.  It's not for newbies.

  • How can i use an external screen on mountain lion when i'm running on battery power?

    Hey all:
    I just upgraded from snow leopard to Mountain Lion, and i use external screen, keyboard and mouse all the time....
    On Mountain Lion it's perfect when the power adaptor is connected as soon as you close the LID your external screen becomes the primary screeen and it's fully functional desktop (no mirroring or extension screen)
    But the problem is when i'm in battery power, in snow leopard i used to close my lid my mac goes to sleep then i wake it up using the mouse and immediately open the LID so it doesn't go to sleep again and now i'm running on battery power with a primary external screen.
    Any idea how to use an external screen on mountain lion while i'm on battery power? (i know i can use mirroring but i want just 1 primary screen and the laptop screen would be turned off )
    Thanks for the help.....
    Sherif

    Sherif Daniel wrote:
    my question is how to use an external display with mountain lion when i'm running on the laptop battery not connecting the ac adaptor?
    Thanks again
    You can't with the lid closed, that's one of the rules for clamshell mode.
    http://support.apple.com/kb/ht3131

  • How can I use the value returned for a function into the macro ??

    I create a function to work in a macro and I would like to use the value of parameter f_calc_error returned by function in a condition like IF, but I don't know how can I do that. I have to use the macro function CALC_ERROR ??
      Thanks.
    Edson Suzuki

    Hi Edson,
    Yes you need to use the CALC_ERROR macro function to be able to test whether the last macro function returned an error. CALC_ERROR will return an 'X' if there an error occured during the execution of the last macro function.
    You can use a macro similar to the following:
    IF
      CALC_ERROR( )
      = 'X'
          DO SOMETHING HERE
    ENDIF
    Let me explain how this works internally. The SAP system maintains a global variable g_flg_calc_error during the execution of macros in the planning book. The g_flg_calc_error variable will contain the value of f_calc_error that was set by the last macro function which executed. The ABAP coding of a planning book is something like this:
    data: g_flg_calc_error type /SAPAPO/FLAG.
    * SAP will pass g_flg_calc_error variable to all macro
    * functions. When SAP calls a macro function, it does
    * something like this.
    call function '/SAPAPO/MACRO_FUNCTION_HERE'
            exporting
              plob_values      = i_s_adv_plob_values
              sdp_book         = g_c_advf_sdp_book
              sdp_view         = g_c_advf_sdp_view
            tables
              cols_index       = i_t_cols
              value_tab        = l_t_value_tab
            changing
              f_calc_error     = g_flg_calc_error
    As you can see, the g_flg_calc_error variable
    is passed in the "changing" part of the call. The macro  function being called can then use the f_calc_error
    variable to change the value of the global
    g_flg_calc_error variable. In fact, the macro function being called can also check (by looking at the f_calc_error variable) if the last macro function reported an error.  The CALC_ERROR macro function just checks the value of f_calc_error parameter (w/c in fact is the value of the g_flg_calc_error variable) and returns "true/X" if the f_calc_error was set to true by the last macro function.
    Hope this helps in clearing things out

  • How can I use one hierarchical table as a node of another hierarchical tabl

    I have a requirement where I have two hierarchical tables and one table should  work as node for other table . How to achieve this??
    To elaborate more the structure is like
    Main Table (Company Structure)
    Sub table “Consolidation Groups” which has got hierarchical structure
    Sub table “Entity” which is also hierarchical.
    The Entity table should act as a node for table “Consolidation Groups”
    How can I achieve this functionality??
    Thanks
    Suvarna

    you misunderstood me apparently. I said you can't organinze to tables so one serves as a node's value of the other. Let me show you wnat I suggested by an example.
    First table has such values:
    -A
    |-B
    |-C
    and the second one is
    -x
    |-y
    |-z
    -p
    |-r
    |-s
    I thought you wanted to confine relationships between them so fo B node be able to select only x's branch and for C - only p's branch. If it's similar to the truth then let's create another table with two fields. Field one points to table containing capital letters and field two - lower case letters. Both fields are of type lookup pointing to an hierachial tables. Now when you populate this table you'll create records like (I list two columns):
    B - y
    B - z
    C - r
    C - s
    from your orinal table from now you should point to the above table. So instead of having two fields each pointing to its own table and compeling you to think how to organize two hierarchies, now you have only one field pointing to a table with all valid combinations. When you populate this table though YOU have to decide what such combinations are. It may make sense (if you have different users) to restrict access to this table on read-only level  for regular users to preserve the valid combinations.
    Hope it helps but if I understood your wrong give a concrete example.

  • How can I use 1 JSP for edit/create functionality?

    Hi All,
    Does anybody have an example of using one JSP for both editing and creating an object? I am pretty sure I can handle most of it, but am not sure about how I can specify different messages from the resource bundle (i.e. modifying the screen title for the different uses, "New Campaign" vs. "Edit Campaign").
    My background is in PHP and DHTML (i.e. more front-end) and I'm just starting with Java and JSF. As such, I want to be sure that I'm using appropriate patterns for my programming.
    Thank you in advance for any help,
    Matt

    I make the difference between modifying an existing object and a new one by the ID in the object. Each object has a unique ID in my app assigned by the database. So if the ID is 0, the user is creating a new object, not stored in the DB yet. I store the object to be edited/modified in the session before displaying the page:
    For the title:
    <h:outputText value="Edit Material" rendered="#{sessionScope.selectedMaterial.materialId != 0}"/>
    <h:outputText value="New Material" rendered="#{sessionScope.selectedMaterial.materialId == 0}"/>For the action buttons:
    <h:commandButton value="Update Material" action="#{MaterialControllerBean.updateMaterial}" rendered="#{sessionScope.selectedMaterial.materialId != 0}"/>
    <h:commandButton value="Create Material" action="#{MaterialControllerBean.createMaterial}" rendered="#{sessionScope.selectedMaterial.materialId == 0}"/>

  • How can I use MSI-G4mx460's TV-IN function?

    I have installed all drivers(include the video capture driver), but system always report "video capture device in use......". And I want to know how to play ps,dc or ps2 in windows by using this TV-IN function.THANKS!

    hedehodo,
    I don't have OpenOffice Calc on my computer, but I believe it can save to a .xls file.  Since TestStand's property loader can read .txt, .csv and .xls files, if you can save your OpenOffice spreadsheet to a .txt, .csv or .xls file, you can use TestStand's property loader with that file.  To make sure you're using the proper formatting, I'd recommend exporting some properties to the file type of your choice so you can see what the spreadsheet should look like.
    Eric B.
    National Instruments

  • How can I use an external USB drive on my Macmini with Boot Camp and Lion/Windows 7?

    I have a MacMini (Last model with a disk drive). The Mini has Lion and Windows 7 installed using Boot Camp. I want to attach a 350GB, USB, HP Personal Storage Device (Hard Drive) to the computer and be able to use it in both Lion and Windows 7 mode. The USB drive is formatted for Windows 7. I only want to use it for storage and back-up purposes for both operating systems. It would be nice if I could access the total disk from either system without having to reboot to change operating systems to view Windows 7 files and reboot again to view Lion files. Can anyone offer any guidance or any informational websites to help me? Thank you for any help!!

    Yes, you’ll be able to do that.
    (116841)

  • How can I get one button to perform two functions?

    here's what I want:
    have one button with a + that opens a pop up using a MSO and then turn that button to a X to close the pop up changing states on the MSO

    1. Create a graphic with plus sign and make it a button
    2. Group it with an empty frame of desired size
    3. Create a graphic with x sign and make it a button
    4. Group it with a frame with a pop up
    5. Create an MSO of the two groups
    6. Assign "goto next state"  to each button

  • How can I use Microsoft Access on my Mac? Boot camp?

    How can I use Microsoft Access on my Mac? Boot camp?

    Running Windows or using a suite such as Libre Office. It is similar to Office 2007 for Windows, but runs on a Mac, and contains a database manage that is Access compatible.

  • How can i use a function in a create table?

    I have done one funtion to do one check in a create table statement, but i don't know where to use it. How can I use it?

    I have the function:
    CREATE OR REPLACE FUNCTION verificar_NIF (nif varchar2) return boolean as
    l_check_digit constant varchar2(23) := 'TRWAGMYFPDXBNJZSQVHLCKE';
    l_mod number;
    l_result varchar2(1);
    l_return boolean := false;
    begin
    l_mod := mod(substr(nif, 1, 8), 23);
    l_result := substr(l_check_digit, l_mod+1, 1);
    if l_result = substr(nif, 1, 9) then
    l_return := true;
    end if;
    return l_return;
    end;
    And I have the table:
    CREATE TABLE Clients (
         id_client NUMBER(5) PRIMARY KEY,
         nif VARCHAR2(9),
         cog1 VARCHAR2(50) NOT NULL,
         cog2 VARCHAR2(50) NOT NULL,
         nom VARCHAR2(50) NOT NULL,
         adre VARCHAR2(50) NOT NULL,
         Poblacio VARCHAR2(40) NOT NULL,
         CONSTRAINT err_NIF CHECK ( verificar_NIF(nif)=true )
    I want the var nif to have a concert value. It is correct to check in that way?

  • How can i use Bi-Technical Content is used for measuring the performance of

    Hi
    recenetly i implemented the BI7.0 for one client. I want to know how to use 'BI Administraction Cockpit,.
    Actual what technical content does ???
    And how can i use technical content or statistics for measuring the performance of my queries. Please let me know
    kumar

    Hi Ravi,
    BI Admin Cockpit is enhancement of BW Statistics.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/08a75d19e32d2fe10000000a11466f/frameset.htm
    Check this thread also:
    BI Statistics comparision with the old
    Regarding the performance check the link below.
    Re: Query - Performance
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/15c54048035a39e10000000a422035/frameset.htm
    Regards,
    Anil

  • I need use the line data(basle​r spl2048 camera,NI1​433 board) to perform FFT transform ,how can i use transforme​d data to construct an image

    hello everyone! as what i haved mentioned in the title.In optical coherence tomography system ,i need to perform for every line data whick accquired by NI1433,how can i use
    the transformed data tto construct an depth image .

    This is no longer my main area of expertise, but here is results of brief search:
    Spectral Domain Optical Coherence Tomography System Design: sensitivity fall-off and processing speed enhancement
    look at Chapter 5
    https://circle.ubc.ca/bitstream/id/91474/ubc_2010_​fall_chan_kenny.pdf
    Ultrahigh-resolution, high-speed, Fourier
    domain optical coherence tomography and
    methods for dispersion compensation
    http://www.opticsinfobase.org/oe/abstract.cfm?uri=​OE-12-11-2404
    hope this helps,
    Curt
    Curt Corum, Ph.D.
    Center for Magnetic Resonance Research
    University of Minnesota

  • How can i use reuse_alv_fieldcatalog_merge function module

    I am using below steps for populating the final internal table.How can I use reuse_alv_fieldcatalog_merge function module in the place of declaring all these fields.How canI put title of the report in reuse_alv_fieldcatalog_merge function module.
    FORM BUILD_FIELDCATALOG .
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'KUNNR'.
      FIELDCAT-SELTEXT_M = 'Customer Name'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VBELN'.
      FIELDCAT-SELTEXT_M = 'Invoice Reference'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKBUR'.
      FIELDCAT-SELTEXT_M = 'Sales Office'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKGRP'.
      FIELDCAT-SELTEXT_M = 'Sales Person'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'POSNR'.
      FIELDCAT-SELTEXT_M = 'Item No'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FIANL'.
      FIELDCAT-FIELDNAME = 'ARKTX'.
      FIELDCAT-SELTEXT_M = 'Item Description'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.

    Hello,
    It is very easy to use reuse_alv_fieldcatalog_merge.
    You try this it will work.
    example
    data:
    DATA : gv_repid        TYPE syrepid VALUE sy-repid .  " Report id
      PERFORM set_field_catalog USING gst_struct CHANGING lst_fieldcat.
    FORM set_field_catalog  USING uv_tab TYPE slis_tabname
                         CHANGING  xt_fieldcatalog TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = gv_repid
          i_internal_tabname     = uv_tab
          i_inclname             = gv_repid
        CHANGING
          ct_fieldcat            = xt_fieldcatalog
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " set_field_catalog_spec

  • How can i use microsoft office on the mAC - what app do i purchase? help?!!

    how can i use microsoft office on the mAC - what app do i purchase? help?!!

    What aspect of Microsoft Office? Office is a suite of programs... Word, Excel, Powerpoint, etc.
    You've got several potential options. Libre Office and Open Office (both googleable) are 'open source,' free, downloadable programmes that will open most MS Office programmes and perform many of the functions of MS Office. Might be an idea to have a look round for reviews (etc) first, to see if they sound like they'll match your needs.
    If you're keen to use the App Store, there's Apple's own suite of programmes: Pages, Numbers and Keynote. They're a word processor, spreadsheet programme, and presentation-type programme with similar functions to Word, Excel and Powerpoint respectively. They're pretty good for most functions, and are better integrated with Macs than MS programmes. They're excellent programmes for what they do, and relatively cheap (about £14 each?).
    But if you're heavily reliant on MS, want ALL the bells and whistles of MS, or need to regularly transfer files between MS programmes on other computers and your laptop / desktop computer, then they might not be the best of ideas. Keynote - IME - can have some difficulties in transferring formatting to Powerpoint.
    Finally, there's MS Office Mac 2011. You can't download MS Office from the App Store, but can order the CDs from most online stores (including Apple's own store). It might be worth price hunting - if you're a student, you can usually find the programmes relatively cheap (£38 at the moment on Software4Students, though you'll need to belong to an academic institution / have a UK .ac email address). Apple's own prices on MS software are unlikely to be the best prices out there (though the product will be identical).
    MS Office includes Word, Excel and Powerpoint in the basic version. The slightly more expensive version (which, I think, is the £38 one on S4S) includes Outlook. Which - IME - is far more of a nuisance than Apple's native Mail programme.
    (I should probably add - I'm an academic. I own both Apple's own programmes, and MS Office 2011. I tend to use the MS programmes more, if only because they're the ones that other people tend to use, and transferring between Apple and MS programmes is a minor inconvenience. Pages also lacks Garamond, my favourite work font. The Apple progs are, however, far more beautifully integrated, and would be MORE than good enough for most users...)

Maybe you are looking for

  • Creating a batch job for the sapscript

    Hi folks, I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using  the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do t

  • Serial # required - I have creative cloud though!

    Photoshop CS6, has been asking me for a serial number for days or to continue trial... Today I can no longer click continue trial and am unable to open it. How can I fix this, I have work to do OSX 10.9.2 Photoshop CS6 up to date Please help me, than

  • TF205042: Two or more service definitions are in conflict.

    I am getting TF205042-error every time I am trying to log in to the backlog on my VS TFS 2013  TF205042: Two or more service definitions are in conflict. The specified parameters were found in the following number of service definitions: 0. Service d

  • Help on UDF

    In an UDF, I want to access the whole XML string the mapping is applied to i.e. the <b>complete</b> source message structure. Is it possible? Regards, Amol

  • Checking Multiple Counters...

    Hi there. I have a website with about 40 different pages from my last trip. I placed a counter on each page - and am wonderig how I can acccess a page where I can see all the counters. My homepage only lists the top 5 pages - and I can't find a way t