Multiple UID's of ZERO

I need some feedback from the SysAdmin/Security community about allowing multiple user accounts with the uid of 0.
I am aware of a situation where this practice will be instated in one of the groups where I work and I would like to prevent that if possible.
Please, respond with your pros and cons on this issue. All feedback will be appreciated, so even if someone has already responded with basically the same comments that you would make, please, at least make a comment of yay or nay.
Thank you.

I would highly recommend against using multiple UID 0 accounts on the system. If multiple people need root access or equivelent, I think RBAC would be the best way to go.
sudo would be another option, but is not included as part of the Solaris OS.

Similar Messages

  • Zero value in Amount field during transaction upload into BPC

    Hi Experts,
    When I run DM package to load transaction data from BW to BPC,I am getting warning error with rejected list which contains amount field as zero value.
    Is it possible to load records with amount value as Zero.My current EPM version is 10 SP14 Patch 1.
    Currently my cube is in load mode .I have understood that during transaction data upload the cube should be in load mode and during inputting data using input forms it should be in planning mode.Please correct me if I am wrong.
    Thanks,
    Raju

    Thanks for your quick turn around.
    I have multiple keyfigures which have zero values in some records hence I am getting zero values in Amount field.
    Shall I mark Real-Time  data Target can be planned; data loading not allowed always.
    Regards,
    Venkat

  • GREP expression to remove trailing zeros?

    Hi,
    I have to find and change multiple entries of trailing zeros. Please find sample below to understand type entries need to be change.
    1.00              -> 1
    0.01200         -> 0.12
    4.50              -> 4.5
    0.0040           -> 0.004
    Please help me how can i use grep to find and change in CS6
    Thanks in Advance.
    Sanjay

    Peter,
    Right! In 3 steps (text in black)
    1/ Exclusion if no decimal part:
    Find: ,?(?<![\.\d])(\d+)(?![\.\d])
    Replace: color X
    2/ Treatment:
    Find: (?<=[\.\d])\.?0+(?=\s)
    Search Format: color black
    Replace: nothing
    3/ Treatment:
    Search Format: color X
    Replace Format: color black
    Seems to work. To be validated! 

  • I need help with proper DNS setup for 10.5.8 Server

    I'm administering a 10.5.8 server that I sold and setup about a year ago. I'm experiencing issues with getting iCal server to be happy. All of the clients are running 10.5.8, but I'm running 10.6.1. I've heard from others that connecting iCal in 10.6 to a 10.5 iCal Server should be no problem.
    I'm beginning to think that I have DNS issues. Probably because I'm not and never have been 100% certain how to set it up completely correctly. I used to be able to get Kerberos tickets, but now I can't. With the new "Ticket Viewer" in 10.6, it asks for two bits of information. First is "Identity" where I'm guessing I should put [email protected] and then password. When I do this I get an alert dialog that says "Kerberos Error -- cannot resolve network address for KDC in realm example.com"
    The server is a Mac Pro tower with two Ethernet ports. En2 is connected directly to the Internet and has a static IP with a domain name assigned to it. We'll call it "example.com" for the purposes of the discussion. The En1 is connected to the network switch and has a static LAN IP of 192.168.1.250. All clients inside and outside are able to reach the server via domain name for WWW & AFP, no problem.
    nslookup on the static IP address returns "example.com" and nslookup on "example.com" returns the correct static IP address. Open Directory is running and happy including Kerberos. The LDAP search base is "dc=example,dc=com". The LDAP search base is a concept I haven't quite grasped, so I'm just going to assume it's correct.
    The domain name is hosted outside by a service provider that forwards all "example.com" requests to the server with the exception of mail.
    In DNS, I have three "sections" that look like this:
    Name Type Value
    1.168.192.in-addr.arpa. Reverse Zone -
    192.168.1.250 Reverse Mapping example.com.
    000.000.00.in-addr.arpa. Reverse Zone -
    000.000.000.000 Reverse Mapping example.com.
    com. Primary Zone -
    mail.example.com. Alias mail.our-email-isp.com.
    example.com. Machine Multiple values
    www.example.com. Machine Multiple values
    NOTE: the zeros aren't actually zeros, they are the static IP assigned to the server/domain
    When I select the top element "1.168.192.in-addr.arpa." down below "Allows zone transfer" is NOT checked. Nameservers shows the zone as "1.168.192.in-addr.arpa." and the Nameserver Hostname as "ns.example.com."
    When I select the next line down "192.168.1.250", Resolve 192.168.1.250 to: example.com.
    When I select the "000.000.00.in-addr.arpa." element, it has the same settings -- nameservers "000.000.00.in-addr.arpa." and "ns.example.com."
    When I select the next line down (our static IP), Resolve 000.000.000.000 to: example.com.
    When I select "com." the admin email is populated with a valid email address, Allows zone transfer is NOT checked. In nameservers, Zone is "com." and Nameserver Hostname is "example.com." The mail exchangers are mail2.our-email-isp.com. priority 10 and mail.our-email-isp.com. and priority 20.
    When I select the machine "example.com." it shows both the real-world static IP and the 192.168.1.250, same with "www.example.com.".
    Am I doing something wrong with this setup? Should "com." be the primary zone or should that be "example.com." ???
    I've been thinking about getting rid of the DNS entry for the 192.168.1.250 address altogether, but will the clients in the office suffer performance issues??? I do not think that the client workstations are configured to get DNS from the server anyway. Should the "www.example.com." record be a Machine record or should it be an alias record?
    Any help you have to offer is greatly appreciated! Thanks!
    In the meantime, I'm going to look around and see if I can understand "Allows zone transfer" and LDAP Search base a bit better.

    Okay, I found a lovely article at the following address which I think helps me to clarify what I'm doing wrong. Despite that, I'd still like to have any feedback you have to offer.
    http://www.makemacwork.com/configure-internal-dns-1.htm
    Also, when editing DNS entries, Server Admin likes to set the nameserver to "ns." -- whatever your domain is. Should I be overriding that and if so, replace it with what?

  • Performance degradation in pl/sql parsing

    We are trying to use xml pl/sql parser and noticed performance degradation as we run multiple times. We zeroed into the following clause:
    doc := xmlparser.getDocument(p);
    The first time the procedure is run the elapsed time at sqlplus is something like .45sec, but as we run repeatedly in the same session the elapsed time keeps on increasing by .02 seconds. If we log out and start fresh, we start again from .45sec.
    We noticed similar degradation with
    p := xmlparser.newParser;
    but we got around by making the 'p' variable as package variable, initializing it once and using the same for all invocations.
    Any suggestions?
    Thank you.

    Can I enhance the PL/SQL code for better performance ? Probably you can enhance it.
    or, is this OK to take so long to process these many rows? It should take a few minutes, not several hours.
    But please provide some more details like your database version etc.
    I suggest to TRACE the session that executes the PL/SQL code, with WAIT events, so you'll see where and on what time is spent, you'll identify your 'problem statements very quickly' (after you or your DBA have TKPROF'ed the trace file).
    SQL> alter session set events '10046 trace name context forever, level 12';
    SQL> execute your PL/SQL code here
    SQL> exitWill give you a .trc file in your udump directory on the server.
    http://www.oracle-base.com/articles/10g/SQLTrace10046TrcsessAndTkprof10g.php
    Also this informative thread can give you more ideas:
    HOW TO: Post a SQL statement tuning request - template posting
    as well as doing a search on 10046 at AskTom, http://asktom.oracle.com will give you more examples.
    and reading Oracle's Performance Tuning Guide: http://www.oracle.com/pls/db102/to_toc?pathname=server.102%2Fb14211%2Ftoc.htm&remark=portal+%28Getting+Started%29

  • Itunes and ipod freeze during sync

    hello,
    firstly, i would like to thank all you kind souls who post to this forum with very helpful suggestions. you have helped me with many past difficulties.
    my present issue concerns transferring songs from itunes to my ipod (4th generation). here's the story:
    on friday, my ipod started acting funny (skipping songs, etc.). by saturday, it would no longer do anything (folder with !, resetting did not help). this had happened to me before so i did not freak out and figured i just had to restore (that had worked the first time around). however, when i plugged in my ipod to my computer (powerbook g4, just three weeks old), it was not recognised and i was prompted to initialize the disk. i then came to this forum and read pretty much everything related to this kind of problem. countless resets, erases, partitions, etc., later, i was able to get the ipod software back on the ipod. it seemed all normal but there was no music on it (makes sense since i'd restored it). but then...when i plugged in my ipod to sync it with itunes, it would freeze at a given song (not always the same one, sometimes 31 songs into it, sometimes 500). i came back to this forum and read that i should reset my ports, which i did. didn't help, the sync still freezes both the ipod and itunes.
    so that's where i'm at: i have the ipod software on the ipod, but i can't sync it with itunes (i.e. i can't get my music onto it). my brother thinks i have bad blocks (or sectors). is this a possibility? the ipod does make some noise (not sure whether it's the infamous clicking...).
    so here are my questions:
    1) is there anything i haven't done yet that could get the ipod to sync with itunes?
    assuming i have done everything and the problem is with my ipod's hard disk:
    2) would a program like disk warrior potentially be able to fix the ipod?
    3) would it cost me less to have the ipod serviced than to buy disk warrior?
    4) is there somekind of open-source or freeware disk repair utility that could perhaps repair my ipod's disk?
    thanks for reading and i really look forward to any suggestions.
    gen
    p.s. the ipod's more than a year old, so no longer under warranty.

    Okay, I got it to work tonight...
    My U2 iPod would freeze while syncing. I restored and tried to sync and it would freeze on different song #'s. All the while I heard a clicking sound coming from the drive that I never noticed before. It would just click once in a while, not repeatedly.
    My fix: (a version of the carpet drop) While the iPod was on and spinning, I held it tight with my right hand, facing me and smacked it's side into the palm of my left hand, simulating the amount of force that it would incurr from a waist-high drop onto carpet.
    Now, this force was sheer approximation, being that it would be too time consuming and difficult to calculate this exact amount of force. I mean, my waist may be higher/lower than the original carpet-dropper, and not to mention the plushness of the carpet! Who knows if he did it on Shenandoah Shagg or maybe just some Bermuda Burr Rug?!
    By the way, the problem started after being left out in the car on recent cold nights... hmmmm, my iPod thinks me a jerk.
    Anyways, here are some previous attempts at fixing my situation (in no particular order):
    1) restored from 5 different iPod updates (2004-11-15, 2005-02-22, 2005-06-26, 2005-09-23, 2005-11-17)
    2) tried to fix with Disk Utility
    3) tried to fix with Tech Tool Pro
    4) tried to fix with Disk Warrior
    5) tried to initialize multiple time (even writing zeroes)
    6) manual sync
    PB-15"Al; G4-DP500   Mac OS X (10.4.3)  

  • How to write a PCR to calculate 10% of Tax on Gross Amount

    Hi Experts,
    I have a scenario, which came from my client that, tax(10%) had to be calculated on gross amount, need to be deducted from the gross and should shown in deductions part of remuneration statement.
    Do I need to write a PCR for this r not?
    if PCR where i need to insert in Payroll Schema?
    Do I need to create a Wage Type?
    Can you please help me in, to do this process.
    Awaiting for your valuable suggestions and replies.
    regards,
    K. Srinivas

    Hi,
    Please create a wage type ABCD by copying MVT1
    write a PCR
    /101
    amt= /101
    amt*.10
    addwt ABCD
    write one more PCR
    HR-IN: Voluntary tax deduction
    |- *
      |-ABCD  Over writeITax
        |---ELIMI *    Elim.time period ID
        |---ADDWTE*    RT   Results table 
        |---AMT-S /460 Subtraction        
        |---ADDWT /460 OT   Output table  
        |---RTE=  /4ME Set                
        |---AMT=*      Set                
        |---MULTI ARA  Multipl.amt/no/rate
        |---ZERO= R    AmtNumRteTime = 0  
        |---AMT/100000 Division           
        |---SUBWT /4MT OT   Output table  
        |---AMT-S /4ME Subtraction        
        |---ADDWT /4ME OT   Output table  
        |---AMT=Z /4ME Set                
        |---AMT=*      Set                
        |---RTE=  /4MH Set                
        |---AMT=*      Set                
        |---MULTI ARA  Multipl.amt/no/rate
        |---ZERO= R    AmtNumRteTime = 0  
        |---AMT/100000 Division           
        |---SUBWT /4MT OT   Output table  
        |---AMT-S /4MH Subtraction        
        |---ADDWT /4MH OT   Output table  
        |---AMT=*      Set                
        |---RTE=  /4MS Set                
        |-" RTE?0      Comparison         
          |-" *
          | |---AMT-S /4MT Subtraction        
          | |---ADDWT /4MT OT   Output table  
          |-" >
            |---MULTI ARA  Multipl.amt/no/rate
            |---ZERO= R    AmtNumRteTime = 0  
            |---AMT/100000 Division           
            |---AMT-S /4MS Subtraction        
            |---ADDWT /4MS OT   Output table  
            |---SUBWT /4MT OT   Output table  
            |---AMT=*      Set                
            |---ADDWT /4MT OT   Output table 
    Insert this two PCR in subschema INN1 after INTAX function  and endif, if line.
    regards,
    Balaji

  • Export file format

    Hi All,
    I want to export data in column format using calculation script. Currently Account, Period and scenario is dense and others are sparse in my essbase database. I am exporting data for actual scenario, multiple accounts and level zero periods. In the export file essbase automatically setting level zero period (Week 1 to week 53) in column header and other 2 dimension in row. I want to change the export file format using calculation. I want scenario to be column header and other all dimension to be in row. Is there any way I can specify the export file format. I used all the export setting but nothing is working.
    Your response will be appreciated.
    Thanks,

    If scenario is dense and you are using the DATAEXPORT calc command try
    SET DATAEXPORTOPTIONS {DATAEXPORTCOLHEADER Scenario;};
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Need better understanding of password cache

    This issue has also been submitted to iPlanet support.
    In NSMS 4.15 p6, Solaris 2.6, two IMAP daemons, two mshttpd daemons:
    I am trying to get a better understanding of password caching. See service.authcachettl and service.authcachesize in the NSMS tuning guide.
    The guide says "The authentication cache ... is not shared between different processes". It also says "Its value should be greater than or equal to the number of users who have their mailbox on the machine to avoid pushing entries out of the cache before the TTLs expire."
    Our user population is about 60% webmail, 40% IMAP. I turned logging for each of these to Debug level to see the password caching numbers. Here is a log entry for each of our four processes:
    HTTP:
    httpd[3568]: General Debug: Password cache: 7344 entries, 20635 hits, 57565 misses, 22651 collisions.
    httpd[3564]: General Debug: Password cache: 7255 entries, 20573 hits, 57327 misses, 21798 collisions.
    IMAP:
    imapd[3515]: General Debug: Password cache: 4109 entries, 250843 hits, 73057 misses, 16132 collisions.
    imapd[3522]: General Debug: Password cache: 4120 entries, 252521 hits, 93979 misses, 16582 collisions.
    We have approximately 20,000 mailboxes so I set the cache size somewhat higher than that, but it appears that each daemon only needs around 5 to 10 thousand. Is that a setting for each process as is implied by the tuning guide? If so, why so they suggest setting it at the number of mailboxes? Does each process have to allocate memory for the auth cache at startup? Am I wasting memory?
    Other questions I have:
    What are collisions?
    What are some possible explanations for such a poor hit to miss ratio in http?
    From what time are these numbers? That is, is there any time at which they reset without restarting services?
    Thanks.
    Mark Evangelista
    Georgetown University
    Washington, DC, US

    It took awhile, but I got a response from iPlanet support. Look for responses interspersed with my original question below:
    Mark Evangelista wrote:
    The guide says "The authentication cache ... is not shared between different processes". It also says "Its value should be greater than or equal to the number of users who have their mailbox on the machine to avoid pushing entries out of the cache before the TTLs expire."
    Our user population is about 60% webmail, 40% IMAP. I turned logging for each of these to Debug level to see the password caching numbers. Here is a log entry for each of our four processes:
    HTTP:
    httpd[3568]: General Debug: Password cache: 7344 entries, 20635 hits, 57565 misses, 22651 collisions.
    httpd[3564]: General Debug: Password cache: 7255 entries, 20573 hits, 57327 misses, 21798 collisions.
    IMAP:
    imapd[3515]: General Debug: Password cache: 4109 entries, 250843 hits, 73057 misses, 16132 collisions.
    imapd[3522]: General Debug: Password cache: 4120 entries, 252521 hits, 93979 misses, 16582 collisions.
    We have approximately 20,000 mailboxes so I set the cache size somewhat higher than that, but it appears that each daemon only needs around 5 to 10 thousand. Is that a setting for each process as is implied by the tuning guide?
    A: It has been confirmed that the cache size setting is per daemon. In our case with two each of mshttpd and imapd, we have allocated memory of four times the cache
    size setting.
    If so, why so they suggest setting it at the number of mailboxes?
    A: The cache size will have some impact on collisions. See the question on collisions below.
    Does each process have to allocate memory for the auth cache at startup?
    A: Yes
    Am I wasting memory?
    A: Possibly not. See collisions below.
    What are collisions?
    A: iPlanet says "Collisions are when multiple uids have the same hash value in the cache. They only becomes a problem when the number of entries becomes close to the
    max cache size. Since you have 7344 entries, you might want to increase service.authcachesize from the 10000 default to, say, 20000."
    Comment: I infer from this that there is some hashing scheme that is dependent on the size of the cache and that with a larger cache we should have fewer collisions.
    What are some possible explanations for such a poor hit to miss ratio in http?
    A: Not answered by iPlanet. This is my speculation only, but it is likely that the pattern of use of webmail vs imap. The bulk of our webmail users are students who are more likely to sporadically wander over to a computer lab and check their email via the web rather than head back to thier dorm room and their own workstation. The vast majority of imap users are staff and faculty who spend more time at their own workstations, sign on in the morning and have their client check for new mail every 15 minutes or so.
    From what time are these numbers?
    A: Numbers are from the start of the services.
    That is, is there any time at which they reset without restarting services?
    A: No.
    Additionally iPlanet provided:
    "Miss - Is when one of the following happens:
    1. no match for a given entry,
    2. there is a match but this cache entry is expired,
    3. entry is too long to be cached"
    There was no further explanation of reason #3, which I think just begs for another question

  • Login via LDAP using "cn" attribute?

    Hi,
    I work on an LDAP client implementation, and have hit a potential problem using it with the MAC OS X LDAP server. Our device searches for user objects in the LDAP directory, looking for a match of the "uid" attribute against a login name entred by the user. Well we have a customer who is using a MAC OS X LDAP server and says that he has users configured with multiple uids (which we support) but also with a unique "cn", and that it allows login using any of those. For example a user entry would contain:
    dn: uid=joecool,cn=users,dc=xxx,dc=local
    cn: jcool
    sn: Cool
    uid: joecool
    uid: jc
    And this user supposedly can login as joecool, jc or jcool, even though there is no uid attribute with value jcool.
    So my question is, is this the case with MAC OS X LDAP server? Does it (or rather a MAC client using it) allow login with a user name that matches the cn but not a uid?
    Message was edited by: Ian Puleston
    Message was edited by: Ian Puleston

    Hi,
    The User Management guide says a fullname and 16 shortnames are permitted. However, the first shortname is used to form the LDAP distinguished name (dn). My LDAP connection lets me search for any user records based on 'cn = login name' where login name is any fullname or shortname. However, authentication only occurs when using the (dn, password) combination.
    There are significant problems when any names are duplicated. However the most critical is the first shortname which is stored with the password server file along with user id number. Note that to change the first shortname essentially deletes the user account and creates a new one. According to the manual all of the names full and short are kept in the cn listing inside the user record. This allows looking up the user record by any name (cn). During login the record is looked up, the dn retrieved and combined with the password for authentication.
    HTH,
    Harry

  • What's the problem with having multiple users with the same UID?

    I've got three edit systems connected to the SAN using open directory off our server.
    I want all edit systems to have read/write access to everything created. I don't need to protect anything from any of the systems. With all three systems logged on using the same user, I never have to change permissions.
    The other cool thing about this is that Final Cut Pro will let me know if someone else is modifying a project that I have open with the warning:
    “The project "projectName" has been modified externally. If another user is working on it, saving will overwrite their changes. Do you still want to save?”
    This sounds great, right?
    RED FLAG!!!! Apple gives the warning in this article:
    http://docs.info.apple.com/article.html?artnum=302450
    "You should not allow two users with the same UID to access an Xsan volume at the same time."
    So why is it bad to have two (or more) users with the same UID?
    I can see that in some situations it means that you can't prevent people from read/write privileges. But I don't want to restrict privileges.
    What am I missing? With all of these warnings, it seems like if I do this my edit systems could all explode or something. Please help me understand the potential ramifications of having three users have the same UID.

    Hi Russell,
    1) If you have OD set up and "editor" has UID 1111, then when they log in to any machine that's bound to OD as editor, they will get UID 1111. Therefore, there won't be any of these permission errors. This is typically the recommended approach.
    2) I assume you mean "You'd prefer to not using open directory?" Whatever the case, OD isn't mandatory with Xsan -- it's just that with multiple user accounts, managing them centrally tends to be easier. For 3 or 4 accounts and 3 or 4 machines maybe it's no big deal. If you go larger, it could get a lot more complicated. That said, if you set it up such that each machine has the exact same set of users (as you said, Mary = UID 502, Fred = UID 503, William = UID 504), then you can do what you want. Mary can log in from multiple machines at the same time, and in general you won't have permissions problems. Of course, if you try and read and write the same file from multiple workstations at the same time, you will get file locking issues, which will prohibit somebody from successfully writing the file.
    File locking issues are different from general permissions errors. The former basically says "hey, someone else is editing this file. Therefore I won't let you edit it right now... you can read it if you want though." Permissions means somebody saves it, and Xsan thinks you saved it and own the file, when you really don't.
    Quad-Core PMG5, 4 GB RAM, 7800 GT, 1 TB disk.   Mac OS X (10.4.4)  

  • I am trying to average multiple cells including some blank cells.  How do I get numbers to assess a blank cell as zero and include that cell in the average?

    I am trying to average multiple cells including some blank cells.  How do I get numbers to assess a blank cell as zero and include that cell in the average?

    Hi rkcfizzle,
    Blanks
    Blanks = 0
    1
    1
    2
    2
    0
    3
    3
    2
    1.5
    AVERAGE ignores blank cells (Column A)
    Formula in Footer Cell A6
    =AVERAGE(A)
    If you want to include blank cells as zero, type this formula in B2 (and Fill Down)
    =IF(A2<>0,A2,0)
    Numbers 3 will change the formula to
    =IF(A2≠0,A2,0)
    Yeah, right! but that is Numbers 3.
    And the answer (6/4) is 1.5. Correct!
    Regards,
    Ian.

  • Photoshop multiplies by zero, gets non-zero

    Hi all.
    I'm trying to add a color cast to a grey, contoured button shape (defined by a vector mask), by overlaying it with an adjustment layer with a solid green fill and setting the blend mode to "multiply."
    The shape layer has transparent pixels around the perimeter, so I would not expect a "multiply" operation to result in visible green there.  But it does.  That's no good.  I need to export this image to a PNG with the transparency intact.
    I can see that the green adjustment layer has a "Color Fill 1 Mask" channel, but copying the shape layer and pasting it into that mask channel doesn't seem to help.  The display shows a very thin outline of the vector shape, but I can't appear to do anything with it.
    What's the proper way to accomplish my goal here?
    Thanks!

    "When you set the Blend mode to Multiply, transparency is not multipled."
    Exactly.  I wouldn't expect it to be.  As you say, the COLOR is supposed to be multiplied, and there isn't any color in the transparent region to multiply by.  Reasonably expected result = zero.  It would make sense to offer a toggle to treat transparent pixels as black or white, but in the absence of that option I'd expect them to be treated as zero and argue that it's more useful than always generating a colored rectangle the shape of the layer.
    I've also reverse-engineered (sometimes with the help of public-domain references) half of the major Photoshop blend modes and incorporated them into compositing software so we could import Photoshop files.  Mimicking what Photoshop does is different from doing it right in many cases.
    And yeah, premultiplication causes real problems for people who don't know what they're dealing with when compositing.  Pre-multiplying was just a bad idea that unfortunately we have to live with.  Kinda like interlacing.
    Thanks for the reply.

  • Setting zero reference line to multiple points

    I have multiple x,y points.  I would like to chose 2 y points and set them to zero as a reference line, then calculate the deviation of all other points from this reference line.  Does labview have a function that can do this.  Thanks.
    Solved!
    Go to Solution.

    Just do a linear fit to the two points and subtract the result from all of the data points.  See example (quick and dirty and potentially buggy).
    Attachments:
    FindOffset.vi ‏25 KB

  • Script to auto zero channels in a TDM file with multiple channel groups

    Hi friends,
    I am trying to process some data but am having trouble modifying a script to autozero channels across multiple channel groups. The following script works to zero channels across one group. I use this script to process data in a TDM file with only one channel group. I need to be able to zero channels across multiple groups (5 groups). But the amount of groups I will have may change so I might need an option to enter the amount of groups or have the script determine the amount of groups in my TDM file. 
    Here is the code I use to zero the data. Thanks in advance for your help!
    Sub UserDlg_Select
    Call USERDLGINIT()
    USERDLGCAPTION="Auto Zero Channel Based on Specified Points "
    USERDLGTXT(5)="Number of points to Average"
    USERDLGCOMMAND(5)="t1"
    Call USERDLGOPEN()
    End Sub
    Call UserDlg_Select()
    T2="1-"&T1
    For I= 1 To ChnNoMax 'For all data channels except time
    T4=CHNNAME(I) 'Create string for Channel name (I)
    T3=ChnDim(T4) 'Create text variable for channel dimension
    STATSEL(6)="Yes" 'Arith mean
    STATCLIPCOPY="yes"
    STATCLIPVALUE="No"
    Call StatBlockCalc("Channel",T2,T4) 'Calculate Stats for Channel (I)
    'Subtract Mean of first (T1) points for Channel (I)
    Call FormulaCalc("Ch('temp1') := CH('"&T4&"') - statarithmean")
    CHNCOMMENT("temp1")=("Channel zeroed over first "&T1)+"pts" 'Add Comment
    ChnDim("temp1")=T3 'Add Dimension
    CHNNAME("temp1")=T4+"-Z" 'Save updated data with -Z
    'Delete Stat Channels
    Call CHNDEL("ArithmeticMean")
    Call CHNDEL("Sum")
    Next 'End For loop
     

    Hi rvillalta319,
    Sounds like you'll need to adapt your code to use both a for loop and some implementation of the GroupCount variable (or ChannelGroups.Count) as seen here:
    http://zone.ni.com/reference/en-XX/help/370858K-01/varoff/groupcount/
     

