LogicX  FREE Channel Switcher script by AUDIOGROCERY

LogicX  FREE Channel Switcher scripter preset by AUDIOGROCERY
Audiogrocery is excited to announce the new A.G Midi Channel Switcher which is royalty free. The A.G Midi Channel Switcher is a new ultimate midi processing script/preset designed for the LogicX scripter plugin. You can use this plugin preset to switch easily the incoming midi channel into any other channel to be able to change the instrument patch, articulation etc via Key Switches or Program Change messages. The A.G Channel Switcher is designed to be used with any multitimbral Software Instruments such as Spectrasonics Omnisphere, NI Kontakt, Steinberg Halion Sonic etc, or with multitimbral hardware midi devices via the Logic External Instrument software plugin.  
Key Features
• Smooth channel/patch change. You can hold down a few notes and switch to another midi channel via Key Switch (KS) or Program Change (PC) without any interruption. After the switching, the new notes will be performed by the new patch while the old “held” notes will play the old patch until you release them. The method guarantees no hanging note events!
• Non-note events “Pass Thru”. The midi channel of the all other midi events such as Control Change, Pitch Bend etc is transformed into new channel so you can control the new patch accordingly.
• Midi Channel Key Switching. You can assign a custom Key Switching range using Min/Max Note assigners UI parameters. 
• Midi Channel Program Change Switching.
The A.G Midi Channel Switcher comes with Mac Installer for easy install and use in any LogicX project. The tool comes with a detailed User Guide documentation PDF included in the pack.
PS. Audiogrocery is going to release a bunch of FREE Pro Environments & Scripter plugins for Logic, as well as NI Kontakt Extra scripts. Stay in tune…
Regards,
A.G

Hi, for Oracle 10g you can use the Oracle Policy for custom alerts, then you can monitoring the database from Oracle Database Control.
Regards.

