Keep switch channel selected for multiple steps in a scan list

Hi,
I have 3 switches (PXI-2575), one to apply a source to a given line, one to apply a sink, a one to apply a DMM.  I have all three switches triggering off each other as well as a DMM (PXI-4070). I apply a source to any given line with the source switch and then cycle through other lines using the DMM switch. Problem is i want to keep the wear on the relays of the source switch to a minimum (for each cycle through the DMM lines I'm selecting same source pin multiple times!). Is there a command for scan lists or some way of setting up the switches so that this can be done?
I thought it might be possible to use the debounce command ';' on its own to signify that i don't want to change the channel selection but this does not appear to work, the DMM times out whilst waiting for a trigger on the second reading. Simplified example scan list that i currently have:
Break Mode: No Action
Source Switch: ch0->com;;;;~ch0->com & ch1->com...
DMM Switch: ch100->com;~ch100->com & ch101->com;~ch101->com & ch102->com;~ch102->com & ch103->com;~ch103->com & ch100->com...
I've also tried selecting the same channel in subsquent scan list entries which flags up error saying explicit connection already exists between the channels.
So is the only possibility just to needlessly wear out the relays?!

Hi leon007,
I can understand your desire to keep the wear on the relays of the Source switch to a minimum.  I have a few questions, but we should be able to get the application working without needlessly wearing out the relays.
1.  Can I assume you are using NI-SWITCH to program this application?  If you are using the NI-DAQmx Switch API, please let me know.
2.  When you state "I have all three switches triggering off each other as well as a DMM", can I assume (leaving out the Sink switch for now) the scan advanced output of the Source switch (TTL0) is sent to the trigger input of the DMM switch (TTL0), the scan advanced output of the DMM switch (TTL1) is sent to the trigger source of the DMM (TTL1), and the measurement complete destination of the DMM (TTL2) is sent to the trigger input of the Source switch (TTL2)?
3.  If you are still having troubles after this post, I would like to know the following so I can assist in testing the issue:  What versions of NI-DAQmx and NI-SWITCH do you have installed?
OK, that's it for my questions.  Now for yours.  Unfortunately, the debounce command ';' didn't work because it is simply a dummy entry - without creating a connection no scan advanced signal will be sent.  I've noticed this is not documented well in our help file, and I apologize for that.  However, attempting to create a connection where one already exists should be an error.  Either the user is attempting to redundantly connect channels (which shouldn't happen if niSwitch Get Relay Position is used), or there is a driver issue.
To keep the relay wear to a minimum, I want to suggest a couple of ideas. 
1.  Use only one trigger line for the DMM's measurement complete and one trigger line for all the switches scan advanced outputs.  To use this option, it cannot matter in your application which switch operates first, and which operates last.  The switch that always makes a connection (the DMM switch) will send a scan advanced output trigger with a set scan delay (configured in niSwitch Configure Scan Trigger) that should accommodate for all the switches.  This option may add delay in your application, but you will save relay life.
2.  Use the DAQmx Switch API and the '&&' command between seperate switch connections.  In the DAQmx Switch API, you use just one scan list for all switch modules.  For example, we would perform the example scan list entries you provided with the following scan list:
/Source/ch0->com && /DMM Switch/ch100->com; ~/DMM Switch/ch100->com & /DMM Switch/ch101->com; ~/DMM Switch/ch101->com & /DMM Switch/ch102->com; ~/DMM Switch/ch102->com & /DMM Switch/ch103->com; ~/Source/ch0->com & /Source/ch1->com && ~/DMM Switch/ch103->com & /DMM Switch/ch100->com...
The above connects the Source switch CH0 to COM, waits for the relays to settle, connects the DMM switch CH100 to COM, sends the scan advanced output signal, and waits for the trigger input before executing the next scan list entry.  This method will keep an order to the madness, as you will have the power to decide which switch operates first, and which operates last.
Let me know if I assumed anything incorrectly or if neither option works for you!
Chad Erickson
Switch Product Support Engineer
NI - USA

