Need help in testing multiple DUTs

Hi All,
I need to test 12 components : 7 variable capacitors and 5 inductors, using Agilant 4263 LCR meter
Each component has a serial number that the operator has to enter into test program,
The variable capacitors need to be adjusted, measured and set to specific values (within their respective tolerances as shown in the excel file)
The inductors are fixed (not variable) and need to be measures only.
Each one of these 12 components have their own test jig (some are bigger that the others)
So the operator has to be prompted to change the DUT and jig, one after another, enter serial numbers and then adjust and measure.
The test results of all 12 components should be written and saved to an existing excel template to specific cells and also to a tab delaminated text file
I have attached the excel template and the column highlighted in yellow is where the measurement results should go.
I have created a VI that measures a single capacitor. but it doesn't do what I need to do.
I appreciate any help I can get.
Thanks in advance

Some comments:
The code you attached to measure a capacitor has lots of sub-VIs (a Good Thing, usually), but they aren't included in the attachment (use a ZIP file to send everything together), so we can't suggest what the problem might be.
You attached both a Text file and an Excel file that might represent the same data.  [Oops, my mistake -- I was going to say Excel is not Write to Spreadsheet, but you say that you want both].  I presume you have the Write to Excel code elsewhere ...
Think a bit about how you want the program to "flow", and design it that way.  You might, for example, want to let the User choose which DUT to do next, or you might want to do them in strict order, 1 through 12.  You should probably have a series of Prompts ("Enter Capacitor Serial Number") followed by Verifications ("You entered C314159.  OK?").  Once all the units are loaded, what should the Operator do?  Does the test "stop itself", i.e. does each DUT know when it is finished?
This design "sounds like" a State Machine to me, which implies a Loop + Case Statement for the various States, and some rules for transition between States.  Since you are also getting data from the Front Panel, this might be a good candidate for what I call (for want of a better name) a User Event State Machine, where you include a User Event, "State", and keep most things in the single Event Loop.
Bob Schor

