How can I count channel's number in diadem?

I need to know the number of channels in a file. I use a bucle like:
NumCh_=0
Do While CHNLENGTH(NumCh_+1)>0
NumCh_=NumCh_+1
Loop
But I'm sure that it is a instruction to get the number of channels. Can you help me?

Hi Radurdin,
As "bohm" mentioned, you might be interested in the channel number of the last channel with any values in it. There is an easy way to get that-- the DIAdem variable
GlobUsedChn
always stores the channel number of the last channel with data in it. It can happen that there are smaller empty channels prior to the channel number returned by GlobUsedChn, but usually the channels before it are all full.
Also, you say you want to know how many channels there are in a file, but then you start a loop over the channels in DIAdem. If you really want to know how many channels there are in a file, without having to load them into DIAdem, this is possible for some files with an easy set of commands and for all files with a hard set of commmands.
Finally, in DIAdem 9.0 and later you can also get the number of channels in any group with the
GroupChnCount(GroupIndex)
variable, and the number of available Groups with the
GroupCount
variable.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • How can I count the participants' number in TextChatApp? (using SharedObject, FMS)

    Hi all.
    How can I count participants' number?
    If the 3st user enter the room, the 3st user have to know that how many users are in the room.
    How do I know how many users are in the room?
    Thanks in advanced.
    Kevin.

    You have server side hooks for connections coming in or being closed (including here custom code for server disconnecting users for idle purposes).
    you need to keep track of the connections I don't remember now what FMS offers out of the box. Let's assume not much.
    When connection is coming in you can choose to accept or reject it. When you accept a connection you need to add it to your existing connections array or whatever data structure you use to keep track of them. Also you need to iterate to all connected users (clients) and call a custom method "userJoined()" on them to notify that a new user has joined.
    When a user leaves you need to remove the user from the collection and also notify that it left.
    on wowza you have stuff like :
    private HashSet();
    public void onConnect(IClient client, RequestFunction function,
                AMFDataList params) {
    public void onDisconnect(IClient client) {
    public void onConnectAccept(IClient client) {
        _connectedClients.add(client); 
        sendUserJoined();
    @param client
        public void onConnectReject(IClient client) {
             _connectedClients.remove(client); 
            sendUserLeft();
        public void sendUserJoined(String userName)
            Iterator it = _connectedClients.iterator();
            while (it.hasNext()) { 
                IClient each =  it.next();
                    each.call("userLeft", userName);
    FMS has similar hooks. This is simplified but you have a rough idea. You can call clients with no parameters and then is up to client so call back for updates to the server if interested. You need to implement "userJoined" and userLeft client side also.
    C

  • How can I count the total number of keyframes in a project in After effects?

    I would just like to know how to get the quantity of how many keyframes I have in my project. I've always thought counting keyframes is pretty interesting xD

    That's a new one!  I don't think anyone's ever been curious about that.  Which means it's an excellent bet that there isn' any automated way to do it: it may be interesting from an academic viewpoint, but I'm stumped about a practical use.  I think you'd just have to count layer by layer, and hope you don't get interrupted.

  • How can I find out the number of lines in a text file?

    How can I find out the number of lines in a text file?

    java.io.BufferedReader in = new java.io.BufferedReader( new java.io.FileReader( "YourFile.txt" ) );
    int lineCount = 0;
    while( in.readLine() != null )
    lineCount ++;
    System.out.println( "Line Count = " + lineCount );

  • My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    http://support.apple.com/kb/TS2005
    http://support.apple.com/kb/HT1861
    https://ssl.apple.com/support/proapps/serialnumbers/

  • I have lost my iphone, how can i get the IMEI number?

    i have lost my iphone, how can i get the IMEI number?

    If you need the IMEI for an insurance or police report:
    how to find IMEI, etc
    http://support.apple.com/kb/HT4061?viewlocale=en_US&locale=en_US
    But as Carolyn Samit said above, you cannot track the iPhone by IMEI.

  • How can I find my serial number for Adobe Acrobat 11. I got a new iMac and I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    I used to use CS5 and I want to use the Acrobat version on my new iMac.
    How can I find my serial number for Adobe Acrobat 11.  I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    Hi Anthony Aduhene
    Please refer : Find your serial number quickly

  • How can I find the serial number for my creative suite CS6 I bought it from a store.

    How can I find the serial number for my creative suite CS6 I bought it from a store.

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How can i hide my extension number when i make outgoing calls

    Hi All,
    How can i hide my extension number when i make outgoing calls,what configuration should i make on the call manager server.
    Regards,
    Lester

    We use a Route Pattern that mimics the telco feature *67. The RP is *679.xxxxxxx with a Transformation mask of 000000000 (just to get beyond the individual blocking on some private lines.

  • How can i add one phone number to my macbook pro application imessage

    how can i add one phone number to my macbook pro application imessage

    Make sure that the iPad is using the same Apple ID as your iPhone. If the phone number still doesn't appear, log out of iMessage on both devices, log back in on the iPhone, wait until it activates, then log into iMessage on the iPad with the same Apple ID.

  • I want to remove my credit card from my account and only use gift cards for purchases. How can I delete my card number?

    I want to delete my credit card from my account and only use gift cards.  How can I delete my card number?

    You'll want to get in touch with ITunes support for this. Normally when you start an account with the CC you can't remove it yourself. But by contacting iTunes they can get that taken off for you.
    Use this link to get in touch with the iTunes advisors
    http://www.apple.com/lae/support/itunes/contact.html

  • How can we find the Idoc number which posts the material document in SAP

    Hi All,
    How can we find the Idoc number which posts the material document in SAP. We could not able to find the IDOC number from the material document which was posted by Idoc.
    Thanks
    Chandru

    Hi,
    In MIGO you can go to service of object(Just above show overview) and check 5th option workflow you will find the idoc number.
    regards
    suresh

  • How can I remove the page number from the first page of the document that is the cover page?

    How can I remove the page number from the first page of the document that is the cover page?

    If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
    It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages).

  • How can i remove the phone number from the text messages that i receive in the notification center

    how can i remove the phone number from the text messages that i receive in the notification center?

    You choose whether to see text messages in Notification Center or not.  If you elect to see them, they will display the phone number (unless they are from a contact in your contacts list).
    You can choose not to see them at Settings > Notification Center > Messages.

  • How can I move a large number of pics from icloud Photos Beta to a PC without having to select each photo?

    How can I move a large number of pics from icloud Photos Beta to a PC without having to select each photo?

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

Maybe you are looking for