Similar Messages

  • Can CVP Check availability of free channel in PRI and route the call?

    We have UCCE setup with ICM 7.x CVP 7.x & CUCM 6.x. There is a requirement from operations team , an inbound call queued to a skillgroup for more than 30 second should be transferred to an external number through T1 PRI.And if no free channel is available on PRI call has to be queued back to skillGroup. We are able to achieve this using IP IVR using Custom call Transfer node . Iam not sure how can we achieve the same using CVP. Is this achievable through CVP /ICM scripting ? If yes how?

    Hi,
    It is possible in CVP to route the call back to an external number. For this you would need to configure a label (Probably the number to which you want to send). If the call is in queue for more than 30 seconds you can send back the label configured to CVP and from CVP you can point a static route to the Egress gateway through which the call can go to the T1 PRI
    Regards,
    Dass
    Please rate useful posts

  • No Free Channel available

    I'm getting the "No Free Channel available" error message after some time looping through the FOR-NEXT below.
    It is very hard to reproduce, some times it does happens sometimes it's just fine.
    I'd like to know what causes it???
    I thought I can through in a  call ChnDel(chnNum) to clean up things but it still crashes with or without it.
    Please advise!!!
    Thanks,
    Boyan
    PtlShow = False
    View.AutoRefresh = false
    DataDelAll
    Call View.Sheets.RemoveAll()
    Set MySheet = View.Sheets.Add("NewSheet")
    call ChnDelete("1-" & ChnNoMax)
    chnNum = 1
    progresNum = 1
    '===================================================================================
    Dim l1, l2, n
    Dim wholeJob, pRatio()
    Dim NewGroup
    Call LoopInit()
    For i = 0 to ubound(ObjTestDates)
      l2 = ubound(ObjTestDates(i).Measurements) + 1
      Call MsgLineDisp ("Channel " & i & " of " & ubound(ObjTestDates))
      wholeJob = 2 * l2
      ReDim Preserve pRatio(i)
      pRatio(i) = (100 / wholeJob)
      NewGroup = "Group " & CStr(i+1) & " - " & ObjTestDates(i).TestDate
      Call GROUPCREATE(NewGroup, i+1)
      Call GroupDefaultSet(i+1)
      For ii = 0 to ubound(ObjTestDates(i).Measurements)
        For n= 0 to 1
          if n = 0 then
            CurrChannel = CStr(ii+1) & " X_Channel " & " - " & ObjTestDates(i).Measurements(ii)
          else
            CurrChannel = CStr(ii+1) & " Y_Channel " & " - " & ObjTestDates(i).Measurements(ii)
          end if
          call ChnDel(chnNum)
          Call chnalloc(CurrChannel,ObjTestDates(i).ChannelLength(ii)+1,1,DataTypeFloat64,"Numeric",i+1,chnNum)
          Call LoopInc(progresNum*pRatio(i))
          chnNum = chnNum + 1
          progresNum = progresNum + 1
        Next
      Next
      progresNum = 0
      Call LoopInc(progresNum*pRatio(i))
      progresNum = 1
    Next
    Call LoopDeInit()
    Call msgboxcancel

    See more discussion about this behavior here.  Thanks.

  • Do I need Fibre Channel Switch?

    I have purchased an original Xserve RAID which I plan to connect to either an Xserve G4 slot-load -OR- to an Xserve G5 (not both; just haven't decided yet). I know I need the fibre card from Apple, for $500. But can I connect the Xserve directly to the RAID, or do I need a fibre switch? Some info on the Apple Web site implies I do. If not, do I simply connect the fibre card from the Xserve to the RAID using the appropriate cables?
    Also, can anyone tell me any real downsides to the original RAID vs. the newer SFP version? Anything I need to know? Main goal here is to basically get a lot of storage space. Probably will use RAID 5. Currently, the RAID has 4 drives, I will probably add more later.
    Any help is appreciated!
    Thanks,
    Pete
    Xserve   Mac OS X (10.4.9)  

    If you're connecting the RAID to a single host then you do not need a fiber channel switch. You only need a switch if you're connecting more than 2 devices (e.g. one host to two RAIDs, or one RAID controller to 2 hosts).
    As for the downsides, none, really. It's just a different cable connector.
    As for the drives, it's a PITA to expand volumes later, so unless you're happy using a 4-drive array and a separate 3-drive array I'd recommend getting the drives sooner rather than later.

  • New DVR Issues (First Run, Channel Switching, etc.)

    I've spent the last 30 minutes trying to find answers through the search with no luck, so sorry if I missed something.
    I recently switched to FIOS from RCN cable in New York.  I've gone through trying to setup my DVR and am running into issues and was hoping for some answers.
    1.  I setup two programs to record at 8PM, I was watching another channel at the time and only half paying attention.  Around 8:02 I noticed a message had popped up asking if I would like to switch channels to start recording.  I was expecting it to force it to switch like my old DVR, but in this case it didn't switch and I missed the first two minutes of one of the shows.  I typically leave my DVR on all day and just turn off the TV, this dual show handling will cause issues with that if I forget to turn off the DVR.  Is there a setting I can change that will force the DVR to choose one of the recording channels?
    2.  I setup all my recordings for "First Run" because I only want to see the new episodes.  One show I setup was The Daily Show on comedy central, which is shown weeknights at 11pm and repeated 3-4 times throughout the day.  My scheduled recordings is showing all these as planned recordings even though only the 11pm show is really "new".  Most of the shows I've setup are once a week so they aren't a problem, but this seems like it will quickly fill my DVR.  Any fixes?
    Thanks for the help.
    Solved!
    Go to Solution.

    I came from RCN about a year ago.  Fios is different in several ways, not all of them desirable.  Here are several ways to get--and fix--unwanted recordings from a series recording setup.
    Some general principles. 
    Saving changes.  When you originally create a series with options, or if you go back to edit the options for an existing series, You MUST save the Series Options changes.  Pretty much everywhere else in the user interface, when you change an option, the change takes effect immediately--but not in Series Options.  Look at the Series Options window.  Look at the far right side.  There is a vertical "Save" bar, which you must navigate to and click OK on to actually save your changes.  Exiting the Series Options window without having first saved your changes loses all your attempted changes--immediately.
    Default Series Options.  This is accessed  from [Menu]--DVR--Settings--Default Series Options.  This will bring up the series options that will automatically be applied to the creation of a NEW series. The options for every previously created series will not be affected by a subsequent modification of the Default Series Options.  You should set these options to the way you would like them to be for the majority of series recordings that you are likely to create.  Be sure to SAVE your changes.  This is what you will get when you select "Create Series Recording" from the Guide.  When creating a new series recording where you think that you may want options different from the default, select "Create Series with Options" instead.  Series Options can always be changed for any individual series set up later--but not for all series at once.
    Non-series recordings.  With Fios you have no directly available options for these.  With RCN and most other DVRs, you can change the start and end times for individual episodes, including individual episodes that are also in a series.  With Fios, your workarounds are to create a series with options for a single program, then delete the series later;  change the series options if the program is already in a series, then undo the changes you made to the series options later; or schedule recordings of the preceding and/or following shows as needed.
    And now, to the unwanted repeats. 
    First, make sure your series options for the specific series in question--and not just the series default options--include "First Run Only".  If not, fix that and SAVE.  Then check you results by viewing the current options using the Series Manager app under the DVR menu.
    Second, and most annoying, the Guide can have repeat programs on your channel tagged as "New".  It happens.  Set the series option "Air Time" to "Selected Time".  To make this work correctly, you must have set up the original series recording after selecting the program in the Guide at the exact time of a first run showing (11pm, in your case), and not on a repeat entry in the Guide.  Then, even it The Daily Show is tagged as New for repeat showings, these will be ignored. 
    Third, another channel may air reruns of the program in your series recording, and the first showing of a rerun episode on the other channel may be tagged as "New".  These can be ignored in your series if you set the series option "Channel" to "Selected Channel".  Related to this, if there is both an SD and HD channel broadcasting you series program, you will record them both if the series option "Duplicates" is set to "Yes".  However, when the Channel option is set to "Selected Channel", the Duplicates Option is always effectively "No", regardless of what shows up on the options screen.  
    As for you missing two minutes,  I have sereral instances in which two programs start recording at the same time.  To the best of my recollection, whenever the warning message has appeared, ignoring it has not caused a loss of recording time.  You might have an older software version.  Newest is v.1.8.  Look at Menu--Settings--System Info.  Or, I might not have noticed the loss of minutes.  I regularly see up to a minute of previous programming at the start of a recording, or a few missing seconds at the beginning or end of a recording.  There are a lot of possibilities for that, but the DVR clock being incorrect is not one of them.  With RCN, the DVR clocks occasionally drifted off by as much as a minute and a half.

  • Possible to make non-HD channel switch to HD channel? (like 7 to 507)

    Hey, just got Fios installed this week and am liking it so far.
    Quick question... I had Cablevision before this, and they had it set up so that if you put on an non-HD channel using an HD set top box, it automatically switched to the HD version of that channel.
    Is there any way to make this happen with Fios? So like... if I put on 7, it would automtically change to 507.
    Thanks in advance for any help.
    Solved!
    Go to Solution.

    Welcome to FiOS, and welcome to the forums!
    Unfortunately no. But if you will take the time to set up a Favorites list, if you haven't already done so, then you can at least somewhat minimize accidentally surfing to the SD channel by mistake. If you are interested in setting up a Favorites list, here is a link to a thread which should help you get started:
    http://forums.verizon.com/t5/FiOS-TV-Technical-Assistance/Exploiting-FiOS-TV-Favorites/td-p/9935
    With my Favorites list I have all of the HD channels I care about included, and only those SD channels I am interested in that are not duplicated by HD channels. And I must admit, it is pretty rare that I ever watch any SD channel any more.....
    Justin
    Verizon FiOS TV, Internet, and phone
    QIP6416-P1, IMG 1.7.1, Build 09.97
    Keller, TX 76248

  • Multiple channels switch scanning DMM

    Hi,
    I am using DMM (NI PXI  4071) and switch (NI TB 2627). I want to do the measurement by scanning one channel then start to measure, after that go to another channel and start to measure again (so called syncronous).
    But, I have problem in my code to display the output of each channel. I just can show the output of channel 0 only.
    Here I attach my code. Instead of displaying the output of the channels, actually it only can show the output of channel 0 according to how many samples that I want. That's why I try so hard to show output of others channels.
    anyone can help?
    Thank you for your help.=)
    Sorry my code is very messy.
    Solved!
    Go to Solution.
    Attachments:
    try.vi ‏144 KB

    Thanks for the response.=)
    Yeah... that's my bad.. I just notice that mistake.
    But actually I have change the code to become like this. (see attachment)
    I'm pretty sure that if I can handle the error, then I can see the output of each channels based on the physical channel that I want.
    But now, I cant figure out the error. Because it keeps saying that it's channel based task only though I already follow the example how to use daqmx create channel and daqmx read.
    Attachments:
    try6.vi ‏196 KB
    ERROR.JPG ‏117 KB

  • Monitor color profile, fast switch script

    Hi everyone,
    I often switch between two monitor color profile, the default one "LED Cinema Display" and the calibrated one, named with the date of calibration (ex:"22June2011").
    Is there a way to fast switch between this two with a script, without entering in monitor preferences and move to color tab every time? Maybe set an icon on the menu bar... Or an icon on the dock...
    Thanks,
    Filippo

    More important, the question is not about color management, is about scripting.
    Otherwise we're just wasting words, that doesn't seem the right place to speak about profiling...
    Do you want help or not? What you're asking has everything to do profiling and color management. You're going about the use of profiles for your monitor completely wrong.
    Any profile is an image of how that, and only that device displays, captures or reproduces color. The only monitor profile that makes any difference is one you create. Since you're using i1Profiler, then you must be using an i1 Pro to profile the monitor.
    The monitor profile you made with i1Profiler is the only one you should be using. It is an exact description of the white point, black point, gamut and color range of the monitor you are looking at. The canned profile has nothing to do with the monitor in front of you. It's a generic average that is just short of completely useless since it is not a direct description of the monitor you own. Forget the "LED Cinema Display" profile, or any other canned profile on the system.
    I can only assume you're trying to simulate CMYK color in Photoshop. To do that, your start with the monitor profile you have. To create a meaningful CMYK simulation, you need to create your own inks file to use as your CMYK color space in Photoshop.

  • Urgent problem! please help. high speed digitizer, channel switch time too long!

    Dear all NI high speed digitizer experts:
     I post a question concerning the two-channel configuration using NI5154 digitizer (see Need help to configure a two-channel acquisition using NI5154 ).
     As we need to do some measurement using NI5154 very soon so purchase a DAQ board as suggested by Efrain is not a option for our coming experiment. So I try to configure the NI5154 a two channel acquisition. I configure the NI5154 to count pulse in two channels. Our experimental setup will send pulse to channel 0 for 400 ms and then stop. 100 ms later pulses from other source will be send to channel 1 for 2 s.  I thought the 100ms dead time in our setup would be long enough for the digitizer to switch from channel 0 to channel 1. But after some test I found the digitizer takes more time to switch between channels. 
    I made a test vi (NISCOPE-Timing.vi) just for count how many ms it takes for the digitizer to switch between channels. In the attached vi, if you run for only one channel one loop takes about 20 ms in my pc. If you run for two channels it takes about 130 ms for one loop. If you just run one channel twice the loop time is about 40 ms (I mean stop a channel and then restart the that channel).
    I don't understand why it takes so long to switch from channel 0 to channel 1.  As I tested the niScope Commit.vi consumes a lot of time for the second channel. Is there any way to avoid this? We can not extend the 100ms long dead time of out set up so I must get rid of this problem. 
    Solved!
    Go to Solution.
    Attachments:
    NiSCOPE-Timing.vi ‏34 KB

    Hi Lixin,
    There are a couple of different options that you may try. The first, which it sounds like you may not prefer, is to use the TRIG line on the 5154 and somehow find a way to route both sets of pulses to that line. You can either somehow connect both lines to the one input or use some sort of external switch since the signals will not come in at the same time.
    Unfortunately, what you re seeing in terms of the time it takes the board to reconfigure itself for a different trigger channel and re-inititiate is due to the settling time that is necessary for the board to be able to fully reach its specifications. The majority of settling usually occurs pretty quickly, but the board will wait for some time to get the best possible performance in terms of specs. If you are okay with reducing this settling time (and very slightly diminish the specified performance), then you can use an internal scope property to set the max settling time.
    I have attached a .rc file which must be placed in the LabVIEW directory for niScope to enable use of this property node. Please place the file in your ...\Program Files\National Instruments\<LabVIEW 2009>\instr.lib\niScope directory. Once the file is in that directory, restart LabVIEW, and you should be able to see a new category in the niScope Property Node tree titled "Internal". Under that category, you will have the Max Settling Time property, which gives the driver a maximum amount of time (in seconds) to wait for settling before beginning a new acquisition. Add this new property to your first property node at the beginning of your program. I tested this out with a value of 50 ms and found that my initiate went from ~125 ms to ~53 ms or so after reconfiguring the trigger channel and re-initiating.
    Hope this helps!
    Daniel S.
    National Instruments
    Attachments:
    niScopeMaxSettling.zip ‏1 KB

  • AirPort Utility 6.0 Invalid Channel switching from 5Ghz to 2.4Ghz

    I have AirPort Utility 6.0 and the older Airport Extreme Oct 2009 (FC340LL/A) without the duel radios.  I believe I found a bug in the AirPort Utility 6.0 when switching between wireless modes.  When I asked the AirPort Extreme to operate at 5Ghz 802.11n only and picked the channel in the 100's it switch over fine.  I realized that the iPhone's must not have a 5Ghz radio in them because it could not find my wireless network anymore.  When I went back to the AirPort Utility to change it back to 2.4Ghz .11n or really trying to switch the radio back to 2.4Ghz I kept getting invalid channel when trying to save the config and update.  It seems that the  AirPort Utility 6.0 would not keep the channel setting saves to what I selected.  It did not matter if I picked channel 1 or 11 or automatic.  After quitting the AirPort Utility app a few times rebooting the AirPort Extreme a few times the only way around this was to tell the AirPort Utility to default the setting on my Extreme back to factory defaults which changed the radio back to 2.4Ghz mode.
    Any suggestions Apple or anyone else ran into this problem?

    I am experiencing this same problem.  When switching to the 5ghz only radio it reports the channel is invalid when I attempt to update.  Whether I choose automatic or any other channel it keeps saying it is invalid.  I am running the latest updates on my macbook pro and airport utility 6.0.  My airport express is version 7.6.1.  It is being run in bridge mode.  I also have a time capsule in bridge mode as well.
    I am still working on this.

  • Does anyone know of a free Comments box script / widget that actually works???

    Re: Dreamweaver 2014.1.1
    I've searched and tried over thirty different scripts so far....everything from HTML to CSS to javascript! Some java's worked and came out well (ex. Free Comment Script - Generate free ajax driven HTML comments on your website.) BUT when I press the "Post Comment" it does nothing at all. But other than that their great in reference to looks and what-not.
    Attached are pictures of the web screen-shot (above) where all is working EXCEPT the post comment and below is the script.
    So if anyone knows how to either get my java script I noted above to work when I press "Post Comment " or can link me to a reliable, simple Comments box/script/widget for me to post at the bottom of my <body> I would thank you dearly

    So the concept was that the spam was through the site providing, I completely understand....as I did get a lot of "hocus-pocus" crap during the preview of whatever code I pasted.
    As for the code which I installed and came up blank, here is a copy of it (I saved it just in case I want to try it again):
    <div id="disqus_thread"></div>
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES * * */
        var disqus_shortname = 'httpwwwoneidaservicescommariabdayhtml';
        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
    for comment count, add:
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES * * */
        var disqus_shortname = 'httpwwwoneidaservicescommariabdayhtml';
        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function () {
            var s = document.createElement('script'); s.async = true;
            s.type = 'text/javascript';
           s.src = '//' + disqus_shortname + '.disqus.com/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    </script>

  • HSRP over L3 port-channel, switches do not ping each other

    Hello guys, 
    I have a L3 port-channel between 2 gigabit ethernet interfaces (one per switch Catalyst 6509), towards two giga interfaces in another two Catalyst 6509 in the other end. The port-channel is configured as follows in one of the ends (the first pair of 6509): 
    interface GigabitEthernet3/37
     description Conexion 
     no ip address
     channel-group 8 mode on
    interface GigabitEthernet3/38
     description Conexion 
     no ip address
     channel-group 8 mode on
    For each Catalyst 6509, the port-channel 8 has a HSRP group, 254. In one of the Catalyst (Central-1) the IP assigned is 192.168.254.253/24 and in the other (Central-2), 192.168.254.254/24. Here is the conf for one Catalyst 6509 (Central-1): 
    interface Port-channel8
     description CENTRALES
     ip address 192.168.254.253 255.255.255.0
     no ip redirects
     no ip unreachables
     no ip proxy-arp
     no ip route-cache
     load-interval 30
     standby delay minimum 20 reload 300
     standby preempt delay minimum 120
     standby 254 ip 192.168.254.254
     standby 254 timers 1 3
    As you can see, HSRP group 254 is defined and it is answering from L3, (from any host or switch, for the 3 IPs), but my doubt is about the HSRP behaviour between both Catalyst. They can't find which one is the master and in fact, they can't ping each other. The status of the group defined for po 8 is: 
    CENTRAL-1#sh standby port-channel 8
    Port-channel8 - Group 254
      Local state is Active, priority 100
      Hellotime 1 sec, holdtime 3 sec
      Next hello sent in 0.865
      Virtual IP address is 192.168.254.254 configured
      Active router is local
      Standby router is unknown
      Virtual mac address is 0000.0c07.acfe
      5 state changes, last state change 2w3d
      IP redundancy name is "hsrp-Po8-254" (default)
    CENTRAL-2#sh standby port-channel 8
    Port-channel8 - Group 254
      Local state is Active, priority 110
      Hellotime 1 sec, holdtime 3 sec
      Next hello sent in 0.645
      Virtual IP address is 192.168.254.254 configured
      Active router is local
      Standby router is unknown
      Virtual mac address is 0000.0c07.acfe
      5 state changes, last state change 6w1d
      IP redundancy name is "hsrp-Po8-254" (default)
    A "sh standby br" shows each switch considers itself the master and does not know the standby. 
    The thing is both switches have not an interface to connect L3 from network 192.168.254.0/24 directly. I mean, they only have one interface connected to the other end of the etherchannel, but not between them. Is this the reason why they can't ping each other, and consequently, they can't properly use HSRP group? 
    Could you tell me which could be a solution to this issue? I can't guess what can be done since the physical interfaces gi3/37 and gi3/38 exist and I think no any other interface should be configured in this network (192.168.254.0/24). 
    Thank you very much in advance. 

    Hello Jon, 
    Thank you very much for your answer. For the 3 possibilities, I answer you: 
    1) The pair are interconnected with a L2 trunk but the thing is this network, 192.168.254.0/24, is not associated to a vlan, but to a L3 etherchannel, so there is no way to associate it to a VLAN, am I right? 
    2) The other end of connections I think is configured at L3 too. 
    3) I am pending to know about the other end, but I think it is L3 too. 
    Anyway, although you have been very clear, try to imagine just 2 switches connected towards another 2 by one interface per each: 
    Central-1: gi3/37 ---> Ext1: gi1/20
    Central-2: gi3/38 ---> Ext2: gi1/30
    If etherchannel from Central is L3, I do not know how to include this traffic in vlan 2.... 
    Well, I keep on thinking. Thank you very much. 

  • Plot channel within script

    Hi Guys,
    I have been using Diadem only for 1 month and I got great answers from this forum previously. This question may sound trivial but could someone tell me how to plot a channel by writing a script. So far I have this:
    Call View.LoadLayout("view3")
    View.Sheets("Sheet 1").Areas("Area : 1").DisplayObjType = "CurveChart2D"
    View.Sheets("Sheet 1").Cursor.Type = "Frame"
    View.Sheets("Sheet 1").Cursor.Mode = "GraphPoints"
    The only way I have found to import a channel to this area is to Call interactioOn(), import it manually then end the interaction. I would like to do this manually, I tried this but it would give errors:
    View.Sheets("Sheet 1").Areas("Area : 1").DisplayObj.Curves.Add(1,3)
     Can anyone give me a hand?
    Thanks
    Solved!
    Go to Solution.

    Hi Brad,
    If I define previously "Sheet", "Area", "Graph" and "Curve" it works but now the rest of the script doesn't. After adding the channel there is an interaction where the user selects the part of the graph he want to keep using a band cursor, now that section is not working as when I end the interaction I get an empty channel. Could you please have a look at the script and let me know if you see the problem? I guess I have to change the way R4, R5, R6 & R7 are defined but I don't know how to do it. This script has the changes you told me to do and I comented the 3 lines of code that your solution replaces.
    Thanks,
    Leo
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    Call Data.Root.Clear() 'Clear the dataroot
    '--------------- Loads Dialog box to select TDM file ---------------------------
    Dim MyFileNames, iCount, Sheet, Area, Graph, Curve
    Call FileNameGet("ANY", "FileRead", DataReadPath, "TDM data (*.tdm),*.tdm", "All.lst", True, "Data selection")
    MyFileNames = Split(FileDlgFileName,"|")
    For iCount = 0 To Ubound(MyFileNames)
    Call DataFileLoad(MyFileNames(iCount))
    Next
    Call View.LoadLayout("view3")
    Set Sheet = View.Sheets(1)
    Set Area = Sheet.Areas(1)
    Area.DisplayObjType = "CurveChart2D"
    Set Graph = Area.DisplayObj
    Call Graph.Curves.RemoveAll
    Set Curve = Graph.Curves.Add("time","velocity")
    'View.Sheets("Sheet 1").Areas("Area : 1").DisplayObjType = "CurveChart2D"
    'View.Sheets("Sheet 1").Cursor.Type = "Frame"
    'View.Sheets("Sheet 1").Cursor.Mode = "GraphPoints"
    ' Shows View panel, allows customer interaction for choosing two Data channels -
    '---------------- and selecting two Frame cursor positions ---------------------
    WndShow "View"
    '- End interaction with File > End iteraction or by , or the appropriate button-
    '- on the toolbar to disable the interaction mode (hand with red stop button) --
    call msgboxdisp("Select Channel data and drag it onto the View panel")
    call msgboxdisp("Select 2 cursor position leaving between the cursors the desired part")
    Call InteractionOn() 'Allows for customer interaction to load data & select two cursor positions
    '------------------------- Calculates Cursor data ------------------------------
    R4 = view.Sheets("Sheet 1").Cursor.X1 'Cursor 1 X position
    R5 = view.Sheets("Sheet 1").Cursor.X2 'Cursor 2 X position
    R6 = view.Sheets("Sheet 1").Cursor.Y1 'Cursor 1 Y position
    R7 = view.Sheets("Sheet 1").Cursor.Y2 'Cursor 2 Y position
    '--------------- Stores Cursor data into the new channel groups ----------------
    Dim Chlength,Chnumb,i
    Chlength=CL(1)'CL calculates the channel lenght
    'call msgboxdisp(Chlength,"MB_OK", "MsgTypeWarning",, 4)
    Chnumb= ChnNoMax'Calculates the number of channels
    For i=1 to Chnumb
    if R5>R4 then
    Call DataBlDel(i,R5,Chlength)
    Call DataBlDel(i,1,R4)
    else
    Call DataBlDel(i,R4,Chlength)
    Call DataBlDel(i,1,R5)
    end if
    Next
    '-------------- Loads Dialog box for saving TDM file ---------------------------
    scriptInclude("Save_File")

  • Wo ist der Fehler? : Unexpected Value in einem Switch-Script

    Hallo!
    (ich benutze Adobe Acrobat 11 prof mit Windows 7 prof. -Umgebung) 
    Ich "arbeite" seit Januar 2014 mit Acrobat 11 prof. Kein Informatiker, reiner Anwender...
    Ich möchte in einem "Ernährungs-PDF-Bilderbuch" Wissen abfragen. Mit einem Script, das in einem anderen Formular bereits funktionierte, hänge ich jetzt und komme nicht weiter.
    Jede Seite hat 4 Optionsfelder und 1 Textfeld. Bsp: die Gruppe: "Blumenkohl" mit - verschiedenen Kohlehydratmengen (0-3 KE als Optionsfeldauswahl).
    Das Script steht in dem zugehörigen Textfeld ("Blumenkohl-KH") in einem benutzerdefinierten Berechnungsscript.
    Format: "Keine":
    Das Script lautet:
    var cSelection = this.getField("Blumenkohl").value;
    switch (cSelection)
       case "0":
         event.value = "Richtig! Blumenkohl hat 0 KE ";
         break;
       case "1":
         event.value = " 1 KE ist falsch! Blumenkohl hat 0 KE ";
         break;
       case "2":
         event.value = "2  KE ist falsch! Blumenkohl hat 0 KE ";
         break;
       case "3":
         event.value = "3 KE ist falsch! Blumenkohl hat 0 KE ";
         break;
       case "Off":
         event.value = "Keine Antwort: Fehler! Blumenkohl hat 0 KE ";
         break;
       default:
         // This option should never be called since
         // all possible cased are handled
         event.value = "Unexpected Value: " + cSelection;
         break;
    Nach dem Reset erhalte ich erwartungsgemäß die Auswertung: Keine Antwort: Fehler! Blumenkohl hat 0 KE!
    Ich kann alle Optionsfelder anklicken, aber ich erhalte in dem Textfeld immer die Auswertung. "Unexpected Value: " mit dem zugehörigen "cSelection"-Wert.
    zuvor kamen Fehlermeldungen, wie:
    ReferenceError: SetFieldValues is not defined
    SetFieldValues is not defined
    nachdem ich ein Leerzeichen zwischen switch und (cSelection) eingefügt habe, kommen jetzt gar keine Fehlermeldungen mehr. Dennoch bleibt die Fehlausgabe "Unexpected Value: ...", ohne dass ich den Grund für das Nichtfunktionieren erkennen kann.
    Danke für die Rückmeldungen.
    chris.sberg

    Danke für die Antwort - aber es funktioniert auch dann nicht.
    Es sieht dann so aus:
    //-----------------Bearbeiten Sie nicht die XML-Tags--------------------
    //<AcroForm>
    //<ACRO_source>Blumenkohl-KH:Calculate</ACRO_source>
    //<ACRO_script>
    /*********** gehört zu: AcroForm:Blumenkohl-KH:Calculate ***********/
    var cSelection = this.getField("Blumenkohl").value;
    switch (cSelection)
       case "0":
         event.value = "Richtig! Blumenkohl hat 0 KE ";
         break;
       case "1":
         event.value = " 1 KE ist falsch! Blumenkohl hat 0 KE ";
         break;
       case "2":
         event.value = "2  KE ist falsch! Blumenkohl hat 0 KE ";
         break;
       case "3":
         event.value = "3 KE ist falsch! Blumenkohl hat 0 KE ";
         break;
       case "Off":
         event.value = "Keine Antwort: Fehler! Blumenkohl hat 0 KE ";
         break;
    //</ACRO_script>
    //</AcroForm>
    Es bleibt jetzt an der letzten Antwort hängen: "Keine Antwort: Fehler! Blumenkohl hat 0 KE" -
    Wenn ich auch die Zeilen von case "off" entferne, also nur case "0" bis "3" stehen lasse, dann erscheint gar kein Text mehr.
    Habe ich vielleicht bei der Formatierung des Textfeldes einen Bug?
    Danke für die Tips!
    chris.sberg

  • Moving buttons in a subform switch script

    Hi,
    I've got a couple of issues with a form I'm making.
    1.  It's flowable and when I set the subform to be flowed it moves my buttons around at the beginning -- print, reset, e-mail -- and I can't put spacing between them any more.  How do I correct that?
    2.  I have a drop down list that will alter the text in some fields based on the selection.  I can get it switch in the first field, but not later ones.  I don't know if that's because they're in subforms or what?  I had this working yesterday and now it doesn't and I'm not totally sure what I changed.
    I tried to put the file on acrobat.com to then put a link in here to it, but it won't let me import it because it's already a pdf.  I do have it downloaded, but when open that it tries to save it back on my computer.  So if there is another wya to show you the file to be helpful that would be good to know.
    Thanks!

    Hi,
    Here is the form back to you:
    https://acrobat.com/#d=pQBEBIQpecZvF1v1vE1eKg
    You will see I have place the three buttons inside a positioned subform. This allows you to separate the buttons and position them as you want.
    The switch statement had an incomplete reference for the last two objects: Subform2.Performance.rawValue and Subform3.PerformanceComments.rawValue.
    These showed up in the Javascript Console (Control+J), which you should use to debug your forms. When in preview mode or in Acrobat press Control+J. As you interact with the form any errors should show up here.
    Good luck,
    Niall

Maybe you are looking for