I want to multiply several channels in a diadem script by a value through a loop. How do i do this?

all the examples i've seen use channel names to specify the channels but i want to use the channel number so i can loop through several. I can't figure out how to do this in vbscript
I've tried:
for i = 1 to 4
Call FormulaCalc(Ch(i) = Ch(i)*2)
next
using several variations of double and singel quotes with no luck. It works if i use the channel number instead of i but I want to be able to loop through a long list of channels to do the same calculation....any help??
thanks

icefield,
You can try the following code:
DIM ChGrpIndex
DIM i
ChGrpIndex = 1
FOR i = 1 to 4
  Call FormulaCalc("Ch('[" & ChGrpIndex & "]/[" & i & "]') := 2 * Ch('[" & ChGrpIndex & "]/[" & i & "]')")
NEXT
Regards,
Song Du
Systems Software
National Instruments R&D

Similar Messages

  • Hi, I want to get my new PC to recognize my Cannon multipass C-2500 machine. How can I do this?

    Hi,  I want to get my new PC to recognize my Cannon multipass C-2500 machine.  How can I do this?  I searched the list of printers and find a lot of Cannon inkjet references on my new Gateway computer but I don't find that one.  I obviously want my machine to relate to my printer.  Does the linkage require updated cannon printer drivers?   Thanks for your answers on how to make them compatible.
    Wayne Frye

    Hi waynefrye,
    The MultiPASS C2500 was release several years prior to Windows XP.  While the printer can be installed on an XP or earlier system (official drivers are only available for ME and earlier), I'm guessing that you are using either Windows 8 or Windows 7 since this is a new computer.
    The MultiPASS C2500 is not compatible with these new operating systems.  Since your device is not supported under the current operating system, you are eligible for Canon's Loyalty Program. This option allows you a one-time opportunity to purchase a new or refurbished product that uses Canon’s next generation technology and carries a limited manufacturer’s warranty. To help you get up and running quickly, we also offer free ground shipping (if the order is completed by 4:00 PM EST). If you would like to take part in this option, please call our Sales Department at (800)OK-CANON (800-652-2666) seven days a week, 8am to Midnight.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • We have multiple users, each with multiple devices, on 1 apple id - as we want to share music and ibooks etc.  We want the children to have access to the store, but with a financial limit. How do we do this?

    We have multiple users, each with multiple devices, on 1 apple id - as we want to share music and ibooks etc.  We want the children to have access to the store, but with a financial limit. How do we do this?

    Welcome to the Apple Community.
    That's simply not possible I'm afraid. You'd need to give them their own account and allowance or make it so you are required to be there to input the password when they wish to make a purchase.

  • I created an Apple ID for my daughter with her own gmail address, but I want her Apple ID and primary email address to be an iCloud email address. How can I do this? I can't set up an icould email address for her without first creating an Apple ID?

    I have created an Apple ID for my daughter with her own gmail address as the primary email address, but I want her Apple ID and primary email address to be an iCloud email address. How can I do this? I can't set up an icould email address for her without first creating an Apple ID right?
    I'm not good with computers so please explain in simple way...:)
    I also wonder what the best way is to set up accounts for children in a family. I dont want them to be able to purchase apps etc through the parents accounts, also some things we like to share as a family and others we don't want to share. Is there any good. clear, simple explanation from Apple Support about these issues? Or best to go to Apple store and go to genius bar or one to one advise?
    thanks

    You can set up an iCloud account which makes the iCloud email address you choose the Apple ID and thus the login for it:
    https://discussions.apple.com/message/22283348#22283348
    though I have to say I think it's more sensible if the ID is another address, both for security reasons (so people don't know what the login is) and as a contact address from Apple if the account were to stop working and they needed to contact you. So personally I would to to System Preferences, enter the GMail address which is an ID, and then choose a nerw @icloud.com address.
    If she has her own iCloud account she will need either her own computer or her own user account on your Mac to be able to make use of it. You should note that under Apple's terms of use Apple IDs are only available to children of 13 and over.
    As to purchasing apps, this is nothing to do with iCloud: it's iTunes, and the login can be different. So you can all sign into the same iTunes account but have different iCloud accounts. Or she can have her own iTunes account if she is of suitable age (credit card needed for purchasing apps).
    If you have other children you should be aware that any one Mac or device can create only three iCloud accounts - this is tied to the serial number, not the user account, and once reached cannot be bypassed. You can of course sign into an iCloud account created on another device.

  • I have an iPhone 5c and want to play songs that are stored on my PC iTunes library, but were not bought through iTunes.  How do I do this?

    I have an iPhone 5c and want to play songs that are stored on my PC iTunes library, but were not bought through iTunes.  How do I do this?

    Hi there eramhar,
    It sounds like you are wanting to sync your music to your iPhone. If so, you may find the information in the article below helpful.
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/ph12313
    -Griff W. 

  • I'm using Acrobat XI on Windows.  I want to add my company's logotype as a watermark to a PDF document.  How can I do this?  When I add it as a file (jpeg), the logotype is printed on a white square background.  It will be positioned on the PDF document o

    I'm using Acrobat XI on Windows.  I want to add my company's logotype as a watermark to a PDF document.  How can I do this?  When I add it as a file (jpeg), the logotype is printed on a white square background.  It will be positioned on the PDF document on a light, uniform yellowing color. I want this to show through, as if the logotype was stamped directly on the document.  Thanks.age to be completely transparent

    The above was truncated and garbled a bit and I can't figure out how to edit it.  So just to repeat the question a bit more clearly: "I'm using Acrobat XI on Windows.  I want to add my company's logotype as a watermark to a PDF document.  When I add it as a file (jpeg), the logotype is printed on a white square background (because the jpeg is square with a white background of course).  It will be positioned on the PDF document on a light, uniform yellowish color, which I want to show through. I want it to look as thought the logotype was stamped directly on the document.  Thanks.

  • I'm entitled to an upgrade as I have CS3 I want to buy a new mac and install the upgrade on the new computer. How do I do this?

    I'm entitled to an upgrade as I have CS3 I want to buy a new mac and install the upgrade on the new computer. How do I do this?

    Hi Ned,
    Thank you for your help. I want to join creative cloud and when it check my system I told i can join for the discount price.
    One Year, Paid Monthly plan — €36.89 per month, inclusive of VAT
    My mac is Version 10.6.8 so I need to purchase two new mac creative cloud to run properly. I want to install the aps on both macs one for work and one for home use.
    Will this work or cause me any problem?
    Chris

  • Several apps open automatically when I log into my new Air. How do I stop this from happening?

    Several apps open automatically when I log into my new Air. How do I stop this from happening?

    if "shldr2thewheel"s tip dosent help, you cant try to:
    disable the startup-items at the user & groups panel within the system preferences

  • I trying to download itunes on my laptop several times but I keep getting a Quick Time error -2096. How do I remove this error?

    I trying to download itunes on my laptop several times but I keep getting a Quick Time error -2096. How do I remove this error?

    Do you see the problem if you turn off Compatibility Mode for QuickTime?
    Right-click on the QuickTimePlayer application (located in C:\Program Files\QuickTime) and choose Properties from the shortcut menu.
    In the Properties window, click the Compatibility tab
    Deselect all checkboxes currently selected in the Compatibility tab.
    Click Apply.
    Close the Properties window.
    Check out this Apple document -> Error -2096 message when opening QuickTime for Windows in Compatibility Mode

  • HT5454 I'm in an educational environment.  New student computers have ARD installed.  We don't want them to use the administration features of ARD but to be clients only.  How can I accomplish this?

    I'm in an educational environment.  New student computers have ARD installed.  We don't want them to use the administration features of ARD but to be clients only.  How can I accomplish this?

    Unless you installed the ARD administration application on the computers yourselves, all they'll have is the client. The ARD admin app is not included with Macs; it must be purchased from the Mac App Store. If you did for some reason install the ARD admin app, just remove it.
    Regards.

  • HT4211 I just updated my iPad 2 to iOS 7 and whenever I try to type on the keyboard screen, it takes several seconds to acknowledge the key press. It really is slow.How can I fix this?

    I just updated my iPad 2 to iOS 7 and whenever I try to type on the keyboard screen, it takes several seconds to acknowledge the key press. It really is slow.How can I fix this?

    Settings>General>Reset>Reset All Settings

  • I have multiple groups in the cloud. I check the one I want but the next time I go to my contacts all the groups are checked. how do I stop this from happening?

    I have multiple groups in the cloud. I have checked the group I want to use. the next time I go to my contacts they are all checked, how can I stop this?

    Are they coming from one forum (e.g. this one, 'iTunes Store'), or from just one thread ? If one community then what shows at the top right of the screen under the Notifications box for the forum - if it says 'stop email notifications' then click on it.
    Stopping emails from these forums : https://discussions.apple.com/docs/DOC-3661

  • I have downloaded several times now,but i get the same error message 'corrupt file ' how do i fix this?

    i have downloaded and uninstalled firefox several times now,but i get the same error message 'corrupt file' How do i fix this and i also go to the home page to download as well as others,i have also tried downloading to my laptop the same amount of times and i get the same error message :( very unhappy

    Set Windows Defender off and try download again from here:
    http://www.mozilla.org/en-US/firefox/all.html
    If this does not help see here:
    [https://support.mozilla.com/en-US/kb/Unable%20to%20download%20or%20save%20files Unable to download or save files]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • HT201272 I recently added my entire music library to the "cloud" for an annual fee. Now I can't listen to anything unless I have an internet connection. I want my library back on my laptop, the whole thing (original laptop got erased). How do I do this?

    I recently added my entire music library to the "cloud" for an annual fee. Now I can't listen to anything unless I have an internet connection. I want my library back on my laptop, the whole thing (original laptop got erased). How do I do this?

    Hello ggjsa,
    Congratulations on your new laptop!  I understand that you have copied your old iTunes Library to your new computer, but you are still not seeing the music.  I recommend reviewing Part 5 in the section titled "External drive" in the following article:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    If you are still having trouble transferring the library using this method, you may want to try using the Home Sharing method in the article. 
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have photoshop installed on this PC.  Itw as installed by my school and now I want to transfer it to my new MAC.  I have the serial number so how do I do this?  Cand I just copy the program file across?

    It was installed by my school and now I want to transfer it to my new MAC.  I have the serial number so how do I do this?  Cand I just copy the program file across?

    if that's ps cs6, Order product | Platform, language swap

Maybe you are looking for

  • DuplicateMessageExc in Snder JDBC Adapter although succesfull in SXMB_MONI

    Hi Experts, I am getting "com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id 5b72a60b-b0e2-48f0-3701-cdb67ac1c5b2(OUTBOUND) already exists in duplicate check table: com.sap.sql.DuplicateKeyException: ORA-00001: un

  • JWindow bug

    I tried real hard to add a keylistener to a jwindow and it just won't work. I searched the entire forums on sample code for adding a keylistener to a jwindow, and looks like it worked for them, but this was all using versions before jdk1.4. What was

  • Bug? LabVIEW 2009 Enum in Datalog Refnum Loses Data in LabVIEW 2010+

    Hi  Can I please get support from an AE? Attached is a LabVIEW 2009 VI with a Control of an Enum in a Datalog Refnum. Whereby the Enum's FP Object is represented as an image. In LabVIEW 2009 this works fine however, in any higher version (I have defi

  • GTS Error " SAP GTS : Legal Control : P.O is locked"

    Hi, I am getting the error saying " SAP GTS : Legal Control : P.O(4502089260) is locked". Pls help me. Regards, krishna

  • Why there's no Vidio Capture Device?

    I just begin to study JMF and want to capture the vidio, using following codes: Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));            if (deviceList.size() > 0) { cdiVideo = (CaptureDeviceInfo) deviceList.firstElem