How do i query the module object for the interface of the module-spe​cific interface I require

Hi there.
Currently using LabVIEW 2012/TestStand 2012.
I am attempting to edit the LabVIEW Text Sequence Translator, and in the CreateStep.vi I am trying to create a step that is of type WIS_Sequence_Call (a custom version of NI_Types.ini-->SequenceCall).
I need to set the file pathname, sequence name and parameter values in the step.  I believe I need to get access to the SequenceCallModule class to do this.
This help file SequenceCallModule states in the description: "To access the properties and methods of a specific module class, query the Module object for the interface of the module-specific interface you want to acquire.".
What exactly is meant by "query" here?  It looks like "Specify" might be what I am after, but I want this done programmatically, ie no dialog boxes.
See my snippet below.
Thanks.
Christopher Farmer
Certified LabVIEW Architect
Certified TestStand Developer
http://wiredinsoftware.com.au
Solved!
Go to Solution.

Thanks for the reply Charles.
I have been using the 2012 version of the poster.
I can get access to the Module class from the Step Class as shown in the snippet above, but I can't see how to get to SequenceCallModule? The "To more specific class" VI doesn't seem to work for TS refs. Is there no way to derive the SequenceCallModule from this?
Also I can use the TSAdp.SequenceCallModule reference, but I need to link this to the relevant step that I've just created.  Can NI please provide me with a link to any examples on this?
Thanks
Christopher Farmer
Certified LabVIEW Architect
Certified TestStand Developer
http://wiredinsoftware.com.au