Maybe you are looking for

  • Untrusted VPN Server Blocked after a reload

    Hi I have an ASA5510 in failover, after a reload, a message "Untrusted VPN Server Blocked" appears after the first attempt to connect to the VPN, if we uncheck the "Block connections to untrusted servers" in preference settings the profile is updated

  • White screen of death and computer halts with ATI 4870 in Boot Camp

    Hi! I have just received the ATI Radeon 4870 for my Mac Pro (Early 2008)and have upgraded my Leopard to 10.5.7 and works fine on the Mac side. When I reboot and hold the command key I can see my MAC and my BOOT CAMP 2 options as always before. When I

  • Using old iMac Screen on new Mini

    My trusted old iMac G4 700 (dome base) is just too slow these days, but I still love the design. The screen is also very adjustable and can extend to a comfortable working height. Is there any way in which I can couple this with a new mini, ie. just

  • Javax.servlet.jsp.JspException: Missing message for key common.business.Ban

    Hi All,           I'm a System Engineer. My application code in Java and using JDK 1.3.1.           My Application deploy in IBM iSeries V5R2 and not error. But after I upgrade to iSeries V5R3, my application encounter missing message error such as "

  • Java Class and JSP file

    Hi everyone, I build a class in java, and now i wanna use this class in my jsp file. I put that class into web-inf/classes in Apache Tomcat, but don't work.... Anyone can help me? Greetings!