Parallel model questions

I have a few questions about how to implement a parallel model multi-socket test.
So, we have a test board which is controlled by USB (1 per board).
I have developed a VI based test sequence, that runs fine in a single mode.
Now i need to rconfigure this to use 2 sockets to run 2 iidentical test simultaniously (asynchronous)
A few things are unclear to me in the implementation:
1. Are the variables common to the 2 instances, or separate? For instance i use a local which is the handle to the comms for that board, but do i now need a different local variable for each socket? If yes, i dont see how that would be implemented, because the variable is specified in the sequence.
2. How to define constants that will apply only to one or other of the sockets (i.e. the board usb port)
3. Is it really multi-threaded? i.e can i call the same VI in 2 instances?
Labview 2010, TestStand 2010

Hi,
1. Do you have one resource or you multiple comm ports?
2. You can use the Socket index to get the correct data, off course you would have to use an array to hold this data. If handles are not from a shared resourse then there is no need for any special consideration. Each Socket will be totally independant of each other. Its only when resourses are shared that you need to make sure each socket is not trying to use it at the same time.
3. Providing VI are re-entrant then you can multiple instances of a VI in memory. Otherwise you would have to use synchronization so that you can share resourses.
Regards
Ray Farmer

Similar Messages

  • What is the best way to open close and pass instrument handles from labview in teststand parallel model?

    I have a number of test systems that use a parallel model with labview. We have a good number of instruments(PXI).
    What is the prefered method for open,closing and passing instrument handles in teststand using labview? 
    Solved!
    Go to Solution.

    Hi,
    No, Below is a bit from the Session Manager Help
    Currently, Session Manager supports the following instrument session types:
    IVI Sessions—Use an IVI session to obtain the C-based instance handle for an IVI logical or virtual instrument name. NI Session Manager does not support IVI-COM drivers at this time. When IVI-COM drivers are available, you can use an IVI session to obtain an ActiveX interface reference to an IVI-COM driver.
    VXIplug&play Sessions—Use a VXIplug&play session to obtain a C-based instance handle for a VXIplug&play logical or virtual instrument name. Configure VXIplug&play names in the <VXIplug&play directory>\<Platform directory>\NISessionMgr.ini file.
    VISA Sessions—Use a VISA instrument session to obtain a C-based viSession handle to a VISA resource or logical name. Configure VISA logical names in the <VXIplug&play directory>\<Platform directory>\NISessionMgr.ini file.
    Custom Sessions—Use a custom session to create a data container object that shares ActiveX objects you create or other data between software components you write. Use the Attach and Get methods to attach data to and retrieve data from a session. A custom session does not initialize, close, or own an instrument handle. The data you share with a custom session does not have to be instrumentation related. You can create a custom session with any name you request.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • A special Rendezvous that works on subsets of processes in the parallel model

    I have a parallel model test that works great on 14 UUTs so far, but now I must write some sequences where the processes have to share hardware two at a time. I need to pair up the processes like (0,1), (2,3), (4,5), etc. and have a Rendezvous operate on them two at a time like this:
    Processes (0,1) operate in parallel.
    Processes (2,3) operate in parallel.
    Processes (4,5) operate in parallel.
    And so on....
    Given enough time, maybe I could write that programmatically in TestStand; but I hope TestStand has a built-in Rendezvous for subsets of processes, or something else to do that. Does such a thing exist?

    bmihura wrote:
    OK I tried your pairing up idea with six processes (three seperate Rendezvous, one for each pair), but they all still ran in parallel. I'd like for one pair to execute at a time while locking out the others. This is because my system has two electronic loads (and two of many other things) that the six UUTs must share.
    Ok, then what you proposed before (a separate rendezvous for each pair of threads) is not the correct way to synchronize things. A rendezvous just causes threads to block until the specified number of threads reaches the rendezvous point. You have three independent pairs of threads running in parallel. If that is not what you want, then using rendezvous like this isn't the right approach.
    Please describe in more detail the entire flow of execution you are looking for. At what scope do you want the other threads to be blocked? Do you want each pair of threads to run all tests before any other threads can run? Do you want this only around certain steps? or Group of steps? Also, why do you want the threads to be paired? The most straightforward way I can think of to allocate two of a resource is to not care about which thread is using it, but to only allow two threads at a time, they don't necessarily have to be in pairs or even the same two threads every time. Do you really need the threads to be paired?
    One of the simplest TestStand specific ways to allocate resources is to use the auto-schedule step types. They allow you to define blocks of code which require specific resources and then automatically run those blocks of code when those resources are available. I recommend you read the documentation for these step types and see if that sounds like it will work for you.
    Another relatively simply way to synchronize access to a fixed number of resources among many threads is with a semaphore. A semaphore allows a certain number of threads through at a time, and blocks other threads until one of the ones using the resource release their acquisition of the semaphore. If the resources involved are more complicated though, I think you are better off using the auto-scheduler step types.
    Hope this helps,
    -Doug

  • SequenceFileUnload in TestStand 4.0 Parallel Model

    Has anyone experienced a problem when updating to TestStand 4.0 with the SequenceFileLoad and SequenceFileUnload callbacks?  I’m using the parallel process model configured for 8 threads and in earlier versions of TestStand have had no problems placing my hardware initialization steps in the SequenceFileLoad callback and the cleanup steps that release hardware references, in the SequenceFileUnload.   It seems very random that sometimes when I close my sequence, the Unload steps are executed.  Sometimes they only run if I select File->Unload All Modules or close TestStand. 
    Is there a flag in TestStand that I can use to trigger the Unload steps or possibly a better place in the parallel model to place my hardware cleanup?  I don’t want to release and have to reinitialize hardware references with each loop so any cleanup steps will need to be done once after all parallel threads are finished.

    Most of the time people do this in the Process Setup Callback and Process Cleanup Callback.  Those are process model callbacks that you can override from your client sequence.  They are probably better to use than the engine callbacks (SequenceFileUnload and SequenceFileLoad).  They get executed before and after the looping respectively.
    If you open the process model you'll see where they get called.  Process Setup Callback is in the Setup step group and Process Cleanup Callback is in the Cleanup step group.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Need SRM Library and model question

    Hello,
    I am going to write SRM Certification Exam.
    can any body help how to down load the SRM Library from internet,i wanted to prepare offline in home.
    and also need some model question papers and material.
    pl.send to my e-mail:[email protected]
    thanks.

    Hi
    <b>Please download the SAP SRM Libraray from the link below.</b>
    http://help.sap.com/content/documentation/sbs/docu_sbs_srm.htm
    Also, Sent the require details at your email id. )
    Regards
    - Atul

  • When to use parallel models?

    I am using TestStand to control test execution in a thermal chamber. I am unsure which process model best suits my needs (sequential, parallel, or batch). My requirements are as follows:
    Up to 4 UUTs will be tested using a single test system. Each UUT shares assets in the test system. An entire sequence of tests will be run repetitively on each unit for a period of 24 hours. Within the 24 hour period, a single control signal is received from the thermal chamber indicating when tests should be run. (run for two hrs, soak for two hrs; run for two hrs, soak for two hrs �). Typically (prior to using TestStand) the test controller would run all tests on UUT#1, then all tests on UUT#2, then all tests on UUT#3, and so on. At the completion o
    f this cycle, testing for UUT#1 would occur again. Each UUT has its own data report generated.
    I know the parallel process model allows for the removal and/or addition of UUTs at any time during the test sequnce. Although that is a nice feature, it is not a necessity.
    I would appreciate some advice on how to handle this situation. How can I affect the �infinite looping� of an entire test sequence for this multi-UUT environment?

    Maz,
    in the TestStandI course they stated that the serial model is for serial testing of one UUT after the other. The parallel model could somehow be assumed as multiple serial models running in parallel. The batch model is somehow inbetween or extra. It handles the test of a whole batch of UUTs in parallel, where there are some things to be tested in common.
    Of course everything can be coded in every process model, but this would give up a lot of the built-in comfort.
    In your case I would choose the parallel model, except there are some steps that need to be done on the whole batch at the same time. Consider some UUTs that must all pass a voltage test where you have just one DMM, and must be cooled down when all are done. This would be a batch model.
    HTH and Greetin
    gs from Germany!
    LuI

  • "Batch Synchroniz​ation" in Parallel Model

    Hi,
    I'm working on a project with up to 15 UUTs which are supposed to be running using the parallel model, since they have to be able to start and stop separately.
    There are conditions in which all active UUTs are paused and restarted upon request. Communication with the UUTs is established using a single demon. Now I need a synchronization method, to make sure only one thread runs the daemons initialization. Just like a batch synchronization using the "One Thread Only" option.
    The Batch steps do not work in the Parallel Model so is there a best practice establish a synchronization like this? I have some ideas, but I guess I'm thinking too complicated and can't see the wood for trees....
    Cheers
    Oli
    Programming languages don't create bad code, programmers create bad code....

    James,
    thanks for the reply. I guess I can implement sth like you suggested. Was just wondering, if I'm missing some built in option that saves me from tinkering myself.
    Cheers
    Oli
    Programming languages don't create bad code, programmers create bad code....

  • Help with the Parallel Model configuration

    This is my first time posting, but I am a long time reader....
    First off, I would consider my Teststand knowledge level as high novice to low intermidiate. I created  a test sequence using in Teststand which calls labview vi's. My test sequence tests 5 units at a time in a parallel model (parallel model sequence). Functionally, everything runs great in single pass and looping. However, here is my issue:
    When selecting "Test UUT's", it brings up a window that asks for the serial number for each of the five stations. The operator then needs to enter a serial number for each and press okay to proceed. This setup is not valid for what I am doing. My test fixture has a button at each of the 5 stations. The user is to push the button to start the test (connects to a DAQ). Then, the serial number is read from the UUT and populated in the report.
    How would I go about reconfiguring this? I am not looking for someone to solve my problems for me, I just need a little direction. I looked at the parallel model sequence and I can't figure out where to go with it.
    Please help,
    Ryan
    Teststand 4.2
    Labview 2009
    Solved!
    Go to Solution.

    No problem Ryan,
    When you are done here you will be a pro.  
    Here is a link that talks about callbacks and how overriding them works: http://zone.ni.com/devzone/cda/tut/p/id/6605
    The PreUUT will be a Model Callback.
    One thing I should point out- There is a huge difference between the Batch Model and the Parallel Model.  People tend to get them confused and sometimes use the wrong when the other one is a better fit for their architecture.  They way I think about it is like a race track.  Each car on the track represents a different test socket.  One time around the track represents a full test.  Pretend the race is completed by teams of cars.  Each team can only race one car for one lap (sorta like a relay).  The team would represent the available test fixture for the next UUT and the car would be the UUT. Here's how the race would work with each model:
    Batch Model-  Let's say there are 2 available spots in the race so we have 2 teams of 5 cars each.  Both of the teams 1st cars would line up at the starting line.  The gun would go off and each car would take off.  Let's say team 1's car gets around the lap first.  Before they can start their 2nd car they have to wait for team 2's 1st car to get around the track as well.  Then both team's 2nd cars would line up and continue the same as the first go around and so on until all 5 cars had raced.
    Parallel Model-  In the same car scenario as the Batch Model both of the team's 1st cars would line up and the gun would go off and they would go.  However, this time if team 1's car gets around the track they can immediately send their second car without waiting for Team 2's 1st car.  In fact all 5 of team 1's cars could be finished before team 2's 1st car even finishes it's lap.
    Not sure if you are a fan of analogies but they work for me. In short-
    Batch Model- Everything in that set of test sockets must start and stop at the same time.
    Parallel Model- Each test socket is independant of any other test sockets.
    I'm picturing your scenario where you have 5 different stations that will be running independantly of each other and trying to figure out if you would want the Batch behavior or the Parallel behavior.  Or..... Why wouldn't you just use the sequential model on each station and deploy your sequence to each station?  Maybe you can describe your setup in a little more detail and we could come up with a better solution.
    How does the one station know that the others have the Go button pushed?
    Regards, 
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Modal message popup hangs parallel model in Teststand 4?

    Hi:
    I'm having a problem using the 'Make Modal' option on message popups. It is hanging the user interface.
    Here is what I've done:
    * created a sequence with just a message popup in it (using Teststand 4.0 editor)
    * set the popup to be modal
    * set the sequence to use the parallel model
    * recompiled Full Featured CVI User interface for teststand 4.0 (using CVI 8.0.1)
    * run sequence in the recompiled user interface
    * popup is displayed
    * after acknowledging the popup, the popup and the user interface freeze
    If I change the sequence to use the batch model, everything works.
    If I don't recompile the user interface project that came with Teststand and just run the exe, everything works.
    What am I missing? Sequence file attached.
    Thanks,
    Dave
    Attachments:
    modalpopup.seq ‏6 KB

    Hi dseel,
    After I copied over your version of modelsupport2.dll, I see the attached error message for every test socket, basically saying that TestStand can't find a certain function in modelsupport2.dll.
    What modifications did you make to the dll?
    One thing though, I notice the same error message even with the Simple OI... Where are you putting modelsupport2.dll? In the same folder as the CVI Executable, or in <TestStand>\Components\NI\Models\TestStandModels?
    Jervin Justin
    NI TestStand Product Manager
    Attachments:
    TSErrorMessage.jpg ‏56 KB

  • I need scjp 1.5 model questions...

    i am preparing for SCJP1.5 which i should have to write before the end of this year.
    i am reading Kathey sierra for that.
    and i am testing myself by doing questions in Danchilosm and khalid moghal book.
    one more thing is i have test killer also...
    let me know the name of the sites from which we can get similar model questions in SCJP exam.
    can you help me by sending response?

    don't crosspost.

  • I want scjp1.5 model questions......

    i am preparing for SCJP1.5 which i should have to write before the end of this year.
    i am reading Kathey sierra for that.
    and i am testing myself by doing questions in Danchilosm and khalid moghal book.
    one more thing is i have test killer also...
    let me know the name of the sites from which we can get similar model questions in SCJP exam.
    can you help me by sending response?

    You can also try this website
    http://www.javaranch.com/
    This site was originally created by Kathy Sierra

  • SRM4.0 procurement cerification model questions

    Hi All,
    Could you please forward me SRM4.0 procurement cerification model questions and any helpful material regarding this.
    Reward points are sure.
    Thanks in advance.
    Regards,
    Murali

    Hi,
    Thanks for your immediate response.
    My mail Id: [email protected]
    Regards,
    Murali

  • Ibm Written Test Model Questions Plz

    Hi Experts
    Can Any one send me IBM written test model questions plz .tomorrow i have test with IBM .....
    Thnx In Advance....

    Hi,
    you can have the material in the following link.
    http://www.123eng.com/forum/viewtopic.php?t=105
    HOpe it could help you.
    Note: plz reward with points if it is useful to you.
    regards
    Rakesh

  • SAP Netweaver Certification model questions

    Please can any one post SAP Netweaver Certification model questions.
    Thanks
    VK
    Message was edited by: Venu Kanjarla

    HI tadm10_1 and tadm10_2 and tadm12_1 and tadm12_2 and tadm 51 i have this pdf if u want mail me [email protected] (for cost)

  • CRM model questions

    Dear Experts,
    I am planing to attend the SAP Tech for CRM Sales( Professional). If any body is having the model question of CRM  Pls guide me . It will be helpful for preparing the SAP Tech( CRM Sales - professional).
    Regards
    Ashwini

    Hi Ashwini,
    Check this out....
    http://www.sap.com/services/education/certification/levels/crmsalesexam.epx
    Amit

Maybe you are looking for

  • SAP APP for IPAD

    hi there,  are there any plans to improve the SAP App - I am finding that the APP for Business one is very limited.e.g for Service, you can't add in a service Call, you cannot email a quotation from the App. thank you. Edel    

  • Exclamation point and folder icon appears on iPod screen

    I have a 20g Ipod and I am having lots of problems. Whenver I press a button it shows the apple logo followed by an exclamation point and folder icon. It ends with sounds of a clicking or HD whirring. Also, when I plug it into the computer, itunes pr

  • I want to get rid of yahoo fron toolbar, tell me how or it''s time to change browsers

    i don't like yahoo and do not want it on my toolbar, i'd hate to change browsers but i will if i have too

  • Canon 6D importing at custom white balance

    I'm using Lightroom 5 and edit images from several different cameras including a Canon 60D, Canon 6D and 4 different Nikons. All of the images import as expected with the exception of my Canon 6D which automatically import at a custom white balance o

  • Language+Region

    Hi there, I bought a Lumia 620 in Dubai, I told the lady in charge that I live in the Netherlands and she assured me that I could use it in The Netherlands, a little naive, of course can I use in the Netherlands but I can't use it with the Dutch lang