Similar Messages

  • How do i query the module object for the interface of the module-specific interface I require

    Hi there.
    Currently using LabVIEW 2012/TestStand 2012.
    I am attempting to edit the LabVIEW Text Sequence Translator, and in the CreateStep.vi I am trying to create a step that is of type WIS_Sequence_Call (a custom version of NI_Types.ini-->SequenceCall).
    I need to set the file pathname, sequence name and parameter values in the step.  I believe I need to get access to the SequenceCallModule class to do this.
    This help file SequenceCallModule states in the description: "To access the properties and methods of a specific module class, query the Module object for the interface of the module-specific interface you want to acquire.".
    What exactly is meant by "query" here?  It looks like "Specify" might be what I am after, but I want this done programmatically, ie no dialog boxes.
    See my snippet below.
    Thanks.

    Thanks for the reply Charles.
    I have been using the 2012 version of the poster.
    I can get access to the Module class from the Step Class as shown in the snippet above, but I can't see how to get to SequenceCallModule? The "To more specific class" VI doesn't seem to work for TS refs. Is there no way to derive the SequenceCallModule from this?
    Also I can use the TSAdp.SequenceCallModule reference, but I need to link this to the relevant step that I've just created.  Can NI please provide me with a link to any examples on this?
    Thanks

  • How can I query the rendered width of a text object

    Does anyone know of a way to query the rendered width of a bound field object. We are using a proportional font (Times New Roman) and need to figure out, how wide the output is going to be. Thank you!

    Hi Niall, thanks again. I am currently working on a project where we convert Crystal Reports
    documents to LiveCycle Production Print with the goal of creating the exact same output in
    LiveCycle as it was produced in Crystal Reports.
    We define a field in LiveCycle with the exact same properties for width, height, font, font size etc. as
    it is defined in Crystal Reports.
    When we populate the field with data that exceeds the defined width of the field, the data gets cut
    off at a different position than in Crystal Reports, sometimes even in the middle of a character.
    If I could query the length of the rendered output, I could shorten the input data until the rendered
    output would fit in the field.

  • How to access query based view object in backing bean

    Hi
    I am using JDev11.1.2.1.0
    I want to use the query result of query based view object in backing bean.
    How can i do the same
    Please Solve this
    Thanks

    Hi,
    Assuming ADF is in the picture
    1. Create a PageDef file for the page (right mouse click "Go to Page Definition")
    2. In the Executable section, create an iterator for the View Object
    3. In the managed bean:
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("name of Iterator");
    iter.execute();
    // ... navigate the iterator rows ...//
    Frank

  • How to create object for a interface (or) how to use ITextModel Interface

    Hi,
    I am new to vc++ and indesign, i am using windows xp as OS and Indesign CS3 as version, now i want to know how to create an object for the ITextModel Interface (or) how to use the ITextModel interface, for getting the selected text and to manipulate the content, for this i tried myself to the best for more than a week,
    but i not get any solution or any idea to do it, so i post this scrap, if any one knows kindly help me immediately, if u want any more details kindly reply me i am ready to give..
    Regards,
    ram

    Hi, Ram,
    as Jongware already has explained in a previous thread, this is the scripting forum, the SDK forum is next door.
    Besides, your question has already been answered over there in SDK forum - with a reference to an existing example, including documented source. There is also plenty more documentation (780 pages alone in the programming guide) and other working examples.
    The brief response was a perfect match to the vague, general scope of the question. If you want more details, be more specific yourself. Do not just touch such major topics as selection, text, object architecture in one sentence to expect a silver bullet. Instead, stick to one detail, find and read the relevant examples and documentation (did I mention the programming guide?) yourself e.g. using keyword search. Quote your code where you're stuck.
    Being new to both VC++ and InDesign is an explanation but no excuse. IMO, same goes for "using windows xp as OS". All together are bad starting conditions if you intend to write a plugin. Even a seasoned C++ programmer with some years of experience in publishing quirks will easily require months, so don't become impatient after just a week.
    If you need quick results and have a programming background such as a recent Java101, reconsider scripting (this forum). It can bring you amazingly far and you'll learn InDesign through a simplified object model. Same principles apply - there is plenty documentation and a good choice of examples.
    Regards,
    Dirk

  • How do I query changed view object attribute in another view object

    Jdeveloper 10.1.3.4
    My requirement is that I want to be able to query a view object (based on entity) on a non-key attribute where the value I am searching on may either be in the database on an existing record or, have just been recorded by updating a different view object based on the same entity (and yet to be committed).
    When querying the second view object for a value just updated via a different view object, the second view object always returns no rows. I had expected the process to be :
    EntityA
    ViewObjectA based on EntityA
    ViewObjectB based on EntityA
    ViewObjectA - query row with key = 123. update attribute Y with value 456 (attribute Y in database null). Entity cache for EntityA, key 123, atttribute Y updated with value 456
    ViewObjectB - query row with attribute = Y. expect record in EntityA cache just updated to be returned. Instead, nothing is returned
    Here is the code I was using (where RandScheduleEdit and RandScheduleSearch are identical view objects based on entity object RandSchedule)
      public static void main(String[] args) {
        String        amDef = "test.cache.model.AppModule";
        String        config = "AppModuleLocal";
        ApplicationModule am = Configuration.createRootApplicationModule(amDef,config);
        ViewObject rsEdit = am.findViewObject("RandScheduleEdit");
        Key rsKey = new Key(new Object[]{40});
        Row[] rsEditRows = rsEdit.findByKey(rsKey,1);
        Row rsEditRow = rsEditRows[0];   
        rsEditRow.setAttribute("SId", new Number(7827));
        ViewObject rsSearch = am.findViewObject("RandScheduleSearch");
        rsSearch.setWhereClause("S_ID = :SId");
        rsSearch.defineNamedWhereClauseParam("SId", null, null);
        rsSearch.setNamedWhereClauseParam("SId",new Number(7827));
        rsSearch.executeQuery();
        Row rsSearchRow = rsSearch.first();
        Configuration.releaseRootApplicationModule(am, true);
      }Why does rsSearch not find the record S_ID = 7827 ? It seems to only be querying new records in the database and ignoring the cached record just updated ?
    Any help greatly appreciated.
    Cheers,
    Brent

    rsSearch.setNamedWhereClauseParam("SId",new Number(7827));This might help:
    rsSearch.setQueryMode(ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
    rsSearch.executeQuery();

  • How do you query the journal drilldown data using SQL

    Hi All,
    Appreciate if anybody can assist me into querying the database via SQL query so the journal data includes sub ledger detail.
    I found that I cannot link the GL journal batch id (etc.) with the existing sub ledger (AR and AP). Is there any way to perform this query, if not, how can the drill down works?
    I needed the guidence since there are certain info that is not available in the journal (rct number, PO no, check no etc). I need to ensure that the data I have is tally with GL journals.
    Reasons: doing some recon download to be feeded to a third party system.
    Thanks.

    Hi there are mappings for the reference fields from AP and AR, so you can buid up the links there. Just look at the reference fields of gl_je_lines and try to identify which is valuable for you.
    Ugur YILMAZ
    http://oracle-master.com

  • How to properly create complex OCI objects (for Annotation Text)

    I am upgrading a tool that will upload text objects to a table with a ST_ANNOTATION_TEXT field. The app is a C++ app and I need to instantiate a ST_ANNOTATION_TEXT (using OCIObjectNew??). I actually have 2 questions. First, does anyone have an example of how to accomplish this? I seem to be unable to correctly create the annotation text type in C++ to be able to append to (calling OCICollAppend). Second, since ST_ANNOTATION_TEXT is a complex type (contains an array of annotation text elements), do I need to call OCIObjectNew on not only the main ST_ANNOTATION_TEXT type but also for the ST_ANNOTATIONTEXTELEMENT_ARRAY, ST_ANNOT_TEXTELEMENT_ARRAY, and the ST_ANNOTATIONTEXTELEMENT?
    I can't seem to find in info on this so hopefully someone else has been through this.

    user3068343 wrote:
    I am still having an issue where the sub objects are still NULL.Actually I was mistaken. I must have confused getting an Object from OCIObjectNew with using one of its constructor method in a statement.
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28395/oci18nav004.htm#sthref3438 clearly state the object will have NULL attributes, unless the OCI_ATTR_OBJECT_NEWNOTNULL flag is set on the environment handle.
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28395/oci11obj.htm#i446308 further tells you what the default value for the object members will be.
    An older 9i doc http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96594/adobjadv.htm#1008774 also warns about resetting the indicator struct member when you update a member of the object.
    user3068343 wrote:
    ++a) you allocate the object's top-level struct yourself (SDO_GEOMETRY in my case) in C+++
    Above you suggest creating the objects top-level struct myself. How do you create that top level object? I have been using OCIObjectNew on that object as well as its sub objects? Is that how you are creating the top-level object?This technique works only on binds, as objects you get back from defines are always allocated from the object cache. I create the top-level object directly on the stack... This is something I discovered worked, but is not documented, so you're probably on safer ground using OCIObjectNew instead.
    BTW, the reason I can't easily post OCI example code is that my code uses wrappers around the objects that hides most of the OCI:
    Geometry Geometry::make_point(OCIEnv* envhp, OCIError* errhp, float x, float y) {
        Geometry point_geom(envhp, errhp);
        point_geom.set_null(false);
        point_geom.gtype() = 2001;
        PointRef point = point_geom.point();
        point.set_null(false);
        point.x() = x;
        point.y() = y;
        return point_geom;
    }The above creates an 2D point-type SDO_GEOMETRY hidden inside the Geometry class, itself deriving from a GeometryRef class. The latter wraps a C++ API on top of the struct pointers for a SDO_GEOMETRY/SDO_GEOMETRY_ind, while Geometry actually composes the OTT generated value/indicator structs by value, and passes addresses to its nested structs to GeometryRef (its parent class). So GeometryRef can manipulate an object irrelevant of where it was allocated, the stack or the object cache. The Geometry class is a value class, but it's useful for binds only, and like I said uses a behavior which appears to work but is not explicitly documented.
    Unless you have nested objects by reference, nested objects are composed by value in the OTT-generated structs, so the space for all nested objects is already allocated after the first OCIObjectNew. But the members themselves are not initialized, and thus marked as null in the indicator struct.
    In the code above, my Geometry instance is fully allocated (on the stack), but fully uninitialized (the indicator is by default set to all nulls). I first set the atomic flag to non-null, then get the Ref wrapper around its nested SDOPOINT_TYPE to also set it to non-null, and fill in the x/y member (via another NumberRef wrapper, which knows about the member and the indicator for that member, and sets it as non-null when assigned to). Notice how how I return the instance by copy: My point geometry instance doesn't have a pointer-aliasing issue here, only because its two OCIColl* are null. In the general case, you can't copy my value wrappers without making a true deep copy... But I'm getting into the weeds here.
    The important point is that OCIObjectNew doesn't init the nested objects unlike what I stated earlier. Sorry for misleading you on that. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to set-up change document object for deliveries??

    Hi experts ,
    kindly help me with this config , I did some researched and none of them have solve my problem.
    i need to know on how to set-up a change document object for delivery documents.
    Change document object LIEFERUNG is not available in transaction SWED.
    How will I add this change document object in SWED?

    hi ,
    im wondering why even the existing object VERKBELEG is not being triggered?
    would you know any reason for this?

  • Getting started with Ajax - how do I query the db without 'submitting' the page?

    Hi guys,
    I'm building a simple 'power point presentation' - basically a cf page which will display a large jpg [a slide]) every n seconds I want the page to query the db to ask if it needs to change the jpg and if so which jpg should it now show. In this way we can control the presentation by updating the database on the fly.
    So I think I will acheive this as follows:
    1. a 'display' page that contains javascript that fires every n seconds
    2. that js to somehow pass 2 variables (GET?) to an action page (ie user id and an authentication var)
    3. the action page will the query the db (using the vars passed in step 2)
    4. the action page returns a result (path to jpg to display) which somehow(?!) is passed back to the display page
    5. the display page then swaps the jpg it is showing for the one passed back to it in step 4
    6. ideally the display page then also passes another 2 variables to the action page letting us know it has received the update and changed the image accordingly
    I'm fine with all the html and cfm stuff - where I am stuck is the js bits, I've had a good look through google and don't seem to be making any progress so if anyone could please point me in the right direction I'd be ever so grateful.
    Any snippets / advice very gratefully received
    TIA
    Nick

    Hi Nick -
    Let me also recommend jQuery.
    Fantastic stuff once you get the hang of it, and even the simple stuff is cool.
    Ok... here's what I did...
    There are probably better ways to do it, but I cheated, in that I did it my way, and got some good results.
    Using divs to define my display areas here's what I did:
    I have 2 select statements -
    1) Selecting from 1 populates the other select.
    2) The JS function is triggered when a selection is made.
    3) The Ajax statement goes out to a web page, that new page does a query and creates a new div with the same name as "txtResult", for my example.
    4) The Ajax then pulls back the new page and displays it.
    It's pretty easy after a few tries.
    Hope this helps.
    Doug
    function dynamic_Select(poolID){
    $.ajax({
    type: "GET",
    url: '/forms/selectSchedules.cfm',
    data: "id=" + poolID,
    dataType: "text/html",
    success: function(html){
        $("#txtResult").html(html);    
        <div style=" padding-left:100px;">   
            Select Pool:
            <select name="pool" onchange="dynamic_Select(this.value)" />
            <option value="#" selected="selected">-Select-</option>
            <cfoutput query="pools">
            <option value="#poolID#">#poolName#</option>
            </cfoutput>
            </select>
            <span id="txtResult" style=" padding-left:100px;">
                Select Schedule:
                <select name="schedules" id="schedules" onchange="getInfo()">
                <option></option>
                </select>
            </span>
        </div>

  • How to generate Principal or Credential object for login

    System: CE720
    Hi,
    in a bean I try to login to the Enterprise Content Management. This works fine if I login with the current user who called the method (actually thats always me )
    As you can see [here|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50daac37-f929-2d10-2d8f-cd122ccf6e6d&overridelayout=true] under Repository > login() it also works by defining a Credentials object.
    How can I create a Principal or a Credential object to login to the repository with an other user?
    I appreciate your help.
    Regards
    Edited by: Martin B. on Jun 9, 2010 2:15 PM

    Hi Elliot,
    You do not have to generate the MI Client install files. They have already been done for you.
    You can go to <a href="http://service.sap.com/swdc">http://service.sap.com/swdc</a> to get MI Client install files. The latest version you will find is SP10.
    The file format will be .SDA, you can extract this will a zip archiving tool like winzip/winrar.
    You will find JSP and AWT versions of the client and each of these will have a PDA install as .CAB or .exe file for Win32. You can install the version you need.
    Hope this helps.
    Best Regards,
    Karthik

  • How do you query the iTunes database by genre?

    I am trying to enumerate music tracks from the iTunes database by genre.
    I am able to get genre id's from the query
    http://itunes.apple.com/WebObjects/MZStoreServices.woa/ws/genres
    The description is here:
    http://www.apple.com/itunes/affiliates/resources/documentation/genre-mapping.htm l
    I can retrieve urls to tracks with something like this
    https://itunes.apple.com/search?term=R+B/Soul&limit=2
    However the search term applies to all fields and I get a mixed collection of results, many of them are wrong.
    I would like to enumerate songs from a specific genre, but I can't figure out how.
    I've tried multiple ways of using the "genreIndex" attribute, but I keep getting 0 results.
    For example I would like to enumerate the first 10 Techno songs. Techno has a genre id=1050
    https://itunes.apple.com/search?term= any ideas??
    Thanks, Ed

    Hi there are mappings for the reference fields from AP and AR, so you can buid up the links there. Just look at the reference fields of gl_je_lines and try to identify which is valuable for you.
    Ugur YILMAZ
    http://oracle-master.com

  • How to create a pointy round object for approval seal

    Hi - I'm really not great with Illustrator so I'm hoping someone can help me.  See the image below:
    I downloaded the deaf friendly seal as a vector image from a stock website.  Now my co-workers want me to add that "sunburst" round edge and put it behind the round part of the deaf friendly one.  Rather than download another vector image of the pointy round thing, I'd like to try to do it myself but I'm not good with Illustrator.
    Can someone provide a tutorial or help on how to create that round object with points around it - maybe a quick and easy way to do it?
    Thanks in advance.

    Thanks to all of you.  Appreciate all of the help.  The result:

  • How do you query the Hotmail Calendar with a freebusy URL to get an XML response ?

    Hello,
    I've posted this on the Exchange Server Legacy thread, but they point me back here....
    Assuming that Outlook's (Hotmail's) Calendar service still supports XML FreeBusy requests, what am I doing wrong here ?
    I'm sending this GET request to obtain an XML return that I can then further process:
    GET / HTTP/1.1
    owa/public/?cmd=freebusy&start=2014-12-04T14: 00:00+01:00&end=2014-12-08T16:00:00+01:00&interval=30&u=SMTP:*** Email address is removed for privacy ***
    Translate: t User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
    Content-Type: text/xml
    Host:
    www.calendar.live.com
    (Translate: t comes from http://www.infinitec.de/post/2004/12/31/Retrieving-a-users-availability-(freebusy-data).aspx)
    (User-Agent seems needed in order to get an XML response)
    It keeps giving me "400 - BAD REQUEST".
    What is the correct syntax for this  ?

    Hi,
    From your description, I would like to clarify the following things:
    1. If you use an Exchange account, you can use an OWA command to retrieve Free/busy information for a particular user.
    2. In your case, you use an Hotmail account. Actually, we have a dedicated support team regarding the Microsoft Outlook.com . I recommend you ask your question on our Microsoft Outlook.com forum which is staffed by more experts specializing in this kind
    of problems. Your understanding will be appreciated.
    For your convenience:
    http://answers.microsoft.com/en-us/outlook_com/forum/ocalendar?tab=Threads
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • How do I install SQL Management Objects for SQL 2008 on a 2 node cluster?

    Hi,
    One of the software we use needs the SMO to be installed. This is on a SQL 2008 2 node cluster. In the control-panel, I do NOT see this installed, and I see the client tools SDK installed and I even did a repair of it. I still do not see it.
    Can some one please help me with SMO install on this 2 node SQL 2008 cluster? I could not find a working link to install this.
    Thanks!
    Suresh.
    Suresh Channamraju

    Hi Suresh,
    According to your descriptIon, you need to install SMO on two nodes of SQL 2008 cluster, right?
    If you want to develop an application that uses SQL Server Management Objects (SMO), you should select the Client Tools SDK when you install SQL Server. To install the Client TooLs SDK without installing SQL Server, install Shared Management Objects from
    the SQL Server 2008 Feature Pack.
    http://www.microsoft.com/en-us/download/details.aspx?id=6375
    By default, the SMO assemblies are installed in the C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\ directory.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Can I translate a description without localizing an app?

    On the Mac App Store, I want to provide Japanese and German descriptions of the product, even though the app itself is not localized into these languages. The small amount of text in the app will still be in English- there is only one version of the

  • Using NOT comparison in SQL with Intermedia

    Ok, I have an issue where I am trying to create a search engine the most efficient way. I am using Oracle 8.1.7 and Java. I can't always use the Intermedia ~ as there has to be a comparison. Basically, there are cases when the not can be chosen and t

  • Rounding off to nearest whole number without condition

    hi, i want to round a real number to an integer value,,wihout any conditions like 10.01 should be 11 10.1 should be 11 and like that is it posible to do it? thanks in advance. amit

  • Error on extern "C" pointer argument

    Hi, I am seeing the following formal argument error, which I assume to be a compiler bug: In gmp.h there is following declaration: extern "C" void mp_get_memory_functions __GMP_PROTO ((void *(**) (size_t), void *(**) (void *, size_t, size_t), void (*

  • Help with a very simple password field

    The following question can be observed, and manipulated with the following: Source: http://www.ucsdkya.com/kyaonly.fla SWF: http://www.ucsdkya.com/kyaonly.swf I am using embedded fonts for this flash file, and it seems that no matter what, it convert