Similar Messages

  • Single Spool for multiple steps

    Hi,
    I have a requirement, where in for multiple steps in a job i need single spool.
    Single spool is created for multiple steps when i am running the back ground job with my user id. The problem is when running the same job with the batch user id, more than one spool is created. I have checked the settings of the batch id and even marked it as dialog user still more than one spool is getting created.
    Pls let me know why this problem is happening.
    Thanks,
    Raju

    Check the user profile (SU01) of your batch user, "output immediately" should be deactivated. Also check the print parameters in the job steps, "new spool request" should be deactivated.
    I haven't tried this in a while, but the answer should be somewhere around these settings.
    Thomas

  • Entry Channel setup for multiple company codes

    Hello,
    I have a question regarding the entry channel setup (for external requirements in the Plan-Driven Procurement scenario)
    In previous implementations, I 've created an entry channel below each company code (as the documentation says it should be). Now, for each entry channel, there was a EBP user assigned, which corresponded to an RFC entry in the backend system (I was connecting EBP to multiple backend systems)
    Now, what should I do in the following scenario?:
    1. SRM is only connected to one backend system
    2. There are 50 company codes
    Does that mean I have to create 50 users (for each channel) plus 50 RFC connections in the R/3 system (each with a different user in the backend system), pointing to the same SRM system?
    I was thinking of creating an Org iD in the SRM structure at the top (which would be the entry channel), assign only ONE user to it and then fill attribute BUK with all the company codes. However, I don't know if this will work, because the external requirement process might need the company code defined in the "Function" tab... =/
    Any help would be greatly appreciated.
    Regards,
    Gilberto.

    Hi Proyecto Genesis,
    I am also configuring the Entry channel (org unit) for multiple company codes.
    I tried your logic of defining the entry channel outside company code level. Assigned the BUK attribute and extended attribute for plants and storage locations.
    Also in my case the local Pur org and Pur group is defined outside the company code. Is it correct?
    However the system fails to transfer the external requisition to SRM.
    SLG1 displays following error message.
    "No address found for partner function type Ship-To Address"
    So if I move the Entry channel (org unit) under any one company code level then the external requisitions are transferred correctly to SRM.
    But then the issue is the requirements are not transferred with the backend Pur Org and Pur grp. Instead they are transferred to the Pur Org and Pur grp of the company code under which the entry channel is defined.
    Can you please share how do we need to define the entry channel, local pur org and pur grp for multiple company codes scenario, so that the ECC requisitions are transferred with the correct company code, pur org and pur grp to SRM?
    Or do we need to define Entry channel for each company code and RFC user actually mapping the same backend system?
    Please guide.
    Regards,
    Sandeep

  • Critical :MIRO TRANSACTION-POP UP SELECTION FOR MULTIPLE VENDOR SELECTION

    Hi experts ,
    I have a requirement in my project in which AP ( accounts payable ) requires pop up selection box in MIRO when there are multiple remit to address exist for the same vendor.Currently AP does not have the ability to see  when mulitple remit accounts exist for a vendor.   This is causing payment to be sent to the wrong place.so the requirement is 1.Modify the MIRO transaction to determine if a multiple remit-to vendor scenario exists and issue an info message to the user so that he/she can perform a vendor search.
    Modify MIRO to Issue Info Message for Multiple Remit-to Scenario
    If possible, find an appropriate BAdi or user exit where an info message can be issued.  The message must be issued after entry of the purchase order number.
    Determination of a multiple remit-to case is as follows:
    -     User in transaction MIRO enters a value in the purchase order number field and presses enter or other function key
    -     In exit code:
    o     the vendor number is determined from the purchase order entered
    o     the vendor master is then searched and the following vendor records are returned as matches:
         ADBR remit-to vendors defined as partners to the purchase order vendor number
         Vendor records with the same tax ID number as the purchase order vendor number
         ADVN vendor records with the same value in LFA1-ZZMCOD2 in the first 12 characters only
         Include the vendor number defined to the purchase order number entered
    o     If the search returns more than one vendor record, then issue the info message u201CMultiple remit-to vendors may exist.  Please validate vendor on PO with vendor on the invoice.u201D
    can anybody provide any inputs in this.
    regards
    Prasun

    I have wondered about this for a while. I was trying something tonight and it seemed to do what you need. I suggest you save your document before trying it.
    Select one of your popups.
    Copy Style
    Select all the popups
    Paste Style
    With all selected, go to the Inspector and add another item to the list.
    All popups should now have the new item. The selected values should not have changed. Copy/paste style is required to make this work.
    Please let me know if this works for you. I've tried it a few times and it seems to do the trick.

  • Select * for multiple tables in cfquery does not work anymore as it used to with CF5

    I am migrating from CF5. the following code used to work:
    SELECT *
    FROM tablea a, tableb b
    where a.id =b.id
    now I get an error when getting the value of ID (error:
    queryname.ID undefined). I suspect the * is the problem and is not
    permitted in that format with CF 7.
    Any help will be appreciated
    Thanks

    cfdump is, for the most part, a debugging tool which allows
    you to look at varialbes and their values at various points of the
    template. Rarely would you want to let real users see that sort of
    output.
    I'd be suspicious if adding cfdump, and nothing else solved
    the problem. I also wouldn't rely on it as a permanent solution.
    Using select * for a query against more than one table is still
    "sloppy" code and cold fusion tends be less forgiving of sloppy
    code with each upgrade.
    In case you were wondering, it's "sloppy" because it brings
    back more data than you need. You will never need the joining
    fields twice.

  • Powershell Unique Selections for Multiple Combo Boxes

    I am currently working on a powershell script that will use 4 combo box controls. I would like for them to all use the same data source whether it be an array or just a .txt file. I would like for each selection to be unique so that no 2 combo boxes can
    have the same item selected. Is there a way to hide the item selected in the data source so the other combo boxes do not even have the option to select it and then when the user changes the item in one of the combo boxes the item is available again? 

    What I am looking do do is have a list of values (T1111,T1112,T1113,T1114) to be selected from by 4 combo boxes. Each value can only be selected once so if one combo box picks T1111 the other 3 do not have that option in its selection. So far I reload the
    combo boxes ever time a selection is made and remove the option from the array, but I was looking to see if there is a better way. As it currently stands, getting distinct values isn't working.
    Code snippet to remove item from array:
    function Get-DataSource
    $array = @("T1111", "T1112", "T1113", "T1114")
    $combo1 = $combobox1.SelectedItem.ToString()
    $combo2 = $combobox2.SelectedItem.ToString()
    $array = $array | Where-Object -FilterScript { $_ -ne $combo1 }
    $array = $array | Where-Object -FilterScript { $_ -ne $combo2 }
    return $array
    I apologize for not uploading my code.
    function OnApplicationLoad {
    #Note: This function is not called in Projects
    #Note: This function runs before the form is created
    #Note: To get the script directory in the Packager use: Split-Path $hostinvocation.MyCommand.path
    #Note: To get the console output in the Packager (Windows Mode) use: $ConsoleOutput (Type: System.Collections.ArrayList)
    #Important: Form controls cannot be accessed in this function
    #TODO: Add modules and custom code to validate the application load
    return $true #return true for success or false for failure
    function OnApplicationExit {
    #Note: This function is not called in Projects
    #Note: This function runs after the form is closed
    #TODO: Add custom code to clean up and unload modules when the application exits
    $script:ExitCode = 0 #Set the exit code for the Packager
    #endregion Application Functions;2
    # Generated Form Function
    function Call-tenet_psf {
    #region Import the Assemblies
    [void][reflection.assembly]::Load('mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::Load('System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::Load('System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::Load('System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::Load('System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
    [void][reflection.assembly]::Load('System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::Load('System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
    [void][reflection.assembly]::Load('System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
    [void][reflection.assembly]::Load('System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
    #endregion Import Assemblies
    #region Generated Form Objects
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form1 = New-Object 'System.Windows.Forms.Form'
    $combobox2 = New-Object 'System.Windows.Forms.ComboBox'
    $combobox1 = New-Object 'System.Windows.Forms.ComboBox'
    $buttonOK = New-Object 'System.Windows.Forms.Button'
    $InitialFormWindowState = New-Object 'System.Windows.Forms.FormWindowState'
    #endregion Generated Form Objects
    # User Generated Script
    function OnApplicationLoad {
    #Note: This function is not called in Projects
    #Note: This function runs before the form is created
    #Note: To get the script directory in the Packager use: Split-Path $hostinvocation.MyCommand.path
    #Note: To get the console output in the Packager (Windows Mode) use: $ConsoleOutput (Type: System.Collections.ArrayList)
    #Important: Form controls cannot be accessed in this function
    #TODO: Add modules and custom code to validate the application load
    return $true #return true for success or false for failure
    function OnApplicationExit {
    #Note: This function is not called in Projects
    #Note: This function runs after the form is closed
    #TODO: Add custom code to clean up and unload modules when the application exits
    $script:ExitCode = 0 #Set the exit code for the Packager
    $FormEvent_Load={
    #TODO: Initialize Form Controls here
    Load-ComboBox $combobox1 (Get-DataSource)
    Load-ComboBox $combobox2 (Get-DataSource)
    function Get-DataSource
    $array = @("T1111", "T1112", "T1113", "T1114")
    $combo1 = $combobox1.SelectedItem.ToString()
    $combo2 = $combobox2.SelectedItem.ToString()
    $array = $array | Where-Object -FilterScript { $_ -ne $combo1 }
    $array = $array | Where-Object -FilterScript { $_ -ne $combo2 }
    return $array
    #region Control Helper Functions
    function Load-ComboBox
    <#
    .SYNOPSIS
    This functions helps you load items into a ComboBox.
    .DESCRIPTION
    Use this function to dynamically load items into the ComboBox control.
    .PARAMETER  ComboBox
    The ComboBox control you want to add items to.
    .PARAMETER  Items
    The object or objects you wish to load into the ComboBox's Items collection.
    .PARAMETER  DisplayMember
    Indicates the property to display for the items in this control.
    .PARAMETER  Append
    Adds the item(s) to the ComboBox without clearing the Items collection.
    .EXAMPLE
    Load-ComboBox $combobox1 "Red", "White", "Blue"
    .EXAMPLE
    Load-ComboBox $combobox1 "Red" -Append
    Load-ComboBox $combobox1 "White" -Append
    Load-ComboBox $combobox1 "Blue" -Append
    .EXAMPLE
    Load-ComboBox $combobox1 (Get-Process) "ProcessName"
    #>
    Param (
    [ValidateNotNull()]
    [Parameter(Mandatory=$true)]
    [System.Windows.Forms.ComboBox]$ComboBox,
    [ValidateNotNull()]
    [Parameter(Mandatory=$true)]
    $Items,
       [Parameter(Mandatory=$false)]
    [string]$DisplayMember,
    [switch]$Append
    if(-not $Append)
    $ComboBox.Items.Clear()
    if($Items -is [Object[]])
    $ComboBox.Items.AddRange($Items)
    elseif ($Items -is [Array])
    $ComboBox.BeginUpdate()
    foreach($obj in $Items)
    $ComboBox.Items.Add($obj)
    $ComboBox.EndUpdate()
    else
    $ComboBox.Items.Add($Items)
    $ComboBox.DisplayMember = $DisplayMember
    $combobox1_SelectedIndexChanged={
    #TODO: Place custom script here
    Load-ComboBox $combobox2 -Items (Get-DataSource)
    $combobox2_SelectedIndexChanged={
    #TODO: Place custom script here
    Load-ComboBox $combobox1 -Items (Get-DataSource)
    # --End User Generated Script--
    #region Generated Events
    $Form_StateCorrection_Load=
    #Correct the initial state of the form to prevent the .Net maximized form issue
    $form1.WindowState = $InitialFormWindowState
    $Form_Cleanup_FormClosed=
    #Remove all event handlers from the controls
    try
    $combobox2.remove_SelectedIndexChanged($combobox2_SelectedIndexChanged)
    $combobox1.remove_SelectedIndexChanged($combobox1_SelectedIndexChanged)
    $form1.remove_Load($FormEvent_Load)
    $form1.remove_Load($Form_StateCorrection_Load)
    $form1.remove_FormClosed($Form_Cleanup_FormClosed)
    catch [Exception]
    #endregion Generated Events
    #region Generated Form Code
    $form1.SuspendLayout()
    # form1
    $form1.Controls.Add($combobox2)
    $form1.Controls.Add($combobox1)
    $form1.Controls.Add($buttonOK)
    $form1.AcceptButton = $buttonOK
    $form1.ClientSize = '614, 289'
    $form1.FormBorderStyle = 'FixedDialog'
    $form1.MaximizeBox = $False
    $form1.MinimizeBox = $False
    $form1.Name = "form1"
    $form1.StartPosition = 'CenterScreen'
    $form1.Text = "Form"
    $form1.add_Load($FormEvent_Load)
    # combobox2
    $combobox2.FormattingEnabled = $True
    $combobox2.Location = '123, 92'
    $combobox2.Name = "combobox2"
    $combobox2.Size = '121, 21'
    $combobox2.TabIndex = 2
    $combobox2.add_SelectedIndexChanged($combobox2_SelectedIndexChanged)
    # combobox1
    $combobox1.FormattingEnabled = $True
    $combobox1.Location = '123, 64'
    $combobox1.Name = "combobox1"
    $combobox1.Size = '121, 21'
    $combobox1.TabIndex = 1
    $combobox1.add_SelectedIndexChanged($combobox1_SelectedIndexChanged)
    # buttonOK
    $buttonOK.Anchor = 'Bottom, Right'
    $buttonOK.DialogResult = 'OK'
    $buttonOK.Location = '140, 254'
    $buttonOK.Name = "buttonOK"
    $buttonOK.Size = '75, 23'
    $buttonOK.TabIndex = 0
    $buttonOK.Text = "&OK"
    $buttonOK.UseVisualStyleBackColor = $True
    $form1.ResumeLayout()
    #endregion Generated Form Code
    #Save the initial state of the form
    $InitialFormWindowState = $form1.WindowState
    #Init the OnLoad event to correct the initial state of the form
    $form1.add_Load($Form_StateCorrection_Load)
    #Clean up the control events
    $form1.add_FormClosed($Form_Cleanup_FormClosed)
    #Show the Form
    return $form1.ShowDialog()
    } #End Function
    #Call OnApplicationLoad to initialize
    if((OnApplicationLoad) -eq $true)
    #Call the form
    Call-tenet_psf | Out-Null
    #Perform cleanup
    OnApplicationExit

  • Dynamic select for multiple tables

    Hi Thanks for your reply.Can you please help me in this issue.
    I have a requirement like how to select data from multiple tables using dynamic select. How do we maintain dynamic where condition.
    Manohar.

    [How to write dynamic where clause|How to write a Dynamic Where clause]

  • Keeping 1 photo selected for printing AFTER editing

    I still haven't adapted comfortably to iPhoto '08, because it's hard to change one of my iPhoto habits. Previously, after selecting a photo to edit, I'd click DONE and then go straight to File>Export or File>Print to output the edited photo. With iPhoto '08, no photo is selected after clicking DONE, but my habit is still to go straight to File>Export or File>Print anyway. Only after the export or print process begins, with a report that iPhoto has 86 photos to transfer, do I remember that iPhoto 08 acts as if the entire album or event has been selected after an Edit session--even if I only edited a single photo.
    Software design should be incremental, not decremental, for the workflow to become more efficient. I think Apple knows this, so it must be something I'm overlooking. A preference setting, maybe? Can anyone offer a suggestion so that I don't waste more time (and photo paper and photo ink) having to reverse an ingrained habit? I'm a semipro photographer and this habit has been established over several years and versions of iPhoto, with thousands of images. Photoshop is great for only a portion of my photos...iPhoto can do the basics better and faster.
    Thanks for any helpful suggestions.

    I hardly ever use the Events mode, but I tried it just now. The yellow selection box stays after editing in Events mode, so it works there.
    I went back into Photos mode, double-clicked on a photo to edit, just clicked Done without doing any editing, and the single photo stayed selected. It's when I actually do something (rotate, enhance, straighten, adjust, etc.) that clicking Done gets me back to the thumbnails without the yellow selection box.
    The more I think about it, the more I think the iPhoto app and/or one of its components has gotten corrupted. Now, if I can only find my iLife '08 DVD to re-install iPhoto, I'll let you know what happens. In the meantime, I'm going to try removing preferences to see if the problem lies in a plist file somewhere.
    Thanks for the great ideas! Appreciated.

  • Selection for Multiple Hierarchy

    Hi,
    I am having query which uses Profit Center Hierarchy ( A ) to display results.
    we have two Profit Center hierarchies created suppose ( A) & (B) . There is one requirment of selection of any one hierarchy for reporting. means user can select either (A) or (B)  from input variable.
    I hv tried with restriction to Profit center with two hierarchy nodes but system gives error <b>' Different Hierarchies are used for characteristic Profit Center'</b>
    To acheive this I dont want to create another query.
    Is there any solution available ?
    thanks,
    Manish

    HI Manish,
    Don't select any hierarchy ,select hierarchy variable to display all hierarchies.
    In variable entry screen (in Analzyer or WEB) it will display all the hierarchies which you want.
    Then select ur desired(two hierarchies) Hierarchy.
    OR
    Try to restrict the two desired hierarchies in QD it self, then it wil display only two hierarchies in Analyzer.
    Hope it will solve your problem.
    regards,
    Shailaja

  • Direct Select for Multiple Objects?

    Trying to fit a 3D box with a 2D skin that I made, and losing miserably.
    I know that using direct select I can move anchor points to fit the DIMs
    of my box, I cannot get Illustrator to use the entire layer, or group in its
    direct select though (Probably why it's called 'Direct' select, right? lol).
    Anyway, anyone know how I can adjust an entire layer of objects? I
    wish Illustrators Transform capability was the same as Photoshops,
    would make this a snap.
    -jd

    Do you know how to use Photoshops Transform feature? It is really a whole
    lot easier to explain it like that. In Photoshop, you can select multiple layers
    (in our case, the layers are really objects ). Transform, and hold down
    CTRL (or whatever the MAC equiv) to Skew and Distort your layer by grabbing
    the corners, or the center of the object and moving. This will allow you to have
    your base |_| all of a sudden turn into a diagonal /_ / .....? Get it?
    Okay I have a 3D box,  at a 35* angle or so. I have a layer that is pretty much
    a rectangle. What I am trying to do is, skew one end, to fit that 35* slope. It
    would essentially make that 90* by 90* recangle diagonal, 90* by 35* grade.
    If that doesn't make sense I will screencap but I think I'm explaining it fairly
    well.

  • Why does Mail 6 keep switching on SSL for SMTP?

    After setting up a POP3 account in Mail 6, with SSL for SMTP disabled, it works fine for a short while, but then suddenly Mail decides to enable the SSL option which of course causes problems sending mail from the account. There is no SSL for this particular email account. When I try to disable the setting it turns off and then immediately turn itself on again. How can I turn it off, does anyone know?

    Thanks William.  I've done that, now will see if the problem pops back up.  It did report that no errors were found.
    I've also seen in the Keychain first aid that it's possible to sort of shuffle the keychain sideways and start again, would that be a sensible step if this doesn't work?  I understand that means re-entering in all my passwords for various services, which is a pain, but far less painful than having to randomly re-generate Gmail passwords

  • Chn combobox how to get channel selection for script and calculatio​ns

    hi, my mother languaje is spanish and i'm very confused 
    the user dialog box what it should be doing is that i could choose from two chn combo boxes 2 angles data from which i want to calculate the difference.
    tl:dr i want to select 2 angles and  Call Calculate("Ch(""ANS"") = (Ch(""L1(1,1))"") -(Ch(""L1(1,2)""))
    this is by far my script in the user dialog box
    'advierte de cambio de variable En ANGLE1
    Sub ChnComboBox1_EventChange(ByRef This) 'Created Event Handler
    Call MsgBoxDisp("Selected channel: " & ChnComboBox1.Text)
    End Sub
    'advierte de cambio de variable En ANGLE2
    Sub ChnComboBox2_EventChange(ByRef This) 'Created Event Handler
    Call MsgBoxDisp("Selected channel: " & ChnComboBox2.Text)
    End Sub
    'PLOTS
    Sub Button1_EventClick(ByRef This) 'Created Event Handler
    Call Calculate("Ch(""Result5"") = (Ch(""L1(1,1))"") -(Ch(""L1(1,2)""))
    End Sub
    had a lot of trouble with examples please help any advice will suffice
    Solved!
    Go to Solution.
    Attachments:
    IMAGE2.png ‏29 KB
    IMAGE1.png ‏32 KB
    IMAGE3.png ‏79 KB

    Hi Johnny,
    As long as you have a reasonably new DIAdem version, you should be able to use the built-in subtraction function from the ANALYSIS panel instead of the channel calculator, like this:
    Call ChnSub(ChnComboBox1.Text, ChnComboBox2.Text, "Result5")
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Random selections for multiple criteria

    I think the easiest way to explain my question would be to use an example.  Lets say I have 10,000 sales reps and I want a random sampling of 10% of them.  I create a formula {@Random}: Rnd(), use that formula to sort, and suppress the details where recordnumber > 1000.  I got that.
    Now lets say those reps are divided into club levels where there are 500 top performers, 2500 in the next group, and 7000 in the last.
    ( {contact.Club} = A )
    ( {contact.Club} = B)
    ( {contact.Club} = C)
    I only want a random 10% from each category, so 50, 250, and 700 respectively.  Does anyone know how I could get that to work?
    The following thread seems similar but I wasn't able to follow or did something wrong.
    Re: Random and Grouping Problem

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly

  • My contacts keep switching names

    Since the update any contacts that I have that are linked keep switching names. For example: mom is linked to "Susan's" Facebook I then selected mom to use as the unified card, it then show her as mom in the contacts, then a week later she is switched back to "Susan"
    I have done this weekly and was wondering if there is something I'm missing or possibly resetting.

    Turn everything off for iCloud...you'll be prompted to keep the data on your phone or delete it. Then delete the iCloud account...scroll down, delete account. Then change your Apple ID password. Once done, set everything up again. You'll also need to update the iTunes/App store...Settings>iTunes/App store...tap the ID shown...sign out...then sign back in. Read here about changing your password:
    http://support.apple.com/kb/HT5624

  • Struggling to search for multiple files

    Hi there,
    I am struggling to do a search / select for multiple files.
    Here is my workflow:
    I have 2 computers, the one is used for all image manipulation using a combination of LR & PS and the other computer is used for the sales presentation using ProSelect.
    Once I am finished with my post production I export all the images to my sales presentation computer in JPG file format.
    After the sales presentation I then want to be able to Star the images they purchased on my post production computer. Currently I have been doing this manually, although time comsuming not too bad when you are only talking 20 images. However this is not working for weddings when looking at 150-200 images.
    This is what I have tried. I did an export of filenames from ProSelect. I then removed the suffix i.e. .jpg. In Lightroom I select the Filter Bar, Text, Any searchabe Text, Contains and then paste in the list of filenames. After quite a while it will come back and say no images found or it might come up with only the 1st image in the list. I have tried several combinations of formating the list of filenames and none seem to work i.e. spaces, commas, semi-colon, each filename in "".
    If anyone can help me in this regard I would be very grateful.
    Thanks
    Tony

    If you have the file names of the photos, you can simply paste the text containing the file names into the filter bar text search (set the filter bar to search by file name)
    For example, here's a short list of filenames that I would paste into the filter bar if I was searching my photos
    DSC_0417 DSC_0922 DSC_0924

Maybe you are looking for