Similar Messages

  • Need help in creating multiple signature forms?

    need help in creating multiple signature forms that can be digitally signed in adobe reader

    Automator gets a bit unweildy when trying to vary things outside of what the actions provide.  Since you are already using an AppeScript in your workflow, might as well do the whole thing:
    set baseFolder to (path to desktop) -- the location to create the folder
    display dialog "Please provide a new folder name:" default answer "test"
    set folderName to text returned of the result
    repeat -- keep repeating until a number is returned
      display dialog "How many subfolders?" default answer "5"
      set theNumber to text returned of the result
        try -- test the result
          set theNumber to theNumber as integer
          exit repeat -- success
        end try
    end repeat
    tell application "Finder"
      try -- make new folder
        set newFolder to (make new folder at baseFolder with properties {name:folderName})
      on error number -48 -- skip errors if the folder is already there
        set newFolder to ((baseFolder as text) & folderName) as alias
      end try
      repeat with X from 1 to theNumber
        try -- make new subfolder
          make new folder at newFolder with properties {name:folderName & X}
        on error number -48 -- skip errors if the folder is already there
        end try
      end repeat
    end tell

  • Need help Setting up Multiple Static Ip , 1 for each port of the fios router

    Need help Setting up multiple Static Ip on my fios router
    I have been trying to figure out how to set up multiple ip in my fios router.
    However I kind of managed how to set up multiple static ip However the way I want it is for each port of my router to have an external ip signed to it. ( like 4 different modem in 1 )
    Verizon gave me 5 static ip but they can not help me how to set it up.
    Have anyone here done more then one static ip on different ports? I assume that the process will be the after the second static ip.

    You want to set up Static Nat. You will not assign the IP to a port, but rather to a local machine. Figure out what machines you want your IP's to go to. Under the firewall section you will see static nat. Pick the machine you want and enter one of the IP's you were assigned.

  • Need help with testing a package with Junit

    Hi guys,
    I am currently testing a bunch of files under a particular package. I have compiled all the files in this package successfully. I have written a testcase file which is in the folder above the package folder. I am using Junit to test this. I am getting errors stating that Java cannot find the package.
    To explain in detail.....My package name is coinbox which contain some classes which need to be tested. These files are in the folder "coinbox". My testcase file is in the folder which is directly above this folder. My testcase file has the statement import coinbox.* which will import all the classes in the coinbox package;
    But I am getting an error stating that the package coinbox cannot be found. I tried adding the package path to the CLASSPATH variable but still it isnt working.
    The command am using to run the Junit test cases is as follows:
    javac -cp junit.jar;junit.samples.CoinBoxTest-d CoinBoxTest.java
    Any help or suggestions regarding will be appreciated. The coinbox package is not being detected by java.
    Thanks in advance.
    Edited by: calvin_nr on Sep 30, 2007 5:12 PM

    It smells like a classpath problem. Post a sample of the code you are testing, the package statement in particular and the directory structure where the .class files are.

  • Noob needs help with hosting multiple sites

    Hello I am new to this multi hosting. I have looked on the forum for answers but haven't found any. I am trying to figure out how to host multiple sites. I have my dns working for my default site "example1.com", but need to know if I need to add another dns record for my second site. "example2.com". Also when I point to the new fold that has the second site in it and I assign it port 82 for testing purposes I get an error message saying 403 access forbidden. I need to find out how get permission to view the site for the public. Its in a separate folder on an external hard drive right now for testing purposes. Can any body help me or point me in the right direction? Thanks so much!!!
    -Kcam1999

    {quote}
    While what you are telling him is technically functional, it is not correct
    I beg to differ, Paul. You are the one that is not correct.
    CNAMES have been deprecated as of some years ago
    What? huh? really?
    Please show me any official document that states this (and not someone who just started a rumor because he didn't understand them). Indeed, the DNS RFC makes no such claim.
    {quote}
    I stand very much corrected. CNAMEs are not officially deprecated. Interestingly, your post cites precisely what happens when CNAMES used carelessly. How many transactions are needed to resolve Apple's CNAME chain below? RFC1912 (http://www.faqs.org/rfcs/rfc1912.html) has some recommendations that suggests Apple's own network folks have, like me and perhaps even others here, some learning to do. Is that a 'best practice?'
    {quote}> Then make sure you tell Apple since this site depends on the use of CNAMEs:
    dig discussions.apple.com
    discussions.apple.com. 492 IN CNAME discussions.apple.com.edgesuite.net.
    discussions.apple.com.edgesuite.net. 4427 IN CNAME a1399.b.akamai.net.
    a1399.b.akamai.net. 2 IN A 128.241.220.82
    a1399.b.akamai.net. 2 IN A 128.241.220.72
    In fact, it uses TWO CNAMES in a chain. Oh my.{quote}
    From RFC1912 (which I'm sure many have now read here), section 2.4 is as follows:
    {quote}... having chained records such as CNAMEs pointing to CNAMEs may
    make administration issues easier, but is known to tickle bugs in
    some resolvers that fail to check loops correctly. As a result some
    hosts may not be able to resolve such names.{quote}
    {quote}> It is not valid to say "don't use these because they could cause problems'. A records can be just as problematic, as can PTRs. Let's not even talk about MX.{quote}
    How, exactly, does is an A record problematic? No chains, no additional lookups, no wasted cycles...
    We differ here -- and if we are dealing with a newbie, we don't need to enter into unnecessary complexity UNTIL it is a requirement for their solutions.
    {quote}> There are many valid reasons to use CNAMEs in DNS, not least of which is the ease of moving a service if it uses CNAMEs. For example, if you have 10 A records all pointing at the same server and you want to migrate to a different machine you have to locate and update all 10 records. If they used a CNAME to the physical server you could move them all at once using a single change. This is especially important in cross-domain links where you may not control all the origin zone files.
    {quote}
    You're somewhat reaching here, and it is well beyond the scope of the OP's post or needs (well, until they tell us more about their needs, I suppose). There is nothing difficult about 'finding' and updating the necessary records. The final example you gave is a good one and I'll say THAT is an appropriate use of a CNAME, 'though there are other workarounds for it.
    Thanks for keeping me honest.

  • Need help with turning multiple rows into a single row

    Hello.
    I've come across a situation that is somewhat beyond my knowledge base. I could use a little help with figuring this out.
    My situation:
    I am attempting to do some reporting from a JIRA database. What I am doing is getting the dates and times for specific step points of a ticket. This is resulting in many rows per ticket. What I need to do is return one row per ticket with a calculation of time between each step. But one issue is that if a ticket is re-opened, I want to ignore all data beyond the first close date. Also, not all tickets are in a closed state. I am attaching code and a sample list of the results. If I am not quite clear, please ask for information and I will attempt to provide more. The database is 10.2.0.4
    select jiraissue.id, pkey, reporter, summary
    ,changegroup.created change_dt
    ,dbms_lob.substr(changeitem.newstring,15,1) change_type
    ,row_number() OVER ( PARTITION BY jiraissue.id ORDER BY changegroup.created ASC ) AS order_row
    from jiraissue
    ,changeitem, changegroup
    ,(select * from customfieldvalue where customfield = 10591 and stringvalue = 'Support') phaseinfo
    where jiraissue.project = 10110
    and jiraissue.issuetype = 51
    and dbms_lob.substr(changeitem.newstring,15,1) in ('Blocked','Closed','Testing','Open')
    and phaseinfo.issue = jiraissue.id
    and changeitem.groupid = changegroup.id
    and changegroup.issueid = jiraissue.id
    order by jiraissue.id,change_dt
    Results:
    1     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2008-07-16 9:30:38 AM     Open     1
    2     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2008-07-16 11:37:02 AM     Testing     2
    3     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2010-06-08 9:14:52 AM     Closed     3
    4     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2010-09-02 11:29:37 AM     Open     4
    5     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2010-09-02 11:29:42 AM     Open     5
    6     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2010-09-02 11:29:50 AM     Testing     6
    7     21191     QCS-91     Error running the Earliest-deadlines flight interface request/response message     2010-09-02 11:29:53 AM     Closed     7
    8     23234     QCS-208     System Baseline - OK button does not show up in the Defer Faults page for the System Engineer role      2008-10-03 10:26:21 AM     Open     1
    9     23234     QCS-208     System Baseline - OK button does not show up in the Defer Faults page for the System Engineer role      2008-11-17 9:39:39 AM     Testing     2
    10     23234     QCS-208     System Baseline - OK button does not show up in the Defer Faults page for the System Engineer role      2011-02-02 6:18:02 AM     Closed     3
    11     23977     QCS-311     Tally Sheet - Reason Not Done fails to provide reason for unassigned tasks     2008-09-29 2:44:54 PM     Open     1
    12     23977     QCS-311     Tally Sheet - Reason Not Done fails to provide reason for unassigned tasks     2010-05-29 4:47:37 PM     Blocked     2
    13     23977     QCS-311     Tally Sheet - Reason Not Done fails to provide reason for unassigned tasks     2011-02-02 6:14:57 AM     Open     3
    14     23977     QCS-311     Tally Sheet - Reason Not Done fails to provide reason for unassigned tasks     2011-02-02 6:15:32 AM     Testing     4
    15     23977     QCS-311     Tally Sheet - Reason Not Done fails to provide reason for unassigned tasks     2011-02-02 6:15:47 AM     Closed     5

    Hi,
    Welcome to the forum!
    StblJmpr wrote:
    ... I am attempting to do some reporting from a JIRA database. What is a JIRA database?
    I am attaching code and a sample list of the results. If I am not quite clear, please ask for information and I will attempt to provide more. Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and the results you want from that data.
    Simplify the problem as much as possible. For example, if the part you don't know how to do only involves 2 tables, then jsut post a question involving those 2 tables. So you might just post this much data:
    CREATE TABLE     changegroup
    (      issueid          NUMBER
    ,      created          DATE
    ,      id          NUMBER
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2008-07-16 09:30:38 AM', 'YYYY-MM-DD HH:MI:SS AM'),  10);
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2008-07-16 11:37:02 AM', 'YYYY-MM-DD HH:MI:SS AM'),  20);
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2010-06-08 09:14:52 AM', 'YYYY-MM-DD HH:MI:SS AM'),  90);
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2010-09-02 11:29:37 AM', 'YYYY-MM-DD HH:MI:SS AM'),  10);
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2010-09-02 11:29:42 AM', 'YYYY-MM-DD HH:MI:SS AM'),  10);
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2010-09-02 11:29:50 AM', 'YYYY-MM-DD HH:MI:SS AM'),  20);
    INSERT INTO changegroup (issueid, created, id) VALUES (21191,  TO_DATE ('2010-09-02 11:29:53 AM', 'YYYY-MM-DD HH:MI:SS AM'),  90);
    INSERT INTO changegroup (issueid, created, id) VALUES (23234,  TO_DATE ('2008-10-03 10:26:21 AM', 'YYYY-MM-DD HH:MI:SS AM'),  10);
    INSERT INTO changegroup (issueid, created, id) VALUES (23234,  TO_DATE ('2008-11-17 09:39:39 AM', 'YYYY-MM-DD HH:MI:SS AM'),  20);
    INSERT INTO changegroup (issueid, created, id) VALUES (23234,  TO_DATE ('2011-02-02 06:18:02 AM', 'YYYY-MM-DD HH:MI:SS AM'),  90);
    INSERT INTO changegroup (issueid, created, id) VALUES (23977,  TO_DATE ('2008-09-29 02:44:54 PM', 'YYYY-MM-DD HH:MI:SS AM'),  10);
    INSERT INTO changegroup (issueid, created, id) VALUES (23977,  TO_DATE ('2010-05-29 04:47:37 PM', 'YYYY-MM-DD HH:MI:SS AM'),  30);
    INSERT INTO changegroup (issueid, created, id) VALUES (23977,  TO_DATE ('2011-02-02 06:14:57 AM', 'YYYY-MM-DD HH:MI:SS AM'),  10);
    INSERT INTO changegroup (issueid, created, id) VALUES (23977,  TO_DATE ('2011-02-02 06:15:32 AM', 'YYYY-MM-DD HH:MI:SS AM'),  20);
    INSERT INTO changegroup (issueid, created, id) VALUES (23977,  TO_DATE ('2011-02-02 06:15:47 AM', 'YYYY-MM-DD HH:MI:SS AM'),  90);
    CREATE TABLE     changeitem
    (      groupid          NUMBER
    ,      newstring     VARCHAR2 (10)
    INSERT INTO changeitem (groupid, newstring) VALUES (10, 'Open');
    INSERT INTO changeitem (groupid, newstring) VALUES (20, 'Testing');
    INSERT INTO changeitem (groupid, newstring) VALUES (30, 'Blocked');
    INSERT INTO changeitem (groupid, newstring) VALUES (90, 'Closed');Then post the results you want to get from that data, like this:
    ISSUEID HISTORY
      21191 Open (0) >> Testing (692) >> Closed
      23234 Open (45) >> Testing (807) >> Closed
      23977 Open (607) >> Blocked (249) >> Open (0) >> Testing (0) >> ClosedExplain how you get those results from that data. For example:
    "The output contains one row per issueid. The HISTORY coloumn shows the different states that the issue went through, in order by created, starting with the earliest one and continuing up until the first 'Closed' state, if there is one. Take the first row, issueid=21191, for example. It started as 'Open' on July 16, 2008, then, on the same day (that is, 0 days later) changed to 'Testing', and then, on June 8, 2010, (692 days later), it became 'Closed'. That same issue opened again later, on September 2, 2010, but I don't want to see any activity after the first 'Closed'."
    The database is 10.2.0.4That's very important. Always post your version, like you did.
    Here's one way to get those results from that data:
    WITH     got_order_row     AS
         SELECT     cg.issueid
         ,     LEAD (cg.created) OVER ( PARTITION BY  cg.issueid
                                          ORDER BY      cg.created
                  - cg.created            AS days_in_stage
         ,       ROW_NUMBER ()     OVER ( PARTITION BY  cg.issueid
                                          ORDER BY      cg.created
                               )    AS order_row
         ,     ci.newstring                     AS change_type
         FROM    changegroup     cg
         JOIN     changeitem     ci  ON   cg.id     = ci.groupid
         WHERE     ci.newstring     IN ( 'Blocked'
                           , 'Closed'
                           , 'Testing'
                           , 'Open'
    --     AND     ...          -- any other filtering goes here
    SELECT       issueid
    ,       SUBSTR ( SYS_CONNECT_BY_PATH ( change_type || CASE
                                                             WHEN  CONNECT_BY_ISLEAF = 0
                                           THEN  ' ('
                                              || ROUND (days_in_stage)
                                              || ')'
                                                         END
                                    , ' >> '
               , 5
               )     AS history
    FROM       got_order_row
    WHERE       CONNECT_BY_ISLEAF     = 1
    START WITH     order_row          = 1
    CONNECT BY     order_row          = PRIOR order_row + 1
         AND     issueid               = PRIOR issueid
         AND     PRIOR change_type     != 'Closed'
    ORDER BY  issueid
    ;Combining data from several rows into one big delimited VARCHAR2 column on one row is call String Aggregation .
    I hope this answers your question, but I guessed at so many things, I won't be surprised if it doesn't. If that's the case, point out where this is wrong, post what the results should be in those places, and explain how you get those results. Post new data, if necessary.

  • Need Help in SAP Multiple  UOM

    Dear Expert ,
                     Please provide solution for this scenario .as follows
    One of my customer need dual inventory system for the same item . And the condition are below
    * Granites Manufacturing company
    * They want to maintain serial number for individual slap wise ( all the slap not equal length * Height * width )
    * Invoice  should be in CBM (Cubic Meters )  only ( 1590.34 * 10000)
         With the above condition if we maintain the inventory UOM is CBM then we can't able enter serial number. For  example ...
    Example-1
    Item - A Serial Numbered Item and UOM in CBM
    Now i am going to add Good receipt (test scenario) for Item - A ,qty  1590.34 CBM  while adding the document it will show "Cannot select serial numbers; fractional quantity exists in row 1" like this error. so we can't able to maintain serial number
    Example - 2
    the same item we are maintaining the UOM as "nos"  there is no problem with serial number . But while booking the invoice we can't able to book per CBM or SF (squre meter )  UOM it should be number only. same case we can't able to calculate the price according to the CBM .
    ""If u need any additional information let me know""
    Please provide any solution for the process.
    Thank you
    Sudhir.J

    Hi Sudhir,
    Let me restate what I think your question is to see if I have the right understanding.  Your customer manufactures slabs of granite and they would like to be able to identify each slab individually, and to be able to transact in terms of Cubic Meters and/or Sqare Meters and/or "NOS" (I assume that means "numbers" or "units"?). This is complicated by the fact that each slab has different dimensions.  Is that basically it?  If so it sounds like a perfect opportunity to use batch specific UOMs.  With that functionality you can set up each slab as a batch and then define batch specific UOMs for each batch to account for the different dimensions.
    Here is an article that I think does a good job of explaining how the functionality works:
    Batch Specific UOM Inventory Management: Stock Keeping with Dynamic Conversion Factor http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a021e088-3428-2d10-799d-a69349248f10?quicklink=index&overridelayout=true
    I hope this helps.
    Dave

  • Need help in displaying multiple attachments in a OAF Page

    Hi,
    I need to display attachemts of requisition line in a OAF Page(Notification Detials Page)and the attachments can be more than one.My custom VO returns it as a single string like url1, url2.. etc.
    I need to show them as seperate links.
    I tried using the Item Style as LINK.But it is not working.It is prefixing the server url before the View Attribute and creating a single link.
    Any help in this regard will be appreciated.Thanks in advance.
    Srini

    Hi skeerthi,
    If you are using the core attachments table (FND_ATTACHED_DOCUMENTS and the like), you can have a look on the Developer's Guide on chapter 4: Implementing Specific UI Features, section "Attachments", there is a seeded region available for displaying multiple attachments.
    If you are not, then i'd recommend refactoring :D... Just kidding, it would be nice to use the core feature, but if the table is custom, and the links are stored separated by commas, you will have to write controller code to implement that. That can be done by:
    1) Creating an Application module method that uses StringTokenizer to tokenize the attribute String (use getViewObject().getCurrentRow().getAttribute() to get the comma-separated value) and return that to the controller
    2) In the controller, receive the StringTokenizer and for each token, use the api createWebBean() to create an OALinkBean and add it to a layout region using addIndexedChild() api.
    This way you will dinamically create a Link for each attachment. If your layout region is, for example, tableLayout, you can create a rowLayout for each token, then create a Link, add the link to the row layout and finally add it to the tableLayout. By doing so, you will create a table-style attachment region.
    Hope it Helps
    Thiago

  • Need Help on Joining multiple tables in Golden Gate

    Hi,
    Can you please help me with some examples on joining multiple tables in Golden Gate. i.e, my requirement is to Join Table 1 & Table 2 in Source and Load it in Target with 10 fields from Table 1 & 5 fields from Table 2 based on the join condition between Table 1.key = Table2.key
    I have been trying to do that using SQLEXEC command in Golden Gate. But, is there a way I can do this in the Extract parameter file?
    Thanks for your time
    Regards
    Suresh

    Hi,
    Thanks a lot for the prompt reply. I am able to do that for the below scenario
    Source.T1.Field1
    Source.T1.Field2
    Source.T2.Field1
    Source.T2.Field2
    Target Table
    T1.Field1, T1.Field2, T2.Field1, T2.Field2.
    But, if I already have T2.Field1 in T1 table, then T1.Field1 takes the precendence and getting loaded. i.e., I wanted to join the table 1 & Table 2 and based on the matching condition, I will need to populate the data either from T1 or T2.
    Hope you got my requirement.
    Below the Data Dump file & Replicat File.
    EXTRACT dpump
    USERID ********, PASSWORD ********
    RMTHOST *******, MGRPORT 7809
    RMTTRAIL /oracle/gg/dirdat/rt
    --PASSTHRU
    TABLE TABLE1,
    SQLEXEC (ID LOOKUP,
    QUERY "SELECT FIELD1 FROM SOURCE.TABLE2 WHERE FIELD1 = :v_field1",
    PARAMS ( v_field1 = field1 )),
    TOKENS (tk_field_1 = @GETVAL (lookup.field1));
    Replicat file
    REPLICAT repjoin
    ASSUMETARGETDEFS
    HANDLECOLLISIONS
    USERID *******, PASSWORD ********
    MAP SOURCE.T1, TARGET TARGET.GG_TABLE_T1,
    COLMAP ( USEDEFAULTS ,
    field1 = @token ("tk_party_id"));
    I eventually wanted to join like below.
    select t1.field1, t1.field2, t2.field1 from t1, t2
    where t1.field1 = t2.field1;
    Thanks for your time again
    Regards
    Suresh

  • Need help to check multiple conditions and set AD user properties

    hello All,
    I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.   
    samaccountname,Othertelephone,language,employeeId
    abcd                      XXXXXXXXX     EN         SMS
    Now I need to check following conditions:
    Othertelephone =  if this should not be blank ,if so display message " filed is blank " and no changes should allowed in further attributes and  it should abort
    language= this field should only contain  EN or FR value if No display msg " error in language field " and no further changes to  the user attributes and it should abort
    employeeID= this field should only contain OTP or SMS value if Not filled display msg " error in Employee ID field " No further changes to the user attributes and it should abort
    changes to user will permit  when all attributes is filled. I do the testing taking samaccountname , othertelephone and employeeId into consideration but it did not helped. Getting error
    THIS is complete Code Of my Task where you need my focus on conditions
    group=Get-QAdGroup -SearchRoot  "domain/vpn group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq "")
       Write-Host "SAMACCOUNTNAME is blank"   -fore red
    else
     $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains  $group.DN)
     Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    else
     Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -eq "")
    Write-Output "$($_.samaccountname) telephone Number is blank"
    else
    if ($_.EmployeeID -notmatch 'OTP' -and 'SMS')
    Write-Output "$($_.samaccountname) EmployeeID field is not correctly field")
    Else
    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othertelephone;EmployeeID=$_.EmployeeID}
    error
    Set-QADUser : Access is denied.
    At C:\Users\g512263\AppData\Local\Temp\5f8facb6-f942-4c3d-b924-8953d9a706da.ps1:37 char:8
    +                    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othe ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-QADUser], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.SetUserCm
       dlet

    <title>Untitled - PowerGUI Script Editor</title>
    Hello JRV,Thank you for your time, There is no comma in my csv file , I double check. below I wrote a simple code.I removed all the conditions and just try to set the EmployeeID and it is working fine with same file.But as soon as I add conditions it gives access denied. as well as if I remove employee Id from your previous code and only try to set telephone No. still it gives access denied.I am just trying to figure out what is causing this.
    $group=Get-QAdGroup -SearchRoot "com/Group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq ""){
    Write-Host "SAMACCOUNTNAME is blank" -fore red
    }else{
    $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains $group.DN){
    Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    }else
    Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -ne "")
    Set-QADUser $user.SamAccountName -ObjectAtt Aributes @{telephonenumber=$_.othertelephone}
    } else
    Write-Output "$($_.samaccountname) phonenumber is blank"
    If ($_.EmployeeID -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{EmployeeID=$_.EmployeeID}
    }else
    Write-Output "$($_.samaccountname) EmployeeID field is blank"
    If ($_.Preferredlanguage -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{Preferredlanguage=$_.preferredlanguage}
    } else
    Write-Output "$($_.samaccountname) PreferredLanguage field is blank"

  • Need help, cycle testing...

    Hi all,
       First off i would like to just say i am a complete labview noob!
    I am having quite a bit of trouble getting a vi together to run a pressure cycle test.
    My workplace has some, what seems old school hardware and software. 
    I am trying to create a vi that reads pressure from a pressure transducer which when is greater than a desired pressure it will turn on/off relays on a relay board made by an old co-worker. The relays are what turn on/off a pump.  I assume this would have to be some kind of a loop but like previously stated, i am new to this and i am very stuck, confused, and most of all lost with no solution... here is what i am working with:
    Software:
    MAX vers. 4.5
    LabVIEW 7.1
    Hardware:
    SCXI 1000 Chassis
    SCXI 1600
    SCXI 1102->1303 (thermocouple readings)
    SCXI 1121->1321 (pressure transducer)
    SCXI 1160->1324 (switch)
    Thus far my understanding is that the SCXI 1160 connected with the 1324 is the switch board which then powers my relay board.  I just cannot understand or find out how can i implement this in my vi to turn things on and off. 
    I appreciate any help or guidance in the right direction... I can take a picture of the block diagram i currently have if needed which is most likely not helpful

    OK you've got some basic misconceptions about LabVIEW and, more generally, about programming.  So I'll try to explain what your program does and point you to the LabVIEW help and tutorials.
    This section of code really make little sense:
    In it it read a value from the DAQ and passes it into the loop after the loop starts the value is a loop invariant constant (it does not change) so if Pressure is not greater than High limit the loop spins very fast consuming the entire processor core it runs on until the user changes the value of High limit to make stop = True.
    This section Writes on T boolean to a DO Task
    HOWEVER, since there is no data dependancy between these two sections of code LabVIEW is free to spawn a new thread and both will execute at the same time. (LabVIEW is great for making multi-threaded applications - even when you didn't want it to)
    What you want to do is read the Pressure repetedly at a meaningful rate and write the DO task based on the comparison. Then Exit when the user wants to exit.  A state machine would be a good choice for this vi.  to add scalability to the project but, you could get away with a simple while not exit loop with a DAQmx Read a comparison and a DAQmx write in it with task initialization prior to the loop and clean-up code for the tasks after the loop.   Use the New vi from template to select a state machine pattern and look at the shipping examples to help understand how to use these patterns in your code.
    Jeff

  • Need help in recording multiple seperate tracks

    hello, i've used cool edit and now audition to record for the last eight years or so. however, i've never gone byond tracking more then one mic at a time in the past. with some upcoming projects i will be tracking a full band and need to record multiple mics (most challenging being drums) and i need to be able to assign each mic to its own seperate track in real time.
    i will be using a PreSonus firebox which was four inputs. i can make do with four mics just fine. my only problem is i can't find any info and i'm not even sure audition allows for simultaneous multi channel recording. it is imperative i be able to have separation for each mic for mixing. any advice/help? will i be forced to find another program?
    thanks in advance,
    joel

    Audition handles multitrack recording just fine.
    You don't say what version of Audition you have (there are variations in how to set up the recording) but if you're on the current 3.0 version, you'd:
    Under Edit/Audio Hardware Set up, click on the Multitrack tab at the top.  On the "Audio Driver" menu, select the appriopriate Presonus driver.  Under "Default Input" Select the Presonus interface.  Also select it on the Output menu if you want to outuput sound that way for monitoring.  Click Okay.
    Go to Multitrack view in the main programme.
    Work down the inputs for each track (marked with a right-facing arrow) and select "Mono" and the Presonus output you wish to go to that track.  If you want to output back to the Presonus, do the same with the output selection, otherwise just leave it to "Main".
    (At this point, I suggest you save a session as "Basic multi setup" or similar to make it faster for the next take--then do a "Save As" for the actual recording you're about to do.)
    Click the "R" button on each track you wish to record in (you don't have to do all tracks every time) to arm for record.
    Click the main Record button to actually start recording.
    If you have an earlier version of Audition or Cool Edit Pro, the procedure is similar but some of the controls are accessed in different ways.
    Bob

  • Need Help backing up multiple iOS devices to one Windows PC computer

    So, first off, let me say that I have been scouring these forum posts as well as reading many google search results for what I am about to ask here, but I have not been able to find a definitive answer as to go about what I am trying to accomplish.
    Some background – we are using 2 iphones both using the same Apple ID.  We have no need to create separate Apple IDs as this has been working just fine for us for the past 3-4 years.  Everything from text messaging, facetime, to purchases I have setup just the way we like it and we have no issues with anything conflicting.
    So, here goes.
    I would like to use one Windows computer using the same user account on said PC to be able to backup both my iphone and my wifes iphone.
    Here is the issue I am running into.  I have used iTunes to backup my wifes iphone and all went as expected.  What I then tried to do was plug my iphone into the computer and attempt to backup my iphone but problem is, I get only the option to setup the phone as new or restore from my wifes backup, neither of which I want to do.
    So, I thought about using the trick to create another library by holding down the Shift Key while starting iTunes and then selecting Create new library.  But when I then plug in my iphone and fire up and select the newly created library to backup my iphone to, I still get only get the option to either setup as new or backup from my wifes iphone.
    Am I doing something wrong when creating this new library or is what I am trying to do not possible.
    I know I can create another user account on the PC and the backup will then work just fine as I had to do it this way for a family member because I could not get the second library option to work the way I am trying to make it work.
    In this post I created, https://discussions.apple.com/thread/6652211 I got no responses that helped me figure this out.
    So, if anyone can set me straight on how to use iTunes to backup my devices using the same PC user account with all Apple devices using the same Apple ID I would greatly appreciate it.
    Step by step would really be helpful if it is at all possible.
    - Dan

    There are experts here with far greater knowledge than I
    but here goes
    This is where windows stores the iTunes back up files
    Windows Vista and Windows 7:
    \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    So - if you cut the file and paste it elsewhere (Desktop or Documents or a flash drive) - will the iTunes be fooled into creating a second one?
    Of course you would have to label them well in case you need to retrieve them later - but I guess worth a try
    If it does not work you can always plop the prior files back to where you pinched them from
    Please let us know
    Thanks

  • Need help in deleting multiple tables

    Hi,
    In one of my scenario i want to delete One record from the table, but there are some child and sub child exist for the table. And the on delete cascade is not set fro any of the table.
    Structure of my table,
    Table-1
    tab1_pk
    tab1_name
    Table-2
    tab2_pk
    tab1_pk
    Table-3
    tab3_pk
    tab2_pk
    i want to delete the record from Table-1 and all the related record of Table-2 and Table-3 in a single query.
    Plz help

    Dear 786725,
    What has just came to my mind at first sight is that you can create a trigger for your approach. I don't think that a single query will delete some rows from more than one table.
    Please go to the http://tahiti.oracle.com , select your database version and search for the after trigger. Hint: You may need to use the FOR EACH ROW clause and you again may need to use :old :new parameters in the trigger to have the information of what has just been deleted from the relevant table.
    Hope That Helps.
    Ogan
    Edited by: Ogan Ozdogan on 05.Ağu.2010 19:00
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#SQLRF01405
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b31695/dialogs.htm#sthref454
    4.24 Create Trigger
    The following information applies to a trigger, which is which is a stored PL/SQL block associated with a table, a schema, or the database, or an anonymous PL/SQL block or a call to a procedure implemented in PL/SQL or Java. The trigger is automatically executed when the specified conditions occur.
    Schema: Database schema in which to create the trigger.
    Name: Name of the trigger. Must be unique within the database.
    Add New Source in Lowercase: If this option is checked, new text is entered in lowercase regardless of the case in which you type it. This option affects only the appearance of the code, because PL/SQL is not case sensitive in its execution.
    Trigger tab
    Trigger Type: The type of object on which to create the trigger: TABLE, VIEW, SCHEMA, or DATABASE. (The remaining items depend on the type of trigger.)
    Table Owner or View Owner: For a trigger on a table or a view, the name of the owner of the table or the view.
    Table Name or View Name : For a trigger on a table or a view, the name of the table or the view.
    Before or After: For a trigger on a table, select Before to cause the database to fire the trigger before executing the triggering event, or select After to cause the database to fire the trigger after executing the triggering event.
    Statement Level or Row Level: For a trigger on a table, Statement Level fires the trigger once before or after the triggering statement that meets the optional trigger constraint defined in the WHEN condition; Row Level fires the trigger once for each row that is affected by the triggering statement and that meets the optional trigger constraint defined in the WHEN condition.
    Insert, Update, Delete: For a trigger on a table or a view, Insert fires the trigger whenever an INSERT statement adds a row to a table or adds an element to a nested table; Update fires fire the trigger whenever an UPDATE statement changes a value in one of the columns specified in Selected Columns (or in any column if no columns are specified); Delete fires the trigger whenever a DELETE statement removes a row from the table or removes an element from a nested table.
    Referencing - Old: For a trigger on a table, the correlation names in the PL/SQL block and WHEN condition of a row trigger to refer specifically to old value of the current row.
    Referencing - New: For a trigger on a table, the correlation names in the PL/SQL block and WHEN condition of a row trigger to refer specifically to new value of the current row.
    Available Columns: For a trigger on a table, lists the columns from which you can select for use in an Update trigger definition.
    Selected Columns: For a trigger on a table, lists the columns used in an Update trigger definition.
    When: For a trigger on a table, an optional trigger condition, which is a SQL condition that must be satisfied for the database to fire the trigger. This condition must contain correlation names and cannot contain a query.
    Schema: For a trigger on a schema, the name of the schema on which to create the trigger.
    Available Events: For a trigger on a schema or database, lists events from which you can select for use in the trigger definition.
    Selected Events: For a trigger on a schema or database, lists events used in the trigger definition.
    DDL tab
    This tab contains a read-only display of a SQL statement that reflects the current definition of the trigger.
    "

  • I need help with making multiple measurements

    Hello,
       I have photoshop cs6 extended addition and was told photoshop would work for the research application I need but so far I am finding it very difficult to do what I want.  Basically, I need to be able to meausre multiple lines (the red ones in the screen shot) of an image precisely, and make sure that the lines I measure are documented so that they are actually visiable (so not just with the ruler tool) on the screen and labeled.  Does anyone have any idea how to approach this problem?  See image for example.  I need the lengths (converted with the 2 micrometer scale at the bottom of the image).  When I use the info, it gives me the lengths, but I can't save them, or look them up at a different time.  Also, when using the line tool, then doing the "record measurement" it does not give me the length of the line but insted acts like it is a thin rectangle and gives me a height (which does not seem to be the same as if I used the measurement tool and put it next to the line, which is an idea I have, but not as accurate) and a width.  Ideas?

    Curt,
       I tried what you said but am still confused.  First, while I will be viewing a few pictures, I am just concerned with getting the process to work with ONE picture measuring all the lines I need for it before worrying about other pictures.  I don't understand what you mean when you say making a scale for each picture of any size.  Its not about plotting a scale on the picture (I already have that in the form of the 2 micron line) its a matter of drawing new lines on top of the picture and calculating the lengths of those lines (like the red lines I put in the original screen shot).  Do you understand?
    After I make the box around the 2 micron scale in the image, then press copy then press paste, nothing seems to happen.  So when I Click NEW and it opens a new window (for a completely new workspace) nothing different happens.  You meant to click "New" after first going to the top and selecting "file" right?
    Since I am having trouble with that step, im not sure I can do the rest.
    For step 2, What do you mean by "In background content click the dropdown box and select Transparent."   ALl I see is a layer called background on the right.  I can right click on it and set the opacity to 0, but I don't see the term 'transparent' to actually select.
    Like for step three, how could I delete the selection I made by dragging to the trash?  Once I press on it, it resets.....
    Ok not sure whatelse I can ask since I couldn't really do the first step anyways....

Maybe you are looking for