How do I get the number of channels available in DIAdem using VBScript?

I want to know the last number of the available channels in DIAdem-DATA using VBScript. If there are not enough channels, I'll allocate new ones using ChnAlloc.
For the first run of the script, I do know there're 60 channels, but in a second run I might have created the additional channels already (if the script didn't fail) and I don't want to do the allocation a second time. So I need to know the number of the last channel. Unfortunatly I didn't find any function in the help providing this number.
Thanks,
Carsten

Hi Carsten,
I have a few thoughts for you plus some useful code. Bear in mind that you can change the number of static DIAdem channels (by default 60 of length 8192) as well as the number of available dynamic channels (by default 1000) to whatever you want. These memory matrix settings get stored in your Desktop.DDD file (DIAdem's ini file), so that each time you launch DIAdem it will create the channels according to your specifications. The maximum number of channels of all types that DIAdem can have is 65536 (2^16).
Secondly, don't forget that you can address channels by name or by number. If the channels are named distinctly, addressing channels by name is the most reliable method. If you use ChnAlloc() to allocate new channels, and you want to address those new channels by channel number, you MUST use CNo() immediately after creating the new channel in order to find out that channel's number. It will not always be the next available channel number, because the next available channel may not be long enough. ChnAlloc() will latch on to an existing channel if it can find one long enough, and it will create new channels only if it finds none of the existing channels suitable.
In the VBScript I attached to this email you will find all the DIAdem variables which contain information about the maximum available channels and the maximum length of each channel (not its currently set length). Note that DIAdem's data matrix is divided into 8 submatrices, each with 2 GBytes of addressable memory (2^31 Bytes). Each submatrix can have multiple static channels assigned to it. DIAdem's dynamic channels come first from DIAdem's application RAM (Windows allocates no more than 2 GBytes per application) then from the Windows swap file for its virtual memory
Now, in addition to the variables which tell you the maximum possible channel count and lengths, another very useful variable is "GlobUsedChn", which returns the highest channel number currently filled with some amount of data.
Ask if you have additional questions,
Brad Turpin
NI
Attachments:
View_DataMatrix.VBS ‏2 KB

Similar Messages

  • How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    How can I get the number of missed messages to pop up on my message icon like the would if i missed a call

    Hi,
    Go to Settings>Notifications Center>Messages, and make sure the Badge App Icon is turned ON.
    Cheers,
    GB

  • PS5 - How do I get the hidden target channel to work with the typing tool?

    PS5 - How do I get the hidden target channel to work with the typing tool?
    I keep getting this error message everytime I try to move a box around.

    Have you tried an Adobe forum? PS5 is an Adobe product!

  • I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion

    I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion

    NicholasLiban -
       When you use the Lion restore as described, it does a fresh install on the hard drive that you can select at the beginning of the process.  This provides a complete install of the very latest version of Lion, including the recovery partition.  The drive that you choose for the installation destination winds up like what you would have on a brand new computer from Apple. 
       - Randy

  • ASCP: How do I get the list of 1st level planned orders using msc_full_pegging table

    How do I get the list of 1st level planned orders using msc_full_pegging table, is any one having the script.

    Do you mean supply_type? If so, yes it will be in pegging table as supply_type or otherwise you can join this table with msc_supplies by joining transaction_id column and get the order_type from that which will be the supply type.
    Thanks,
    Abhishek Sharma
    P.S:- Try opening the discussion in a separate window and see if you get the option to mark it correct or helpful,

  • How can I get the number of rows in my sql result, without a loop?

    Hello,
    I've a problem, I would like to get the number of rows in my sql result without make a loop like :
    while (rs.next()){
    int number = rs.getRow();
    Is there any method to do this, on the first element?
    Thx, STeF

    If you want to count how many rows are in result set, I dont think you can, but you could always run a count statement for that sql
    say your sql is
    select field1, field2, field3
    from table1, table2
    where field4=field5 ......
    then you can count the rows this statement returns by
    select count(*) from
    (say your sql is
    select field1, field2, field3
    from table1, table2
    where field4=field5 ......)
    This way you will get the count for just that sql

  • How can I get the number request's (count) for One interface

    Hi Guru's,
    I have a requirement,One interface say Hello world._How can I get the number request's (count) for this interface_.I thing with BAM it's possible.
    But I have no idea about BAM.If is there any alternative please give directions and instruction how to achieve this task.
    Can any body help.Thanks in advance.
    Regards
    Mani

    You have to query the SOA_INFRA schema to get the answer.
    Build a select query in cube_instance table.
    Thanks,
    Vijay

  • How can I get the number of computers that a specific user had add to domain?

    Greetings
    In Win Srv 2K8 I know how to increase\decrease the total number of computers that any user can add to domain.
    (http://support.microsoft.com/kb/243327/en-us)
    but there is any way to get the number of computer accounts that a user had add?
    thank you in advance

    Hi,
    Regarding your request, maybe we could use the 'ms-DS-CreatorSID' attribute to verify the computer number that a specific has joined to the domain. Please understand that for a
    computer account created by domain users, the account has 'ms-DS-CreatorSID' attribute to indicate the creator user. When a user adds a computer to the domain, a process enumerates the 'ms-DS-CreatorSID' attribute on every computer account in the domain and
    calculates if the sum exceeds the current quota for that user.
    The 'ms-DS-CreatorSID' and 'ms-DS-MachineAccountQuota' with default value 10 are also available in Windows Server 2008 AD DS.
    Note: The 'ms-DS-CreatorSID' attribute will be unset in the computer account that is pre-created in Active Directory Users and Computers MMC or joined by domain administrators.
    Auditing on the computers container should work for collecting information of joining computer into the domain.
    For details, please refer to the following similar thread.
    How to find computers joined by an user (ms-ds-creatorsid) using powershell
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/68db87d8-0890-4d23-af9f-4693ccc1074d/how-to-find-computers-joined-by-an-user-msdscreatorsid-using-powershell?forum=winserverpowershell
    Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • Urgent******how can i get the number of rows enterd by the user in a table

    Hi Frndz..
    As per my requirement i need to do the validations for the multipple rows in a table that was enterd by the user,
                   T
              The prob is how can i get that number of rows that enterd by user,
           WDMessageManager msg = wdComponentAPI.getMessageManager();
         String col1= "";
         String col2= "";
         double col3= 0;
         double col4= 0;
         double amount= 0;
         int nodesize = wdContext.nodeTest().size();
         try
         for(int i=0; i<=2 ; i++)
                   col1 = wdContext.nodeTest().getTestElementAt(i).getCol1();
                 //msg.reportSuccess("col1 size is :"+col1);
                   col2 = wdContext.nodeTest().getTestElementAt(i).getCol2();
                   col3 = wdContext.nodeTest().getTestElementAt(i).getCol3();
                   col4 = wdContext.nodeTest().getTestElementAt(i).getCol4();
                    amount = wdContext.nodeTest().getTestElementAt(i).getAmount();
              if(col1 == "" )
                        msg.reportException("Plz fil the col1 for line:",true);
                   break;
              else
              if(col2 == "" )
                                  msg.reportException("Plz fil the col2 for line:",true);
                             break;
                        else
              if(col3 <= 0)
                   msg.reportException("Plz fil the col3:",true);
                   break;
              else
                   if(col4 <= 0)
                   msg.reportException("Plz fil the col4:",true);
                   break;
              msg.reportSuccess("skvgjhdfgasdfgsjkafguisafisenvtvyeriy");
                                                       wdThis.test();
         catch (Exception e)
                   msg.reportException("strMessage in catch block",true);
         this is the code am going
    Regards
    Rajesh

    Hi,
       You can try this:
    * Let's say the table's datasource is a node called Table  and it has two attributes first & second.
    * You want to check if any of these attributes has been changed by the user or not. If they have been
    * changed then you want to do some validations against them.
      int sizeOfTable = wdContext.nodeTable().size();
      for(int i = 0; i < sizeOfTable; i++){
         IPrivate<view name>.ITableElement ele = wdContext.nodeTable().getTableElementAt(i);
         if(ele.isChangedByClient(ITableElement.<attribute name>)){
            //value has been changed, do some validation. You can get the row index using ele.index().
    Regards,
    Satyajit.

  • Surround bounce - how do you select the number of channels?

    When doing a surround bounce, Logic is always giving me a 5.1 even though I want a different number of channels. I have my surround setup selected in audio preferences, and it seems like it should bounce using that same config, but it does 5.1 either interleaved or split. I don't see any options for number of channels in the bounce window.
    Any ideas? It seems like this worked in earlier versions of Logic, but with the latest I can't get any other number of channels.

    Found where it's set in the app, but looks like it's buggy in 9.x. I went back and checked 8.x and it works fine there.
    Anyone want to try it out? Under project settings->surround format, you should be able to set a format and then do a bounce with Surround Bounce and Interleaved selected. In L8, the bounce would be the number of channels selected in project settings, but in 9, it looks like it always bounces 6 channels regardless of settings.
    If someone could take a minute and test it out, I'd really appreciate it - I'll be reporting it to apple but I'd like to make sure it's not just my system. Thanks.

  • How to get the number of bytes at ethernt port using tcp/ip?

    I have data with variable sizes.I am getting the data from another sytem using software C.
    How can I get the exact number of bytes coming at the port before using the read command so that the no. of bytes at port has to be given as the input to the tcp read vi?

    Philippe_RSA wrote:
    So may responses saying your question is wrong..... typical of this site, and no decent answer after 5 years !
    The answer I have used is to use a call library function:
    short int ioctlsocket(unsigned long socket, unsigned long fionread, unsigned long *len);    
    where fionread is a windows defined constant =  4004667F
    The socket can be obtained from using the       TCP Get RAW NET OBJECT.vi   which comes with Labview (even as far back as version 7).
    Good luck.
    A protocol requiring such a hack is IMHO very poorly designed. You should always have some way on the wire to determine the data stream size. If the data is fixed size that would be inherent to the protocol, if it's variable sized there should be a fixed size header or a known message termination indication that can be used to determine how to read the rest of the message.
    As a side node, I do consider the existence of VISA Bytes at Serial Port a big error, and that is most likely where this question originally came from. Use of "bytes at port" to decode a protocol will ALWAYS lead to protocol errors sooner or later, and code that is unneccessarily complicated to force the routine to deal with the asynchonous reading of the "bytes at port" into the protocol decoding.
    If a protocol can't be decoded with fixed size reads, fixed size reads with following variable size reads determined from information in the header, or a specific message termination indication, then it is very badly flawed.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How do I get the number back?

    Okay, so last night I attempted to update my iPhone 4 to the iOS 7 software and it said it had to be restored so I did.  But I forgot to back up some of my contacts first and I lost two contacts.  One of which was my girlfriend's.  I know that last part wasn't important but anyway.  How can I get her number back?  And when I tried to text her friend's number, I got an error message saying "Error invalid number.  Please resend using a valid 10 digit number or shorter code".  Why am I getting that error message??

    I was having the same problem and here is how I fixed it.
    I have fixed this problem on my iphone.
    1. Delete all record of the problem number that will not except text messages.
    Including contact, favorites, call log, text log...
    2. send a text message to the phone number manually make sure to include the area code, no 1 needed.
    3. click the sms button on your home screen, then select the number you just sent the message to and create a new contact from there.

  • How do I get the error on fit parameters in Diadem

    I am using Diadem "linear least-square fit" with weighted Y-channel. The typical fit model is y=a+b*x. Here is my question:
    How do I get the error on the fit parameters a and b ?
    Okay, I can ask Diadem to calculate the co-variance matrix, and then use a script to calculate the errors, but there must be a short-cut?
    BR,
    Chr

    Hi schoric,
    The only quantitative regression fit assesment that is built into the DIAdem function is the coefficient of determination of the regression (r^2), which is stored in the global DIAdem variable:
     RegrPrecision 
    Does that help?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How do I get the bean property to JSP page for use in a Scriplet

    Hi all,
    I am new to JSF and would like to know how can I get the Bean property to a JSP page and then use that property to dynamically display the contents.
    Thank in advance,

    Hi,
    I think the following page will be helpfull.
    http://java.sun.com/developer/technicalArticles/javaserverpages/JSP20/
    Akif

  • HT201359 If I didnt authorize the payment how do i get the money back. I do not use itunes

    I didn't authorize a payment for itunes. I do not use itunes. 12.88 was taken out of my account. How do i get the money back?

    First, log into your iTunes Store account and see if the purchases are reflected in the Purchase History.
    http://support.apple.com/kb/HT2727
    If they are and you're sure you or someone you know didn't make the purchase, immediately change the password to your iTunes Store account, making sure it's not something easily guessed or looked up. Then go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. 
    If the charges are not reflected in the Purchase History, then it's most likely a fraudulent charge to your credit card directly rather than an unauthorized purchase through your iTunes Store account and it will be up to your bank to handle.
    Regards.

Maybe you are looking for

  • Airport no longer sharing internet

    I have been using the airport extreme (802.11n) for several years, with few problems. Now it seems that it is only sharing the wireless connection from my modem to one computer at a time, rebooting the modem will allow any OTHER (or the same) compute

  • What airport works best for an extra large apartment?

    how do i get an airport product to work in a large apartment?

  • Create class in java. package

    Not good practice, I know, but is it it possible to do. It seems as the VM (1.3) does not bother about if I set up the RuntimePermissions to be able to access and define Class In Package java.net. I still get a prohibited package name exception. Anyo

  • Starting the J2EE..

    Hi, We have EP7 SP11 installed on a Win2003 x86 64bit Server. After the windows server reboot the J2EE engine is not started automatically, we have to go to startup framework enter the authentication details and then the J2EE starts. Is there anyway

  • Why does my iTunes always freeze when a device is connected?

    I am running the latest OS X Yosemite 10.10.2 and iTunes 12.1.0.50.  Every time I try and connect a device to iTunes the colour wheel appears and iTunes freezes. This has happened on an iPhone 5, an iPod Touch and an iPad Mini.  This problem only occ