Enable sequencefileload callback through VC++ and TS API

Hi,
I would like to enable the Sequence File Callback "Sequence File Load". Using TestStand's Sequence Editor, this is done in about 3 mouse clicks and there is nothing to wonder about.
Unfortunately (!), I am using VC++ and TestStand's API to programmatically create sequence files and insert seqences into these files. And insert steps into these sequences. And so on...
I now need to enable the SequenceFileLoad callback for a particular SequenceFile object but I've found just no way to do it so far. Anybody has a hint for me? Is it simply just not feasible?
Regards,
- Eric Parent
maito:[email protected]

Hey Erpa,
Have you seen this api call in the TS Help?:
CreateCallbackOverrideSequence Method
Syntax
SequenceFile.CreateCallbackOverrideSequence ( callbackName, allowCopyDefaultSteps)
Return Value
Sequence
The name of the callback sequence to override. Specify the sequence name of a Model, Engine, or Front-End callback. See DefaultModelCallbacks, and SeqFileCallbacks constants for possible values for this parameter.
Purpose
Use this method to create a callback sequence in the sequence file. The callback sequence you create overrides the Model, Engine, or Front-End callback of the same name as the callback you create. Refer to the NI TestStand Reference Manual for more information about callbacks.
Parameters
callbackName As String
[In] A reference to the Sequence callback the method creates. Release this reference when you are finished with it.
allowCopyDefaultSteps As Boolean
[In] Pass True to copy the steps of the sequence you are overriding into the new sequence.
Seems like once you have a reference to the sequence file you are creating you can just call this method.  Pass "SequenceFileLoad" as the callbackName.  I believe it returns the sequence to which you are adding.  Then once you have that you can add steps the same way you add them to your current sequence. 
Let me know if this is what you are looking for or if there's something else you need.
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • Enabling a User through OIM API

    Hi I am trying to enable a user through OIM API, However the end date is already passed for that user, I am setting up a new end date through the Program (showm below). However the update user is not working (i am not sure).
    Map usermap = new HashMap();
    usermap.put("Users.User ID", User_id );
    Map grpmap = new HashMap();
    grpmap.put("Groups.Group Name", Group_Name);
    tcResultSet ts = userClient.findUsers(usermap); //find all users
    String existing_end_date = ts.getStringValue("Users.End Date");
    tcResultSet tg = groupClient.findGroups(grpmap); //find requireq group
    long ukey = ts.getLongValue("Users.Key");
    long gkey = tg.getLongValue("Groups.Key"); //find group key
    // ENABLE THE USER
    java.util.Date new_end_date = new java.util.Date(111,1,1);
    Calendar cal = Calendar.getInstance();
    cal.setTime(new_end_date);
    DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    String Str1 = dateFormat.format(cal.getTime());
    String Str2 = existing_end_date + " 12:00:00";
    System.out.println(User_id+" OLD End Date:" + Str2 + " New End Date: " + Str1);
    Map usermap2 = new HashMap();
    usermap2.put("Users.User ID", User_id );
    usermap2.put("Users.End Date", Str1);
    userClient.updateUser(ts,usermap2);
    userClient.enableUser(ukey);
    I am getting the following error:
    U0000018 OLD End Date:2009-09-30 12:00:00 New End Date: 2011-02-01 12:00:00
    2/12/2010 15:02:53 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    Thor.API.Exceptions.tcAPIException: The user cannot be enabled because the end date is passed.
    Not sure why it is happening. It looks like the Updateuser is not working, or something else?
    Please advise. Thanks in advance.

    Hi Suren,
    thanks for the note.
    I found that as soon as I enable the user, I am getting the followimg messages in the opmn logs:
    INFO,06 Dec 2010 10:55:41,841,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
    INFO,06 Dec 2010 10:55:41,944,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
    INFO,06 Dec 2010 10:55:42,402,[XELLERATE.JAVACLIENT],System Event Handler: Enabling the User
    INFO,06 Dec 2010 10:55:42,421,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
    INFO,06 Dec 2010 10:55:42,427,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
    INFO,06 Dec 2010 10:55:42,439,[XELLERATE.JAVACLIENT],System Event Handler: Changing application data based on Organization change.
    INFO,06 Dec 2010 10:55:42,442,[XELLERATE.JAVACLIENT],System Event Handler: Auto-Group Membership Event.
    INFO,06 Dec 2010 10:55:43,715,[XELLERATE.JAVACLIENT],System Event Handler: Evaluating User Policies
    So, the access policies are getting evaluated, triggering provisioning processes.
    What I am planning to do is, to disable the access policies and try to run the Program.
    Because of this issue, my Program is throwing an error (until I looked into the opmn logs, it doesn't make sense).
    6/12/2010 10:55:50 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    Thor.API.Exceptions.tcAPIException: Error occurred enabling Xellerate User instance.
    Regards
    Vijay Chinnasamy

  • I have enabled pop ups through safari preferences but a website is still saying that they must be enabled. I have tried this on other browers after quiting and restarting after changing the preferences

    I have enabled pop ups through safari preferences but a website is still saying that they must be enabled. I have tried this on other browsers after quitting and restarting after changing the preferences

    How about extensions? Perhaps you have an adblock extension installed.
    Check Safari > Preferences > Extensions

  • Callback Functions for the Enterprise API

    I'm using VB to write some API functions to pull journal detail from Enterprise 6.0, but having trouble with the callbacks. I did find some syntax errors in the toolkit.bas file, correct those and am able to pull specific data points, but the enum functions just crash. Because the documentation is scetchy at best, I'm not sure if my functions are wrong, if there are other syntax errors in the .bas file or if the dll's are corrupt.<BR><BR>I'd really appreciate some help from someone who has experience writing callback functions to the Enterprise API.<BR><BR>Thanks in advance.

    Hey there...
    I think part (if not all) of your question can be answered by abstracting it a level. Think of all the tools that are available through PL/SQL or JAVA in the database. For instance...
    * Heterogeneous Services that allow you to access any ODBC/JDBC data source directly from within the Oracle database.
    * DBMS_JOB that allows the scheduling of jobs to run at a given time/interval.
    * DMBS_FILE_UTL that allows Oracle to interact with the file system.
    That doesn't even take into account the things you can do with Java in the database.
    In short, just about everything you mentioned can be done in one shape or form with tools that reside in or around the oracle database.
    HTMLDB is a front end interface tool that has access to all of the tools available to you at database level.
    So in short (and in my opinion): Yes, it is capable of creating Enterprise level applications. I'm building a fairly complex one right now that interfaces with 2 external (non-oracle) databases via Heterogeneous services, and which used DBMS_JOB to schedule jobs to collate data from an external file system.
    I hope this helps..
    Doug Gault
    TXI

  • I recently purchased a movie (Prometheus) on my computer through iTunes and every time I try to put it on my iPhone, it fails. How can I successfully sync this video? Mind you, every other file syncs flawlessly.

    I recently purchased a movie (Prometheus) on my computer through iTunes and every time I try to put it on my iPhone, it fails. How can I successfully sync this video? Mind you, every other file syncs flawlessly.

    Can you connect to a wifi source on the device? Enable wifi in settings on the device itself. If you don't have wifi at home, there may be a local hotspot you can use for this.
    The reason this happens is carriers don't want people downloading huge files that would slow their network as well as eat up your data plan.

  • How to use the user and role API's and where to use it

    Hi All,
    I have configured SSO for my UCM11g. Now my application authenticates through the Oracle SSO login page. Currently it is working with SQL authenticator.
    Now, i have to use LDAP authenticator. when i will configure the LDAP authenticator, i have to use the user and role API's to fetch the user profile information from LDAP. i have got the API's which will be used to fetch the respected information, but i am not getting as where i will write those java programs and how this API will be used in my application. what settings i need to do on it so that application uses the API's. ?
    Please can anyone help me on this.
    thanks,
    Saurabh

    Hi, Mithu,
    Thanks a lot for your help in advance.
    I have carefully read the document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b66d7ea-0c01-0010-14af-b3ee523210b5.
    Now, I think I have to set the processor of every actions in every process if I use the GP for processing the workflow.
    I am better to hope that I can set the processor to the role for every actions in every process in the runtime through get the organizational structure in the WDA(webdynpro for java or webdynpro for java). Thus, the customer don't set the processor to the role for every action in every process when runing in the GP.   I don't know how to do this. 
    Whether the function is not supported in the GP? If so, I have to config two organizational structure: in the R/3 and in the Portal. I don't think our customer don't receipt this solution.
    Do you give me some hints? Thanks a lot.  My email: [email protected]
    Thanks again.
    Thanks & Regards,
    Tao

  • How to enable diagnostics in cloud services and virtual machine

    Hi All,
    I need to enable diagnostics  for cloud services and virtual machine in our
    cloud environment. I referred the below link.
    https://convective.wordpress.com/2014/06/27/using-azure-monitoring-services-api-with-azure-cloud-services/
    Installed azure SDK 2.5 and cloud services instance is not displayed for cloud services in Visual studio 2013. Please provide the steps to enable at run time. 
    1) How to enable this diagnostics at run time.
    2) How to enable event logs for cloud and Virtual machine
    3) How to get the event log data's from REST API.
    Please help to resolve this.
    Thanks.
    Regards,
    Rathidevi

    hi Rathidevi,
    In addition, you could enable diagnostics feature on VM from this blog:
    http://azure.microsoft.com/blog/2014/09/02/windows-azure-virtual-machine-monitoring-with-wad-extension/
    Please refer to it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Calling a WSSE Enabled Web Service Through a Java Proxy Class

    I am trying to create a client that can access a WSSE enabled web service through
    the generated java proxy. For now all I am asking for in the .wsse file is the
    username and password with the line <token tokenType="username"/>. In the client
    I am setting the username and password token exactly as the BEA documentation
    describes:
    UserInfo ui = new UserInfo("myuser", "mypassword");
    session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
    Yet I am getting the following error message when I try to run the client:
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    EJB Exception: ; nested exception is:
    com.bea.wlw.runtime.jws.wssecurity.exception.WLWWSSEException: Policy
    requires Message to contain UsernameToken, UsernameToken not found in the Message.
    Can anyone tell me what I am missing?
    Thanks,
    John

    Hi John,
    In your standalone client, use the following two properties to send a
    user name and password to the service so that the client can
    authenticate itself: javax.xml.rpc.security.auth.username
    javax.xml.rpc.security.auth.password
    See the docs [1]
    Hope this helps,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/security.html#1073863
    John H wrote:
    >
    I am trying to create a client that can access a WSSE enabled web service through
    the generated java proxy. For now all I am asking for in the .wsse file is the
    username and password with the line <token tokenType="username"/>. In the client
    I am setting the username and password token exactly as the BEA documentation
    describes:
    UserInfo ui = new UserInfo("myuser", "mypassword");
    session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
    Yet I am getting the following error message when I try to run the client:
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    EJB Exception: ; nested exception is:
    com.bea.wlw.runtime.jws.wssecurity.exception.WLWWSSEException: Policy
    requires Message to contain UsernameToken, UsernameToken not found in the Message.
    Can anyone tell me what I am missing?
    Thanks,
    John

  • I would like to call through the CIS UCPM API but following error occurred

    I would like to call through the CIS UCPM API but following error occurred, I would like to to set Loacle Chinese, how can I do? Thank you
    intradoc.common.ServiceException: !csUnableToRetrieveSearchResults!csLocaleNotFound,English-US
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplem
    entor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2326)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
    at intradoc.server.Service.createServiceException(Service.java:2315)
    at intradoc.server.ServiceHttpImplementor.determineParameterizedLocale(ServiceHttpImple
    mentor.java:668)
    at intradoc.server.ServiceHttpImplementor.initLocale(ServiceHttpImplementor.java:467)
    at intradoc.server.Service.initLocale(Service.java:426)
    at intradoc.server.Service.initDelegatedObjects(Service.java:295)
    at intradoc.server.SearchService.initDelegatedObjects(SearchService.java:86)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:436)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImp
    l.java:545)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    I managed to find a solution to my problem described above. I downloaded a demo copy of the shareware called R-Tools which I found on Tucows.com
    The site described the software thus: "Take advantage of R-Studio's unique ability to recover files and disks on remote computers, even if their partition structures are damaged or deleted."
    The demo software searched my ipod and found all my photos and showed them as thumbnails. Of course the demo software would not save the files unless I registered it which cost US$49.95. There are several different suites of applications from this publisher, I got the cheapest option which is called "R-Studio FAT".
    I didn't mind paying this amount because the photos were very precious to me and by this point I had just about resigned myself to losing them all. I had previously contacted a professional data recovery service and they had quoted me "AUD$80 per hour and probably 1 to 2 hours work".
    I've been too busy organising my newly recovered photos into galleries and editing them using photoshop to be bothered to try and fix my ipod which I doubt I will want to use again for photo storage.

  • Accessing XMRadio through Itunes and Airport Express

    I would like to play my XMRadio subscription through my Airport Express to my stereo. Has anyone done that?
    Thanks

    does anyone know if it is possible to stream my
    customised radio station through itunes and therefore
    be able to use airpost express to listen to the music
    through my hifi?
    i used to have an apple ibook and i know there is mac
    software to enable you do do this, but is anything
    available for windows?
    Currently I am unaware of any Windows software which is similar to Airfoil (the Mac software).
    iFelix

  • How could JAVA API and ABAP API useful to MDM.

    Hi Experts,
    How could JAVA API and ABAP API useful to MDM, and any coding in Java or ABAP is required in MDM.

    Hi Reema,
    Java API and ABAP API are verry usefull to MDM to integrate MDM with other SAP componants like SAP R\3, EP etc. :
    It dose not required any coding in MDM infact in JAVA API coding can be done on NWDS(Netweaver Developer Studio).And for ABAP API coding is done on SAP R\3 System in ABAP editor.
    JAVA API:
    By using Java API MDM client operations can be performed.For one need to install NWDS and to deploy some .jar files and with the help of standard classes and interfaces it can be connected to MDM server and various operations like create repository ,connect to repository ,Data mainuplation etc.
    ABAP API:
    Suppose you have an Expert abaper and you want him to perform MDM operations.In that case he need not to learn MDM basic Data types infact by doing some settings on R\3 and MDM server side an ABAPer  can perform
    MDM Cnsole and MDM Data Manager level operations.
    you can go through these links
    http://help.sap.com/javadocs/MDM/SP06/overview-summary.html
    /people/bv.pillai/blog/2006/11/28/installing-mdmtech-add-on-and-configuring-the-mdm4a-mdm-for-abap-api
    Here the coding is done on SAP R\3 system.
    hope it will give you some idea about Java API and ABAP API
    Reward if helpful
    Thanks ,
    Vinay Yadav

  • New headset, but certain programs are transmitting sound through speakers and not headphones.

    Spoiler (Highlight to read)
    Hello,
    Hello,
    I just recently purchased a new headset for gaming but have been having some issues with it and the system sound. One major issue is when I call someone on skype, the sound from Skype or the call will go through the headphones, but any other audio comes out of the speakers. I have also notices that iTunes also does not function when I am in a call as well. Some examples would be if I were to want to watch a YouTube video while in a call, the sound would come through the speakers and not the headphones. However, I did find a fix for it. All I had to do was disable the main speakers and the audio was transmitted to the headphones. Another example would be if I wanted to run games via Steam (Garry's Mod, TF2, ect.), I wouldn't get any sound whatsoever from the game. Not through my speakers or headphones. With one exception, Garry's Mod volume I can hear through the speakers while in a Skype call, but I want the sound to come through the headphones. But with TF2, I get no sound whatsoever. If you need any more information about my issue, please feel free to ask. Thank you.
    This question was solved.
    View Solution.

    Hello @LayneStaley,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how certain programs are transmitting sound through speakers and not the headphones, and I would be happy to assist you in this matter!
    To ensure that your headphones are utilized when plugged into your notebook, I recommend following the steps below:
    1. Click the Start button
    2. Click Control Panel
    3. Click on Hardware and Sound (sorting the control panel icons by "category"), and then click on Sound
    4. Under Playback, you should see one or two speaker icons. One of them should already have a green checkmark next to it (which will be your notebook's main speakers). If the second Speakers icon is not visible, right-click in the list of devices and select Show Disabled Devices
    5. A second, disabled icon of "speakers" should appear. Right-click this icon and click Enable
    6. Select the newly enabled speaker device, right-click it, and select "Set as Default Device".
    7. Click Apply.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Can't uncheck "Enable Rubber Band for Pen and Curvature Tool" in Preferences

    Can't uncheck "Enable Rubber Band for Pen and Curvature Tool" in Preferences. Anyone else have this problem?

    jartist,
    You may try the list.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • How do I pass parameters modified by the SequenceFileLoad callback?

    I have some parameters in a sequence file that I want modified based on where the test station is located. I do not have that much experience with callbacks and have been reading up but wanted to reach out to the community as well. I know now that whatever is modified in the SequenceFileLoad callback is not passed onto the main sequence as it has not been started at this point. So what I am trying to do is have the operator choose a test facility once and have the parameters set and not have to choose everytime the sequence is initiated. I basically want the paramters set once, like when the fle is opened, and then it is done. Any help in how to implement this would be greatly appreciate.
    Thanks,
    Troy

    Happy to help out! I created an example which is attached to this message. This is what it does:
    In SequenceFileLoad, it first checks to see if StationGlobals.TestFacility exists, and if not, it creates that variable. 
    If the StationGlobal is set to "" (blank string), a prompt is displayed for the user to enter the facility. A post-expression on the Message Popup step sets the StationGlobals.TestFacility variable with this value.
    When you execute MainSequence after loading the file, the current TestFacility is displayed.
    The code could be simplified a bit if you can guarantee that StationGlobals.TestFacility will always exist as a variable. For example, the #NoValidation tags you see in some of the expressions are there because the StationGlobal may not exist prior to runtime. You could create the station global on your dev machine and deploy StationGlobals.ini to all test machines to ensure all machines have the variable and not need that part of the code, but I prefer the dynamic method because it won't cause an error if the station global is deleted for some reason.
    I hope this helps clarify things a bit, and let me know if you have any questions about it!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments
    Attachments:
    TestFacility_2010.seq ‏8 KB

  • Cant adjust brightness through F2 and F3

    Hi i cant adjust brightness through F2 and F3 buttoms it show no increase or decrease i have hp notebook pavillion dv6 6000 with amd radeon HD 6650 and amd phenom processor operatting system windows 7(64) kindly for any  help with regards

    Hi @Hayder-Hikmet ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Pavilion dv6 6600 Notebook and brightness controls not working correctly. You could try in the Control Panel, Clock, Language and Region, Language click Advanced Settings in the left pane.Then in Advanced settings, click Change Language bar hot keys. In Text Services and Input Languages, click Change Key Sequence button and enable the the key sequence.
    Here is a link to uninstall the keyboard. Restart the computer after uninstalling, it should reinstall automatically. Make sure you remove the USB keyboard first.
    Let me know how this goes.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

Maybe you are looking for