Syncrhronization problems in Parallel Mode

I've developed a program im TestStand using the Parallel Process Model. I'm controlling 4 equipments with GPIB and a DaQ Card. When I run my first Socket I don't have problems and the sequence works perfect, but when I run more than one Socket the sequence fails and give me the error:"Attempt to unlock a lock that is not locked by this thread". Everytime I make some write or read operation to my equipment with GPIB I lock this step between lock and unlock. Can someboday help me? Maybe I'm not using properly the lock functions. Where can I find examples about this?

Without seeing your sequence it is difficult to say what exactly is going wrong. Basically, to use a TestStand lock, you create it with a name and lock it using the name before the critical section of your code. When you lock a lock, you specify a lifetime for which when it expires the lock will automatically be unlocked (I believe the default lifetime is until the sequence finishes executing). In addition you can perform an EarlyUnlock operation to release the lock before the lock lifetime expires.
Another way of using locks is to use the synchronization tab of the step properties dialog on any step. You give it a name of a lock and it will automatically create and lock the lock before calling the step's code module and then automatically unlock it after the step compl
etes.
-Doug

Similar Messages

  • Problem with Append mode in File Receiver

    Hello,
    I am facing some problem with Append Mode in File Receiver.
    In channel config, i have given :
    Construction Mode : Append
    File Type : Text
    Message Protocol : File Content Conversion
    The size of the file which i am trying to send is about 9.5MB.
    I got this error,
    "Recovering from loss of connection to database; message
    loaded into queue by recover job: System Job (Failover Recovery)".
    So, it would seem that there was a loss of connnection to the database    
    while the file was being written.
    Note -  XI successfully recovered from the connection loss and   
    successfully wrote the file, however since the communication channel  
    was set to append, it appended to the partial file that was written   
    before the database connection loss. This is not correct. The file    
    should have been overwritten after the recovery even though the communication
    channel was configured to append.                                     
    Can anyone help me on this regard.
    Thanks,
    Soorya.

    Hi Venkat,
    I would suggest u to split the file in to chunks if u face any problem in processing at a time in append mode and also
    Memory Requirements are must 4 processing huge files:
    Q: Which memory requirements does the File Adapter have? Is there a restriction on the maximum file size it can process?
    A: The maximum file size that can be processed by the File Adapter depends on a number of factors:
    o The most important one is the size of the Java heap, which is shared among all messages processed at a certain point in time. In order to be able to process larger messages without an out of memory error (OOM), it is recommended to increase the size of the available Java heap and/or to reduce the concurrency in the system so that fewer messages are processed in parallel.
    o Another factor negatively influencing the maximum message size in releases up to and including XI 3.0 SP 13 is an enabled charcter set (encoding) conversion if the message type is set to "Text".
    o Using the transport protocol "File Transfer Protocol (FTP)" also uses more memory for processing than the transport protocol "File System (NFS)" (up to and including XI 3.0 SP 13).
    o If the Message Protocol "File Content Conversion" is used in a File Sender channel, consider that not only the size of the input file affects the File Adapter's memory usage, but even more the size of the XML resulting from the conversion, which is usually a few factors larger than the original plain text file.
    To reduce the memory consumption in this scenario, consider configuring the setting "Maximum Recordsets per Message" for the sender channel. This will cause the input file to be split into multiple smaller mesages.
    Plz do refer the following links:
    U may plan the availability of ur communication channel using "Planning Availability Times" feature
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
    hi check the below links for reference
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10748ef7-b2f0-2910-7cb8-c81e7f284af5
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7086f109-aaa7-2a10-0cb5-f69bd2affd2b
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cc1ec146-0a01-0010-90a9-b1df1d2f346f
    Regards,
    Vinod.

  • SQL Developer video problems on Parallels (Win XP)

    I am running ORACLE 11G, APEX and SQL Developer on my MacBook pro. Initially I installed 1.5.4 SQL Developer and I stared having problems when editing SQL scripts.
    Edit window, blacks out the lines which are not being viewed. Very annoying when working on complex scripts.
    Although I've reported this problem to Parallels support, given that SQL Developer is the only application causing the problem is making me think it is more likely an issue with SQL Developer.
    Since then I went back to 1.5.1 version and having same problem.
    Any body else having this problem?
    I might try 1.5.4 with patch #2 . . .
    Details related to SQL Developer installed:
    Oracle SQL Developer 1.5.1
    Version 1.5.1
    Build MAIN-5440
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.35
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.54.40
    Version
    Component     Version
    =========     =======
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.5.0_06
    Oracle IDE     1.5.1.54.40
    Versioning Support     1.5.1.54.40
    Edited by: APEX minded on 27/05/2009 17:12

    I will post this info to help people who may have similar problem.
    The work around I found is to run Parallels in full-screen mode.
    Parallels support haven't provided a fix for this yet.

  • 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.

  • Wee Problem with Parallels Desktop and the Westmere Mac Pros

    Just got my new Westmere 8-Core Mac Pro last Friday, and spent the last four days in agony.
    I used Migration Assistant to transfer over my accounts from my old Mac Pro, but it crashed hard -- so hard that I had to reformat the hard drive and do a clean install of the system. So I decided to do a clean install of all of my programs as well, and the Westmere crashed on the Parallels Desktop installation. And, again, it crashed so hard that I had to reformat the hard drive and do a clean install of everything all over again.
    Today, I read a review of the Westmere Mac Pros in Macworld (http://www.macworld.com/article/153704/2010/08/quad8_core_macpro_2010.html?lsrc=top2), and learned:
    We ran into a problem running Parallels on the Westmere-based Mac Pros, so we could not complete the Speedmark 6 suite of tests. When booted into 64-bit mode (as the new Mac Pros do by default) the systems would crash with Parallels installed. Booting into 32-bit mode would allow the systems to start up, but we still couldn’t use Parallels. We eventually tried a complete wipe and reinstall from the Mac Pro’s systems disc and downloaded the very latest version of Parallels to eliminate any other potential problems, and had the same issue. Apple and Parallels are aware of the problem and assure me that Parallels is working diligently on a fix. The application worked just fine on the new quad-core Mac Pro with the Nehalem processor.
    Hoped I saved somebody some time.

    Hi akapod,
    Looks like they may have the fix out.
    Mac Pro (Mid 2010): Kernel panic when installing or restarting Parallels Desktop 5 for Mac
    Please let me know if it's available and fixes it.
    Thanks,
    ivan

  • Problems with parallel compression

    I'm having some problems utilizing parallel compression on some drums. Here's the setup:
    -9 tracks of audio (mixed, EQ'ed, etc. ) outputting to a Bus, which serves as the master drum fader
    -master drum fader has very light EQ and compression, and a limiter
    -audio tracks also have a (post-fader) send going to a separate bus for parallel compression
    -parallel comp bus is heavily compressed, slightly EQ'ed
    -plugins used are all Logic's: limiter, compressor, channel EQ
    The problem is that as I increase the parallel fader, the bass drum loses it's punch. It almost sounds like some kind of phase cancellation. The snare seems to lose a little presence as well. The cymbals, on the other hand, sound great. So if I leave the parallel fader very low, I'm not getting the compression I want out of the cymbals. Any ideas?
    I'm still pretty new to mixing, and definitely to parallel compression, so it seems likely a problem with my plugin settings. I got some advice from a friend of mine, and tweaked a little from there, but here are the settings of the compressor on the parallel bus:
    Threshold: -17 dB
    Ratio: 10:1
    Attack: 10 ms
    Release: 11 ms
    Knee: 0.0
    Peak Mode
    Thanks for your help.

    I guess I'm just a little stuck on the usual parameters (ratio, threshold, attack/release, etc.), though I realize the Warmer doesn't operate in quite the same way.
    Right. It is a bit confusing and there are only some controls which have usual plug-in equivalents. Look at VM as being a limiter, which in turn has an infinite ratio. The compression element of VM (as I understand it) affects the amount of compression underneath the ceiling. So the knee control affects that compression depth, rather than the compression curve, related to threshold, as seen in conventional compressors, like a sub threshold adjustment.
    the knee sets the amount of compression applied to signals leading up to the ceiling, right?
    Exactly. The ceiling, you would think, is the limiter ceiling for output a bit like Logic's adaptive limiter output. It is really a way of moving the output level to something other than 0 dbFS, and works with the saturation settings on the VM's back panel, and the way it handles the input side of VM. So I usually leave the ceiling at zero (as it's not being used for mastering) and change the drive, knee and saturation to taste. So the metering behavior you see, to me makes sense. Compare with pre and post, and adjust the drive, and it is more visually in step. I think it's more like a threshold than anything else. The knee is also affecting VM's make up gain, which you can balance with the drive knob to get the right amount of coloration.
    Drive is, as you say, just an input level.
    I always have FAT on. When used on drums, I change the rear saturation to less high and bass, more mid. I also change the freq. settings to be more active in the low mids, but this changes for each kit. I usually have brick wall and Auto (for release, not auto gain) on, with release set at X1.
    The Mix control is mysterious to me. You would think that it works so that you can change the mix between an unprocessed input to the VM output and therefore use it on a drum submix without a separate bus for parallel compression, but it sounds different to me (and much better) when I use it on a bus set to 100%, so that's what I do, with some EQ before VM.

  • 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

  • [PXE][IPv6] WdsClient: There was a problem initializing WDS Mode‎

    PXE/IPV6 show error after load boot image: WdsClient: There was a problem initializing WDS Mode‎ ; boot via IPV4 is pass and success to insall win8 to clent
    1. Server 2012(DHCP+WDS): fail at some times
    2. Server2012(DHCP)+Server2008R2(DHCP): fail always
    The test environment is pass before, i don't know what happened or any setting is changed.
    Hope your help, thanks.

    Yeah, same here.  Did you ever fix this?

  • How to call a method in parallel mode

    Hi,
    I have a web application (ADF/JSF/EJB3) developed under jdev 11g
    I need to call a method in my backing bean but in parallel mode.
    The idea is that when the user click on a button to compute something i do not want the user to wait untill the process is finished.
    e.g.
    public String doSomeAction(){
    callMethodXY();
    return null;
    I do not want to wait until callMethodXY is finished to continue with my process.
    I just want to call it in parallel and continue working normally.
    Which is the best approach.
    Regards,
    Emile

    Emile,
    No, not my opinion at all. I was simply stating a fact that if you do this in another thread, you must not access FacesContext nor the binding container from that other thread - it's a technical limitation. If you have something that needs doing in the background, then a thread is a fine way to do it.
    John

  • Problem with Fullscreen mode

    Hello. I have problem with Fullscreen mode in Pages 09. Let me explain it. I launch Pages 09 on space nr 4, than i activate fullscreen mode and now when fullscreen is active i switch for example to space nr 2. And what happens? Pages also moves to space nr 2, but i don't want to move my pages to space nr 2. I guess it is a bug in Pages 09. Thank you for your advice.

    Hi There
    By the sounds of this behaviour you haven't set any space options for Pages within System Preferences (Expose and Spaces Pane). After experimenting with different options this is what I experience:
    1. Pages not listed in application assignment in spaces Preferences - Enter full screen in pages, switch from one space to another pages window will follow and exit fullscreen (this sounds like what you are experiencing).
    2. Pages set to every space in app assignment - Enter full screen in pages, switch from one space to another and pages will follow but wont exit full screen.
    3. Pages set to a single space in app assignment - Enter full screen in pages, switch from one space to another using control and arrow keys pages will pull me back into the space it is set to and will exit fullscreen. Using the control and number keys pages will stay in its set space but upon returning to that space pages had exited fullscreen.
    I suggest you add pages to the the spaces application assignment in System Preferences by clicking the plus arrow under the list of apps and select a specific space for pages to open in, once open Pages will only move from this space if you move it manually.
    You can send your feedback to Apple via http://www.apple.com/feedback/pages.html if you wish
    Hope this helps
    J.C

  • Problem with passive mode FTP server and NAT

    Hi,
    I have a problem with Passive mode FTP and NAT.
    I am trying to run both an FTP server and sharing the Internet connection via NAT. I have by the way specified the passive ports to use in ftpaccess (65000-65534). Everything works fine until someone tries to connect via Passive mode. I have tracked the problem down to the firewall and the rule that handles NAT.
    Firewall rule config without NAT:
    00001 allow udp from any 626 to any dst-port 626
    01000 allow ip from any to any via lo0
    12300 allow ip from any to any
    65535 allow ip from any to any
    Firewall rule config with NAT
    00001 allow udp from any 626 to any dst-port 626
    00010 divert 8668 ip from any to any via en1
    01000 allow ip from any to any via lo0
    12300 allow ip from any to any
    65535 allow ip from any to any
    So, passive ports do not work when NAT is on. If I turn it off, Passive ftp works like a charm.
    But how do I solve my problem? I have in my quest for the answer stumbled upon "-punch_fw" but do not know how to use it or if it even helps me at all?
    Best regards,
    Peter
    B&W G3 Mac OS X (10.4.5)

    Media/Lacrosse-1-tiny.3gp
    I can't find the file on your server.
    They may also need to edit the .htaccess file to allow the .3gp file extension be used. Call them.

  • Using SCXI-1520 in Parallel Mode.

    Hi all,
    I am using SCXI-1000 chassis and PCI-1024E DAQ card.
    I want to use my SCXI-1520 in Parallel mode.
    Is there any other way to configure my 1520 in parallel mode other than directly connecting to DAQ board using SCXI-1180 feed through panel and SCXi-1302?
    Some of my friends are telling that there are some Patch files, through which we can use the scxi-1520 in parallel mode. Is it true? If it is true please give me how use the Patch files( or alternative solutions).
    Thanq
    Regards
    Preetam

    Preetam,
    As explained in the SCXI-1520 user manual, Traditional NI-DAQ does not support true parallel mode operation of the SCXI-1520. However, NI-DAQmx does. I would recommend installing NI-DAQ 7.2, which includes the latest version of both Traditional NI-DAQ and NI-DAQmx. Then you can use the NI-DAQmx driver to control your SCXI-1520 in parallel mode. To configure the SCXI-1520 in parallel mode with NI-DAQmx, simply select the Parallel Mode check box when setting up your chassis and modules in MAX. I hope this information helps.
    SCXI-1520 User Manual
    NI-DAQ 7.2 Download

  • /sapapo/c5 transaction in parallel mode

    Hello All,
    I just got a doubt regarding transaction /SAPAPO/C5. One of my coleague is saying we should not execute this program in parallel mode, he says it may create some inconsistency( he got info from one of SAP person ). Is it true?, does any body any Info about this?. Can we execute in parallel?.
    Thanks for your help in Advance.
    Regards,
    Srini

    Hi Srini
    As far as I know, I do not know the clear restriction on this. And  I know some customer who
    use parallel processing of /SAPAPO/C5.
    (Off course, when you schedule C5 in parallel, each job should different orders. So you need to be careful about selection variant).
    Best Regard
    Keiji

  • Impdp LOB in parallel mode

    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit. I am importing LOBS with parallel option but my status shows import is not hapennig in parallel - mode. I have only 1 worker with Worker Parallelism: 1.
    Import> status
    Job: SYS_IMPORT_TABLE_01
    Operation: IMPORT
    Mode: TABLE
    State: EXECUTING
    Bytes Processed: 0
    Current Parallelism: 16
    Job Error Count: 0
    Dump File: /admin/data_pump/lob_tame_%u.dmp
    Dump File: /admin/data_pump/lob_tame_01.dmp
    Dump File: /admin/data_pump/lob_tame_02.dmp
    Dump File: /admin/data_pump/lob_tame_03.dmp
    Dump File: /admin/data_pump/lob_tame_04.dmp
    Dump File: /admin/data_pump/lob_tame_05.dmp
    Dump File: /admin/data_pump/lob_tame_06.dmp
    Dump File: /admin/data_pump/lob_tame_07.dmp
    Worker 1 Status:
    State: EXECUTING
    Object Schema: MAIN
    Object Name: LOB_TABLE
    Object Type: TABLE_EXPORT/TABLE/TABLE_DATA
    Completed Objects: 1
    Completed Rows: 4,798
    Completed Bytes: 28,255,491,864
    Percent Done: 100
    Worker Parallelism: 1
    Import>
    My database sever has 8 cpu. My import command is
    impdp main@database directory=data_pump_dir dumpfile=lob_table_%U.dmp remap_schema=dev:main tables=LOB_table content=data_only TABLE_EXISTS_ACTION=TRUNCATE parallel=16.
    Please let me know why my import is not hapenning in parallel mode?
    I appriciate any input . Thanks for reading.

    Thank you DBMS Direct . I tried changing the parallelism to 7 but it did not help. Please let me know of any other suggsestion..

  • Use DAQ in Parallel Mode

    Is there any issues using a DAC card (M-Series) in TestStand in Parallel Mode?  I would like to have 4 instances running in parallel all using ine DAC card.  Of course, each instance would be using separate channels.  How would you create the reference to the DAC card?  I assumed that one insides could open the DACCA card but could be a race conditon.
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

    The M series cards (if I remember correctly) only have one clock for input and one for output.  This means that you can only do one operation at a time on the device, even if it has multiple channels.  If you are doing a true parallel test (rather than a batch test), I would recommend using a Lock in TestStand on the card so that only one UUT tries to access the device at a time.  If you are using Batch, you can use the same setup, or have a "worker" thread that does the DAQ operations and then sends the data to each thread using a Notifier.  Depending on how long you are using the card, this may be more trouble than just doing it independently and using locks.
    Allen P.
    NI

Maybe you are looking for

  • Dunning Wizard - Interest calculated

    Hi Experts, The interest tjhat the dunning wizard calculates on a specific BP, How does it get allocated to that BP balance? i.e does it automatically get added to the BP balance or do you need to go post it manually via journal entry or what? Thank

  • I would like to customise a new iPad as a gift, if I do this using my account, can I transfer everything over to her account once she has received the gift? thanks

    Is there a way to set up an iPad with one account (mine) and then when the iPad is given as a gift, transfer everything over to another? I would like to 'fill up' a new iPad mini with apps, movies, music etc for my sister who lives in the middle east

  • Can iphone receive audio bluetooth?

    As we all know, the iPhone can TRANSMIT audio via bluetooth, but is it possible for the iPhone to also RECEIVE audio?  Particularly from a TV or computer (assuming they also have BT)?  Reason I ask is that I was looking into buying bluetooth headphon

  • Import Manager Join Tables not working

    Hi Experts, for combining tables in the Import Manager i tried to use the join and lookup function. My easy example is: Table1 Product ID Organsation ID Table2 Organisation ID Plant Now I'm joining using the field Organisation ID which contains the s

  • Problem in Designing view

    Hai,   I am Designing a form using webdynpro. In that i need to put two input fields in side a rectangualr image. How is it possible in webdynpro. Please help me asap. Regards