Dynamically set number of sockets in parallel mode

I am new to teststand (been programing LabVIEW for a long time)
I know this is do-able but not sure where to implement it - hoping for an example.
Before the 'Test UUTs' entry point I would like a message popup;
- based on the user button pressed I would like to set the number of sockets to either 3 or one (three sockets when running in auto mode, one socket if running in manual mode) all within Parallel model (can't change models on the fly)
ideally I would like the entire thing encased in a loop that would ask "auto, manual, exit" so that a manual session could be run, and at the completion one or more sessions in auto mode before exiting.
SO WITHIN EITHER A MANUAL OR AUTO SESSION 'NEXT UUT' WOULD STILL BE AVAILABLE, and after exiting from next uut the outer loop would still allow switching session modes
the loop would need to be right up front so the number of sockets could be set before the mode options are loaded.
if there is an example of a modified parallel process model that has similar mods, I would be very gratefull,
thanx
lmd2
ALE System Integration
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
[email protected]

Hi lmd2,
Attached is a quick example of one way to do what you are asking. This is only a general example, and there may be a bettter implementation depending on the architecture of your application.  The link here also has information on setting the number of sockets for a specific sequence file. Hope this helps.
Regards,
Ebele O.
National Instruments
Attachments:
ParallelModel.seq ‏455 KB

Similar Messages

  • Dynamically set number-columns-spanned

    Hi all,
    I have a cross tab which has a dynamic number of columns. Each column has a header "Location" (which is determined by the data), but the table also has a master header "Volume" which should span all of the locations. How can I acheive this?
    I currently have:
    <xsl:attribute xdofo:ctx="block" name="number-columns-spanned">2</xsl:attribute> Volumne
    But this is obviously static.
    Many Thanks
    Andy

    Hi lmd2,
    Attached is a quick example of one way to do what you are asking. This is only a general example, and there may be a bettter implementation depending on the architecture of your application.  The link here also has information on setting the number of sockets for a specific sequence file. Hope this helps.
    Regards,
    Ebele O.
    National Instruments
    Attachments:
    ParallelModel.seq ‏455 KB

  • Dynamic setting number of rows in report region

    How to implement that each user can define how much initial records should be returned in report region?
    THX!

    Solved reading How to:
    http://www.oracle.com/technology/products/database/htmldb/howtos/howto_report_rownum.html
    Maybe it was not so obvious to someone else also!
    ;-)

  • How to set the number of sockets for batch processing at runtime?

    Hello all,
    I need to change the execution model at runtime. I have achieved this by setting the 'ModelPath' property of the sequence file at runtime. When I set the sequence file model as batchmodel, i need to set the number of test sockets also dynamically. How can this be done? Once i set the number of sockets, i would also have to set the UUT serial number for each socket. Please help me out in solving this.
    Thanks and Regards
    Madhu Srinivasan.

    Hi Madhu,
        You can do this by inserting a sequence file callback into your main sequence and choose the ModelOptions callback. You can then use the expression step to set the "Parameters.ModelOptions.NumTestSockets" value to whatever you want. If you then use the Test UUTs execution entry point you will be prompted for serial numbers automatically. You could also use this same procedure but alter the ModelOptions callback in the process model directly, either way works just as well but I think that using a sequence file callback gives a bit more flexibility in the system.
    Hope this helps,
       Nick

  • Setting 1 dimension in ROLAP mode cause issues, the system try to filter on dynamic set names!

    Hi,
    I suffer a strange behavior.
    I have an SSAS 2014 solution which works fine.
    I do some test to convert 1 dimension in ROLAP mode.
    (all the other dimensions and partitions are MOLAP only)
    after this I cant process any cube!!!
    even a process clear or structure runs forever!!!
    the server call the dimension and try to filter the attributes using the name of dynamic sets setup in my cube! a real non-sense!
    I have a dynamic set in my cube called "SelectedStores"
    and during the process clear or structure, SSAS try to filter my dimension using this dynamic set.
    so for sure this values doesn't exists in my dimension.
    Also a lot of errors like the following are generated:
    OLE DB error: OLE DB or ODBC error: Conversion failed when converting the nvarchar value 'SelectedStores' to data type int.; 22018.
    its a big non-sense!!!
    any idea on the cause for this?
    thanks.

    Hi Willgart,
    According to your description, you get conversion error after you change the storage into ROLAP. Right?
    After you change into ROLAP, it seems there is something (structure/definition) changed in the underlying table. Please use the BIDSHelper to check the issue:
    Dimension Data Type Discrepancy Check
    Dimension Health Check
    In this scenario, does you dynamic set is used in calculated member and involve both MOLAP and ROLAP dimension? It may cause some mismatch issue. Please refer to links below:
    Error Messages during process of ROLAP dimension when using DYNAMIC SET
    in CALCULATE MEMBERs
    SSAS cube failing for storage mode Rolap
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Dynamically setting the number of collumns...

    Hi,
    I have a report that I need to build. In the requirements I need to dynamically set the number of columns based on the parameters given. I have some ideas on how to do this by building the layout to include all the columns. Then show or hide them based on the parameters passed. I was just wondering if anyone has tried to do something like this? If so, were you successful, and what were some of the major stumbling blocks you ran into. Or if you know of any links to documentation that would help would be great.
    On a side note, would doing something like this be handled better if done in Discoverer? I have not used Discoverer before, so I'm not sure myself.
    Thanks,
    Tom

    Hi Tom,
    You will find useful information in these notes on Metalink:
    261313.1: How to hide columns dynamically without blank spaces ?
    1074438.6: How to dynamically set labels based upon globals
    28533.1: How to create a dynamic report using lexical parameters for column names
    And a comprehensive guide to using lexicals (you will have to use lexicals for column names)
    115072.1: Complete Resource Reference for using Lexical Parameters in Oracle Reports
    Navneet.

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Dynamically set the sequence of an Item

    Hi,
    I have three record types and am trying to dynamically set where it appears on the form.
    The 3 record types are MEETING REGISTER, MARKET PROBLEM AND BROADCAST CHANGE.
    If the user creates a record with a type of MEETING REGISTER then I want a field called 'duration' to have a sequence of 57, if it is either of the other 2 types then I want it to appear further down the form with a sequence of 241.
    I have tried creating a dummy text item called 'P2_DURATION_SEQ' at the top of the form with a default function of:
    declare
    v_dur_seq NUMBER;
    BEGIN
    IF :P2_RECORD_TYPE IN ('MEETING REGISTER')
    THEN v_dur_seq := 57;
    ELSE v_dur_seq := 241;
    END IF;
    RETURN v_dur_seq;
    END;
    and tried putting &P2_DURATION_SEQ. in the sequence field of the duration field properties with no success.
    Any advice would be great.
    Thanks
    Chris

    Hello Chris,
    If you have just the one field, or just a couple, that needs to dynamically change sequence (I wouldn't suggest the following if you have many because it could become quite a maintenance headache), you can try this:
    1) Define three "duration" fields, say P1_DURATION_MR, P1_DURATION_MP and P1_DURATION_BC. Define their sequence to display wherever each needs to be, respectively.
    2) Map all three to the same database column.
    3) Make each conditional on the record type being "MEETING REGISTER", "MARKET PROBLEM" or "BROADCAST CHANGE" respectively.
    Then, if the record type is "MEETING REGISTER", P1_DURATION will render where it needs to and the other two will not render, etc.
    Hope this helps,
    John

  • SQL Query: How to search on a dynamic set of patterns?

    Hello,
    I have a requirement where I need to search a table with dynamic set of patterns. Here is something I am looking for:
    select * from T1 where C1 LIKE 'AA%' or C1 LIKE 'BB%' ...
    That is, the number of patterns is unknown, it could be 0 or 1 or more. I cannot use the IN clause because this requires exact match.
    Can you please help in letting me know how to do this?
    Thanks a lot

    Dear,
    +In your last statement you mentioned "like C2||'%'".
    I can't use this because C2 is the name of a column in table T2.+
    Did you try this and you got an error or you are "concluding you can't" use this because C2 is name of a column?
    Please try it. If you run into error, please post the error and you query.
    Also...
    1. When posting code, use BEFORE and AFTER the code, to format it nicely. It makes it easier to read.
    2. In you posting questions include sample table,data expected output and your attempt in solving the problem. this will make it easier on everyone to help sooner and more effectively.
    Best way to learn, SQL programming is to try it out.
    So please try the sample and the suggestion and let us know if you get any error.
    vr
    Sudhakar B.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Generating XML in Parallel Mode-DBMS_XMLGEN/ DBMS_XMLQUERY / SQLX?

    Is it possible to generate XML in parallel mode for big result sets using DBMS_XMLGEN or DBMS_XMLQUERY or SQLX?
    Thanks

    SQL/XML may work. WHat does the showplan output show

  • Dynamically setting field attributes based on input

    Hi all,
    I am trying to see if it is possible to dynamically set field attributes depending on other fields.  For example, in screen 1100 of IQ01, I want to make it so that "Certification number" becomes mandatory if "certification status" = 1, and becomes optional if "certification status" = 2,3 or 4.
    Is this possible?  If so, how?
    Regards,
    D.

    Have you checked this
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm
    if your requirement is to do this in Tcode IQ01 then the above answer is not sufficient
    Edited by: Abhishek Jolly on Aug 15, 2008 5:41 PM

  • Discoveryd Basic Sockets Couldn't set IP_BOUND_IF on socket fd[72] scopeID[4] errno[22] result[-1]

    message loop filling system log.
    Text: discoveryd Basic Sockets Couldn't set IP_BOUND_IF on socket fd[72] scopeID[4] errno[22] result[-1]
    Value of fd[] does cycle
    Loop prevents access to internet
    Tried work-around from http://apple.stackexchange.com/questions/153080/computer-name-keeps-changing-osx -10-10-14a389
    Basely has an affect.
    Power-off of router stops the loop.
    Powered-off for 5 (five) minutes and can access internet
    Macbook Air (MBA) and iMac both experience the loop

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Set number of copies to print

    Hello,
    We're using Adobe Lifecycle Designer 8.0 and we've the requirement to print copies of our generated pdf delivery form.
    Does anyone know how to set the number of copies dynamically at runtime ? Maybe by using java script  ?
    Thanks in advance !

    Yes, I know OPK8 is used to set number of copies for CO04. We set it to 1 as I mentioned. That is what is needed when the user executes CO04 directly. My question was is there a way to dynamically change the number of copies when running CO04 via creating a BDC (or call transaction) from a custom process, because then we will need more than one copy.
    I am resigned to calling CO04 in a loop for the number of copies I need.

  • How to handle runtime error in PreUUT step when running in Parallel mode

    I would like to run Test UUTS in parallel mode, and some actions are done in PreUUT such like read serial number and fixture control.
    The process model won't goto PostUUT Step when runtime error occurs in PreUUT step, so i would like to add some actions to check if sequence error in cleanup and go back to setup in PreUUT step, but i find it skip all the actions in setup and main step?
    What should i do if i want to go back to run PreUUT again as the first time to run when runtime error occurs?
    Or, is there any good way to handle this kind of error withour restart program?
    Solved!
    Go to Solution.

    This question does not depend on PreUUT or ParallelModel at all.
    First of all:
    A Runtime Error is a situation where TestStand encounters a problem which makes further testing either impossible or senseless. So a Runtime Error always indicates a situation where proceeding the test sequence is not recommended.
    Nevertheless, there are situation where you want to handle those errors without stopping the execution. A "traditional example" for this is initialising serial/GPIB devices. If the device does not reply, there might be different issues the operator can easily resolve and (if corrected) the sequence can proceed properly. The operators action could be:
    - Check if device is switched on
    - Check connection between PC and device
    So the error state is used to inform the operator about the malfunctioning device and regarding of the actions the operator takes, the execution will either proceed or terminate.
    When TestStand encounters a Runtime Error, it initially reacts with displaying a dialog. This behavior can be modified in the Station Options >> Preferences >> On Runtime Error.
    Furthermore, you can install callback sequences which are called if an error occurs. Those would be either SequenceFilePostStepRuntimeError or ProcessModelPostStepRuntimeError (depending on the fact if you are changing the process model or simply working with client sequence file callback overrides). These are "normal" sequences you can use in order to get system information, loop on the step or....essentially do whatever you want. If you want to proceed though, you must not forget to reset the error flag.
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Dynamically set flash chart height?

    Hi,
    I have a flash chart that includes a selector that alters the query for the chart. Depending on what the user selects, the chart shows a different number of rows (this happens to be a stacked horizontal bar chart, but this could apply to any chart type). I would like to be able to dynamically set the chart height based on the number of rows the query returns. If I set it too small and the user makes a choice that returns a larger number of rows, the chart bars are compressed to the point where the labels are unreadable or omitted altogether. Conversely, if I set the height to a larger value and the user makes a selection that results in a small number of rows, the chart is overly extended and hard to read.
    I am able to calculate what I'd like the chart height to be using a page item and a before header process. But I can't figure out how to pass this value to AnyChart. I tried using an item substitution (e.g., &P7_CHART_HEIGHT.) as the value for the chart height on the Chart Attributes/Chart Settings page, but this attribute requires a non-zero numeric value. I tried to figure out if I could alter the chart XML, but could not figure out how to do it and I'm not sure item substitutions would be passed in the XML anyway.
    Is there a way to dynamically set the height attribute of a chart at page load time?
    Thanks,
    Mike

    Hi Mike,
    You can update the Region Source of your chart, replacing the substitution strings *#HEIGHT#* with the reference to your page item *&P7_CHART_HEIGHT.*. So your chart region source should then look something like the following(note that I've trimmed some lines for display purposes), and when the chart is run it will pick up your setting for the height, based upon the value returned from your Before Header process:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="#HOST_PROTOCOL#://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
        width="#WIDTH#"
        height="&P7_CHART_HEIGHT."
        id="#CHART_NAME#"
        align="top">
    <param name="movie" value="#IMAGE_PREFIX#flashchart/anychart_5/swf/...............................">
    <param name="quality" value="high">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="allowNetworking" value="all">
    <param name="scale" value="noscale">
    <param name="wmode" value="transparent">
    <param name="FlashVars" value="initText=#FLASH_INIT#&xmlLoadingText=............................................">
    <embed src="#IMAGE_PREFIX#flashchart/anychart_5/.......................................
           quality="high"
           width="#WIDTH#"
           height="&P7_CHART_HEIGHT."
           name="#CHART_NAME#"
           scale="noscale"
           align=""
           allowScriptAccess="sameDomain"
           allowNetworking="all"
           type="application/x-shockwave-flash"
           pluginspage="#HOST_PROTOCOL#://www.macromedia.com/go/getflashplayer"
           wmode="transparent"
           FlashVars="initText=#FLASH_INIT#&xmlLoadingText=#FLASH_................................................">
    </embed>
    </object>
    #CHART_REFRESH#
    {code}
    I hope this helps.
    Regards,
    Hilary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Connecting a wrt310n wirelessly to a wrt310n

    I have a wrt310n connected to my modem, and placed in my living room.  Upstairs, I have my PC and xbox 360 that I would like to connect to my wireless network.  I have a 2nd wrt310n that I would like to put in my office and connect my Pc and 360 to,

  • IPhoto 11: No book or postcard order possible?!

    Hi, as the title suggests, I have a problem with iPhoto 11. I can't order neither books or postcards or prints. Since I can't find anything about this in the web, I assume that there is a single problem and it's somehow related to me / my computer. I

  • ITunes videos don't play/gray screen

    When my daughter clicks to play her purchased iTunes videos, a gray screen (with controls) comes up but there is no video nor audio. Her audio iTunes purchases play fine...it's just the videos that have this problme.

  • Can't import mxf-files (Canon XF100) into FCP 10.0.8 after Mavericks

    Hello It's not possible for me, to import mxf-files into FCP. I haven't yoused FCP for a couple of days, but today I could not import files from my Canon XF100, so i think the problems came with Mavericks?? Does any of you have same problems? What to

  • Why Labview.ex​e error when exit simple-sta​te machine?

    Can someone please help me figure out why, unless I ABORT the VI, I get a "Labview.exe is closing" error when I press Stop. I am using a simple-state machine like what comes with Labview's examples. What could be some causes of this? I have read that