Ser. Int. 5 min Input/Output Rate

Dear Net Pros,
On my serial interface of my AS 5350, I am having the following output as given below. The 5 minute input rate is half of the 5 minute output rate. Can someone suggest how I can fix this problem. I am currently also having access-lists configured in my gateway. Need some solution at the earliest possible.
Serial0/0 is up, line protocol is up
Hardware is DSCC4 Serial
Internet address is 61.11.227.114/30
MTU 1500 bytes, BW 8192 Kbit, DLY 20000 usec,
reliability 255/255, txload 11/255, rxload 5/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters 05:49:59
Queueing strategy: fifo
Output queue 0/4096, 8898 drops; input queue 0/4096, 0 drops
5 minute input rate 162000 bits/sec, 240 packets/sec
5 minute output rate 373000 bits/sec, 718 packets/sec
6151942 packets input, 515269067 bytes, 0 no buffer
Received 2447 broadcasts, 0 runts, 0 giants, 0 throttles
39 input errors, 8 CRC, 31 frame, 0 overrun, 0 ignored, 0 abort
17398133 packets output, 1121504239 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
Rushabh

Here is the Gateway Config for you:
AS5350_1#sh run
Building configuration...
Current configuration : 11303 bytes
! Last configuration change at 01:30:05 UTC Mon Dec 15 2003
! NVRAM config last updated at 01:30:08 UTC Mon Dec 15 2003
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec localtime
service password-encryption
hostname AS5350_1
boot system flash c5350-is-mz.122-2.XB6.bin
no boot startup-test
logging buffered 30000 debugging
aaa new-model
aaa group server radius mind
server 202.183.221.215 auth-port 1645 acct-port 1646
server 61.11.231.122 auth-port 1645 acct-port 1646
aaa authentication login default local
aaa authentication login h323 group mind
aaa authorization exec h323 group mind
aaa accounting network h323 start-stop group mind
aaa accounting connection h323 start-stop group mind
aaa session-id common
resource-pool disable
spe country e1-default
spe 1/00 2/09
firmware location flash:np.8.8.1.spe
ip subnet-zero
ip cef
no ip domain-lookup
voice class codec 1
codec preference 1 g723r63 bytes 48
codec preference 2 g723ar63
codec preference 3 g723ar53
codec preference 4 g729r8
mta receive maximum-recipients 0
dial-control-mib retain-timer 1000
dial-control-mib max-size 1200
controller E1 3/0
framing NO-CRC4
ds0-group 1 timeslots 1-15,17-31 type r2-digital r2-compelled ani
cas-custom 1
country china
category 2
answer-signal group-b 1
dnis-digits min 1 max 9
groupa-callerid-end
controller E1 3/1
framing NO-CRC4
ds0-group 1 timeslots 1-15,17-31 type r2-digital r2-compelled ani
cas-custom 1
country china
category 2
answer-signal group-b 1
dnis-digits min 1 max 9
groupa-callerid-end
controller E1 3/2
framing NO-CRC4
ds0-group 1 timeslots 1-15,17-31 type r2-digital r2-compelled ani
cas-custom 1
country china
category 2
answer-signal group-b 1
dnis-digits min 1 max 9
groupa-callerid-end
controller E1 3/3
framing NO-CRC4
ds0-group 1 timeslots 1-15,17-31 type r2-digital r2-compelled ani
cas-custom 1
country china
category 2
answer-signal group-b 1
dnis-digits min 1 max 9
groupa-callerid-end
gw-accounting h323
gw-accounting syslog
gw-accounting h323 vsa
gw-accounting voip
translation-rule 1
Rule 0 ^111856 0
translation-rule 2
Rule 0 ^112856 0
translation-rule 3
Rule 0 ^113856 0
interface FastEthernet0/0
ip address x.x.x.x 255.255.255.248
ip access-group 101 in
ip accounting output-packets
ip route-cache flow
duplex auto
speed auto
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
interface Serial0/0
ip address x.x.x.x 255.255.255.252
ip access-group 101 in
ip accounting output-packets
no cdp enable
interface Serial0/1
no ip address
shutdown
clockrate 2000000
ip classless
ip route 0.0.0.0 0.0.0.0 61.11.227.113
ip http server
logging 61.11.231.122
access-list 101 permit ip 202.183.221.208 0.0.0.15 any
access-list 101 permit ip 61.11.231.120 0.0.0.7 any
access-list 101 permit ip host 64.50.72.85 any
access-list 101 permit ip host 210.55.9.194 any
access-list 101 permit ip host 64.50.72.123 any
access-list 101 permit ip host 203.144.226.198 any
access-list 101 permit ip host 66.15.38.214 any
access-list 101 deny tcp any any
access-list 101 deny udp any any
access-list 101 deny ip any any
snmp-server community CSCO14344 RW
snmp-server trap-source FastEthernet0/0
snmp-server packetsize 8192
no snmp-server enable traps tty
radius-server host 202.183.221.215 auth-port 1645 acct-port 1646 key 7 0822455D0
A16081E1C0F
radius-server host 61.11.231.122 auth-port 1645 acct-port 1646 key 7 094F471A1A0
A1A1B0508
radius-server retransmit 3
radius-server authorization permit missing Service-Type
radius-server vsa send accounting
radius-server vsa send authentication
call rsvp-sync
call application voice debit tftp://61.11.231.122/app_debitcard.2.0.2.8.tcl
call application voice debit uid-len 6
call application voice debit pin-len 6
call application voice debit language 1 en
call application voice debit set-location en 0 tftp://61.11.231.122/prompts/en/
voice-port 3/0:1
echo-cancel coverage 24
compand-type a-law
cptone CN
bearer-cap Speech
voice-port 3/1:1
echo-cancel coverage 24
compand-type a-law
cptone CN
bearer-cap Speech
voice-port 3/2:1
echo-cancel coverage 24
compand-type a-law
cptone CN
bearer-cap Speech
voice-port 3/3:1
echo-cancel coverage 24
compand-type a-law
cptone CN
bearer-cap Speech
mgcp profile default
dial-peer cor custom
dial-peer voice 1 pots
preference 1
destination-pattern 111856T
translate-outgoing called 1
direct-inward-dial
port 3/0:1
dial-peer voice 2 pots
preference 2
destination-pattern 111856T
translate-outgoing called 1
direct-inward-dial
port 3/1:1
dial-peer voice 3 pots
preference 3
destination-pattern 111856T
translate-outgoing called 1
direct-inward-dial
port 3/2:1
dial-peer voice 4 pots
preference 4
destination-pattern 111856T
translate-outgoing called 1
direct-inward-dial
port 3/3:1
dial-peer voice 5 pots
preference 1
destination-pattern 112856T
translate-outgoing called 2
direct-inward-dial
port 3/0:1
dial-peer voice 6 pots
preference 2
destination-pattern 112856T
translate-outgoing called 2
direct-inward-dial
port 3/1:1
dial-peer voice 7 pots
preference 3
destination-pattern 112856T
translate-outgoing called 2
direct-inward-dial
port 3/2:1
dial-peer voice 8 pots
preference 4
destination-pattern 112856T
translate-outgoing called 2
direct-inward-dial
port 3/3:1
dial-peer voice 9 pots
preference 1
destination-pattern 113856T
translate-outgoing called 3
direct-inward-dial
port 3/0:1
dial-peer voice 10 pots
preference 2
destination-pattern 113856T
translate-outgoing called 3
direct-inward-dial
port 3/1:1
dial-peer voice 11 pots
preference 3
destination-pattern 113856T
translate-outgoing called 3
direct-inward-dial
port 3/2:1
dial-peer voice 12 pots
preference 4
destination-pattern 113856T
translate-outgoing called 3
direct-inward-dial
port 3/3:1
dial-peer voice 5555 pots
dial-peer voice 333 voip
destination-pattern 111856T
fax rate 14400
fax protocol t38 ls-redundancy 0 hs-redundancy 0
gateway
line con 0
line aux 0
line vty 0 1
exec-timeout 20 0
password xxxx
logging synchronous
line vty 2 4
exec-timeout 20 0
password xxx
line vty xxx
exec-timeout 2 0
password xxxxxx
line 1/00 1/59
no flush-at-activation
modem InOut
line 2/00 2/59
no flush-at-activation
modem InOut
scheduler allocate 10000 400
ntp clock-period 17179604
ntp update-calendar
ntp server 192.16.202.3
ntp server 134.222.86.7 prefer
end
Rushabh

Similar Messages

  • How to check current input/output rate on router subintenterface via SNMP?

    How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
    I cant find OID to make this with snmpwalk.
    Or there is no way to check current load by this way? Only polling?
    P.S. Ethernet subinterface, of course.
    With great respect, S.A.

    Hi,
    Try to use:
    1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
    1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
    1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription

  • I have a 2007 iMac connected via WiFi. It has been working fine until I turned it on after a recent vacation. Network preferences indicates that it is correctly connected to my WiFI system but the data input and output rate is virtually zero. I know that

    I have a 2007 iMac connected via WiFi. It has been working fine until I turned it on after a recent vacation. Network Preferences indicates that it is correctly connected to my WiFI system but the data input and output rate is virtually zero. I know that the WiFI signal is reaching the iMac since both my iPhone and iPad are working perfectly at that location. I have rebooted the router and the iMac to no avail. Any suggestions would be greatly appreciated. Thank you very much. Geoff

    Hi Geoff,
    Hi, this has worked for a few...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    10.4 instructions...
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.

  • Efter det att jag uppgraderade till Firefox 5.0, har jag problem med min webmail. Jag kan logga in men ser inte katalogerna med mina kontakter, mottagna, skickade mail osv.

    Efter att ha uppgraderat till Firefox 5.0, har jag problem med min webbaserade mail vid Telia. Jag kan logga in men ser inte katalogerna med mottagna, skickade mail osv, eller mina kontakter och kan inte skicka några mail. Om jag däremot använder Internet Explorer, så fungerar det perfekt.

  • Mac Mini HDMI Output Problem w/ LG L246WP

    NOTE: This appears to be unrelated to the "screen flickering" that has been noted previously.
    I'm using a fresh new Mac Mini 2012 with an LG L246WP LCD monitor. The monitor has HDMI, VGA and Component video inputs.
    When I attach the monitor to the Mini DisplayPort output, using a Mini DisplayPort to DVI adapter connected to a DVI to HDMI cable, the display functions properly at all resolutions - including the native 1920 x 1200 resolution that I use it at normally. All resolutions are clearly displayed in the "Displays" System Preferences pane. The display looks perfect, functions properly.
    When I attach the monitor to the HDMI port using an HDMI cable, the display does not fucntion properly. The display is shifted about 80-100 pixels to the left and about 20 pixels up, creating black bars on the bottom and right sides. Because of this, a large portion of the display is not visible including the menu bar and most of the left side. Additionally, the settings are reduced to "Best for Display" or "Scaled", with resolution options under "Scaled".
    This is not acceptable. I had planned on simply using the Mini DisplayPort output as a workaround, since I already have the DVI adapter from an old setup, but I need to use Thunderbolt to access external hard drives for rapid data transfer. One of my Thunderbolt accessories does not have two ports, so I can't simply add the Mini DisplayPort adapter to a chain. The HDMI port needs to function properly with my monitor.
    It's important to note that this monitor has functioned properly with many other comptuers running OS X, Windows and various Linux flavors and it hasn't ever done this before. I've tried several different HDMI cables, ruling that out as a problem. I've tried the HDMI to DVI adapter that ships with the Mac Mini 2012 along with two different DVI to HDMI adapters, ruling that out as a problem. I tried attaching several HDMI devices (game consoles, DVD players, etc) and they all function properly, ruling out an HDMI issue as a problem. The monitor functions properly when attached through the Mini DisplayPort to DVI adapter, so it's not a problem with the monitor. I've reset the PRAM already and the installation of OS X 10.8.1 is stock with no modifications or migrated data. I've tried the suggestions on the HDMI FAQ (although there's no "underscan" option available in Displays)
    I tried to call AppleCare and after describing the problem I got disconnected with no callback. I started another ticket, described the problem, discussed the previous disconnection, was assured that I'd be called back if disconnected, and haven't heard back in two hours. So I started to dig into the problem in earnest.
    This gets pretty technical.
    After substantial research, it appears that this issue is related to the EDID that the monitor sends to the computer and, crucially, the way that the driver responds to it. For some reason, the HDMI port is recognizing the monitor as a CEA device instead of a monitor. As a result, it's restricting the monitor's available resolution to the native resolution  that the CEA 681 Series Extension describes ("Best for Display") and all other resolutions (including 1920 x 1200) are only available as "scaled". For some reason that I can't discern, all resolutions (even the 1080i and 1080p options) have similar deformities.
    I've attempted to fix this by placing an appropriate override file in /System/Library/Displays/Overrides with an edied EDID removing the CEA-enable flag from byte 127 but, even after a reboot, the OS still insists that it's a CEA device and it won't allow me to force it to recognize the monitor as a 1920 x 1200 LCD Monitor.
    How did I come to this conclusion and develop the fix? A nearly identical problem description showed up on the following website, with details on how this user fixed the issue:
    http://byuu.org/articles/computing/edid
    They used a convoluted process that involved dismantling the monitor and flashing the EDID on the monitor itself. It fixed their problem. I'd prefer not to go through that process just because one computer has a problem with it. Frankly, I'd prefer if the new Mac Mini performed properly in the first place.
    TL;DR: The Mac Mini 2012 doesn't work right with the LG L246WP through the HDMI output. Everything else works fine with it. This is very uncool. It's most likely to be an issue with the driver for the Intel HD Graphics 4000 GPU that are bundled with OS X 10.8.1. The Mac Mini 2012 won't update to 10.8.2 (yet), so I can't test it.
    Anyone have any other ideas? Anyone else using a Mac Mini 2012 (or 2011) with an LG L246WP monitor? Anything simple I've missed?

    Problem Resolved. But it was complicated. And a huge pain in the rear.
    TL;DR: I flashed the EDID as described here. This is not recommended for the weary. Ideally, Apple should release an update OS X that will include the updated Intel HD Graphics 4000 drivers that utilize the CEA flag properly.
    Here's the detailed version. As mentioned above, this isn't recommended for the weary. An improper (or interrupted) EDID flash can have seriously unpredictable effects on a monitor's performance.
    Step 1: Get a Windows PC set up with a floppy drive and find a floppy disk. Use this system to format the floppy as a MS-DOS Boot Disk and copy over the "ddcw" program described at the aformentioned link.
    This took awhile, but I was able to cobble together a temporary frankensystem with parts I had laying around. In installed XP and formatted the disk with XP's format tool.
    Step 2: Grab EDID data from the monitor, modify it to disable CEA mode at bit 127 and make sure bit 128, the checksum, is appropriate.
    This also took awhile. Several graphics cards I tried could not read or write EDID data. I ended up swapping AGP cards in my frankenstein box until I found one that worked - a generic GeForce4 4200.
    Once the EDID data was written to the floppy, I edited the text file containing the EDID data to change the last two hex octets from "01 33" to "00 34" (00, to disable bit 127, and 34 is 33 + 1, which satisfies the checksum) and formatted the text file to match the sample included in the EDID_Write.zip file. Your mileage may vary - make sure the checks.
    Step 3: Write EDID data to the monitor.
    The link above mentioned three options: Easy (monitor's EDID is unprotected - write away!), Hard (monitor's EDID is protected - use service mode to attempt a fix), and Very Hard (monitor's EDID is protected, hardware modification is required).
    Luckily my LG246WP simply needed to be put into service mode as described at the link above (menu + power) and once started up in service mode, I simply enabled "Aging Mode" (whatever that means) and attempted a DDCW write of the updated data.
    Step 4: Profit!
    After doing this, I powered off the monitor and powered it back on with the Mac Mini attached. The display functions PERFECTLY with HDMI out, just as it does using the Mini DisplayPort to DVI adapter.

  • 10GbE Interface - loopback line, no output rate

    Hello all,
    When doing some tests using the ‘loopback line’ on a 10GbE interface in an ASR9000, we noticed that we don't have output rate, although the test device receive all the generated traffic back. The interface configuration is rather simple:
    RP/0/RSP0/CPU0:Pessoa#sh run int tenGigE 0/0/0/2
    Thu Feb 16 11:59:14.431 WET
    interface TenGigE0/0/0/2
    description Testes 10 GbE RFS
    mtu 9192
    loopback line
    carrier-delay up 5000 down 0
    load-interval 30
    dampening
    When checking the input and output rate:
    RP/0/RSP0/CPU0:Pessoa#
    RP/0/RSP0/CPU0:Pessoa#sh int tenGigE 0/0/0/2 | i rate
    Thu Feb 16 12:01:40.476 WET
      30 second input rate 7918041000 bits/sec, 1448815 packets/sec
      30 second output rate 0 bits/sec, 0 packets/sec
    RP/0/RSP0/CPU0:Pessoa#
    RP/0/RSP0/CPU0:Pessoa#sh int tenGigE 0/0/0/2 | i rate
    Thu Feb 16 12:02:05.307 WET
      30 second input rate 9166768000 bits/sec, 1677058 packets/sec
      30 second output rate 0 bits/sec, 0 packets/sec
    RP/0/RSP0/CPU0:Pessoa#
    RP/0/RSP0/CPU0:Pessoa#
    RP/0/RSP0/CPU0:Pessoa#sh int tenGigE 0/0/0/2 | i rate
    Thu Feb 16 12:02:07.321 WET
      30 second input rate 9212136000 bits/sec, 1685490 packets/sec
      30 second output rate 0 bits/sec, 0 packets/sec
    RP/0/RSP0/CPU0:Pessoa#
    RP/0/RSP0/CPU0:Pessoa#
    The same tests were done using a 1GbE interface and every think was OK, with output rate ~= input rate.
    Any ideia? I've done some research in bug toolkit but didn't find any bug related to this...
    By the way, IOS-XR version is 4.0.1.
    Thanks & Regards,
    Pedro

    Hi Pedro,
    Is that only rate affected or do you see 0 output packets too?
    Do you see any output rate without the loopback line command?
    Do you see any rates/output using
    show controllers tenGigE 0/0/0/2 stats
    show int tenGigE 0/0/0/2 acc
    show int tenGigE 0/0/0/2 accounting rates
    Regards,
    /A

  • I am in mavericks disk utility recovery mode as my mac book will not boot up & stays only on the grey apple screen. When I verify the disk I get open error5 :input /output error on Syst stuck on 1 minute pouring out over 50 error messages & still counting

    I am in Mavericks disk utility recovery mode as my mac book pro will not boot up & stays on the Apple grey screen . When I verify disk permissions I get
    Open error 5:"input/ output error" on syst with over 50 of this messages & still counting . Disk Utility says 1 minute
    But this has been going on for over 10 mins .
    I can not verify disk or repair disk .
    I have tried to reinstall mavericks operating system but it says my hard drive is locked which is very strange .
    Does anyone know what is going on here ?
    My system looks like it has been totally corrupted . Thanks Andrew

    Could be. The "lock" isn't actually looking for a password.
    WARNING: This will completely erase the ENTIRE hard drive.
    What you would need to do is boot to recovery > disk utility > select the MAIN drive on the left side > partition > change partition layout from CURRENT to 1 PARTITION > ensure on the right side it says Format : Mac OSX Extended (Journaled) then push APPLY.
    Then if it will allow us, close the windows until you see the 4 options popup again and select "Reinstall Mac OS X" select the Mac HD and you should be good to go!

  • External Hard Drive not Readable & Input/Output Error?

    I was using my OWC 300gb external hard drive for a while and it's worked great. I had a bunch of files on it, but I recently transferred everything to another external HD I have, which worked fine, so I could erase this 300gb one. I can't remember what happened, but somehow my Macbook doesn't recognize this hard drive. I think erased everything and then unplugged it without ejecting it first. Anyways, nothing is on the the drive anymore and I get this error message:
    "The disk you inserted was not readable by your computer"
    This pops up when I restart my Macbook. When I try to use Disk Utility, it greys everything out on the partition and Disk Repair tabs. On the 'Erase' tab, it will allow me to select Erase, but then gives me the error:
    "Input/Output error"
    Does anyone know how to get my Macbook to see my drive (so I can start to partition it)? For some reason only Disk Utility acknowledges it's there, Finder won't.
    Anyone have any tips of what it is or what I can try? I did try to use my OS discs booting up holding C, but that doesn't work either.

    Hi there. Everyone is saying on these forums that the hard drive is failing...suck. I went and bought a new when I got input/output error and found that the new one showed the same input output error, making it impossible to partition the disk. Then the guy in the apple service center told me the new one was bad too, after having seen the code that came up related to my new scorpio 250 GB drive. Instead of sending it back, I took it out and installed the old one..however this time with a slihtly more of pressure on the tape holding down the hard drive cable between the hard drive and the circuit board. Amazingly, this time it didn't even show any hard drive at all! Then I understood what was wrong. It was exactly what was indicated an "input/output errror"! ..the cable was broken. I bought a new cable, well the Powerbookmedic sold it as new but it was an old working one that arrived. Immediately, after change of cable the old hard drive and now also the new 250 GB works perfectly! I remember that some interesting symptoms prior to all hard drive problems appeared, such as not being able to start up properly, strange blue screens, flipping question marks etc. I remember that shaking the comp occasionally worked to get it going. No wonder, shaking occasionally made it work and i believe the damaged cable maybe changed position and started conducting. The cable is very sensitive and probably should not be taped down so hard as the first service center guy at apple had done with mine when he fixed it the comp a few years ago. Polymers/plastics bent heavily become fragile/brittle with time and are specially sensitive under pressure/bent. Note that my old damaged cable still conducted and showed the hard drives but didn't work fully. I hope this will help someone, it took me 2 month to figure out..

  • How to force digital input sample rate?

    Does anyone know how to force a Digital Input sample rate and/or tell Core Audio which conversion clock to use... internal or external? Apparently both things can be done from Pro Tools, but I don't have it.  My problem is locking onto an A/D converter's 48K Toslink output.  I can set 48K in 'Audio - Midi' setup and the audio is perfect, but a few seconds later  Core Audio returns to the default 44.1K.  I need to force it to stay at 48K, or clock on the signal rather than internal clock.

    Braver,
    Let me clarify a few things. First, the 6733 supports correlated digital I/O. This means that the digital operation does not have its own clock. You can correlate the digital operation with the AO clock, which will allow a digital operation up to the max AO rate. You can generate a pulse train with an onboard counter and use that as your digital clock source. Also, you can use a completely external clock source to achieve the max digital rate of 10MHz. The knowledge base, linked below, points you to a couple of examples that ship with LabVIEW. Be sure and read the documentation associated with each example.
    Knowlege Base
    As for
    the example CDI Single Point clocked by Counter (E).vi, notice how the output of...

  • How to Immediately Change Counter Output Rate?

    I have a piece of code that largely works like this example: http://zone.ni.com/devzone/cda/epd/p/id/5493
    In other words, I set up the Counter Output with some initial frequency and duty cycle, but then during the main loop of my program I continuously change the frequency to a new value based on other criteria.
    I'm using an M-series PXI card and LabVIEW RT.
    The problem I'm having is that the card waits for the next edge before changing the counter output rate. For instance, lets say it is going at a low frequency and I am upping to a high frequency. If the command arrives in the middle of the current pulse, it will wait to complete the low-rate pulse before starting the high frequency output. Is there a way to make it interrupt the current count and immediately start counting at the new rate?
    Thanks,
    Isaac

    Hi Isaac,
    I posted the code in LV 8.2 so you should be able to open it now (it sometimes takes several minutes to upload).
    There are a few limitations to using the digital lines instead of the counters:
    1.  The digital lines are updated off of a sample clock which will be much slower than a timebase.  For example, on the 6221 the maximum update rate is 1 MHz, while the counter output has a max timebase of 80 MHz. As a result, the number of frequencies you can generate are going to be more restricted (divide down from 1 MHz vs. 80 MHz).
    2.  On M series devices, the digital lines must be clocked from an external source.  This could be generated from a counter
    3.  You have to build the digital waveform, which is a bit tricky (I think the example code should help out with that but I haven't had time to thoroughly test it).
    4.  If you are generating digital lines at fast rates, you will need to write quite a few samples at a time to the output buffer to ensure the data does not underflow.  If the buffer includes multiple periods of the digital signal, you would have the case that using the counter output would still update more immediately.
    Again, to determine the best course of action it would be useful to know what frequencies you want to generate and which exact hardware you are using. I just mentioned the digital lines as an alternative to the counters, but it might not be ideal for your situation.
    -John
    John Passiak

  • Input/Output And Method Not Found Problem

    Ok so firstly I think I should apologise on two fronts.
    Firstly, 'cause this is probably posted in the wrong board but I'm not sure this was suitable for the Swing board just 'cause I've been using Swing? And secondly 'cause the code I'm gonna post is so shoddy I would think this constitutes as flaim-bait. >_>
    In my defense this is purely for a little class project to give something to write some documentation on so I'm really not too bothered about the efficiency or ace-mazingness of the end result. I just want it to work.
    To the problem at hand.
    I'm trying to write a program that asks the user a question and then outputs their answer to a file, from which a tally of answers can later be made for the purpose of displaying "results".
    My problem is I've been having problems with the input/output of saving the answers given to the program.
    I'm still learning and input/output is probably my weakest subject (other than, y'know, being good at Java). I've had a bash at it in the following code but all it does it overwrite what is in the file with a single answer so no list of results accumulate. I generally don't have an idea what to try for that one so any pointers would be appreciated.
    Also, my second problem is, in trying to gather results by tallying what is contained in the file, I've run across a problem with the charAt() method not being found and I'm not sure why. Isn't that method a part of java.lang?
    Here's the code thus far:
    //libraries
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.io.*;
    class CaseStudy {
         public static void main(String args[]) {
              GUI maininterface = new GUI();
              maininterface.setupMenu();
              maininterface.display();
    class GUI {
         //for the actionlisteners
         int whatframe = 0;
         //creates mainframe and border content panel
         JFrame mainframe = new JFrame("Survey Client");
         JPanel borderpanel = new JPanel(), bottompanel = new JPanel();
         JButton quizbutton = new JButton("Take the quiz"), tallybutton = new JButton("Show Results"), submitbutton = new JButton("Submit Results"), menubutton = new JButton("Return To Menu");
         QuizQuestions toppanel = new QuizQuestions();
         QuizResults toppanel2 = new QuizResults();
         GUI() {
              //sets border in borderpanel, this spaces the main content in from the sides of the window
              borderpanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              //sets up the frame and panels and adds on borders
              mainframe.setDefaultCloseOperation(mainframe.EXIT_ON_CLOSE); // exits java when clicking on close on main frame
              mainframe.getContentPane().add(borderpanel); // adds the panel as a component to the frame, the panel can hold stuffs
              borderpanel.setLayout(new BoxLayout(borderpanel, BoxLayout.PAGE_AXIS));// page_axis means it'll layout vertically
              bottompanel.setLayout(new BoxLayout(bottompanel, BoxLayout.LINE_AXIS));// line_axis means it'll layout horizontally
              //gives button an action
              quizbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupQuiz();
              tallybutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        if(whatframe == 1) setupResults();
                        else {
                             int rusure = JOptionPane.showConfirmDialog(null, "Are you sure you wish to show results? Any current quiz answers won't be saved.", "Please Choose One", JOptionPane.YES_NO_OPTION);
                             if(rusure == JOptionPane.YES_OPTION) setupResults();
              menubutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupMenu();
              submitbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        toppanel.doQuiz();
              borderpanel.add(bottompanel);
         public void setupMenu() {
              if(whatframe == 3) {
                   bottompanel.remove(menubutton);
                   borderpanel.remove(toppanel2);
              whatframe = 1;
              //adds components and lays them out
              bottompanel.add(quizbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              display();
         public void setupQuiz() {
              bottompanel.remove(quizbutton);
              bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.remove(tallybutton);
              whatframe = 2;
              bottompanel.add(submitbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              borderpanel.add(toppanel);
              display();
         public void setupResults() {
              if(whatframe == 1) {
                   bottompanel.remove(quizbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
              else {
                   bottompanel.remove(submitbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
                   borderpanel.remove(toppanel);
              whatframe = 3;
              bottompanel.add(menubutton);
              borderpanel.add(toppanel2);
              display();
         public void display() {
              //sets the size of the frame around it's components and then shows it
              mainframe.pack();
              mainframe.setVisible(true);
              mainframe.validate(); //makes referenced container relayout it's components
    class QuizQuestions extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel(), pop1 = new JPanel(), pop2 = new JPanel(), pop3 = new JPanel(), pop4 = new JPanel();
         JFormattedTextField ques = new JFormattedTextField(), op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         JButton bop1 = new JButton("1"), bop2 = new JButton("2"), bop3 = new JButton("3"), bop4 = new JButton("4");
         char answer;
         QuizQuestions() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              pop1.setLayout(new BoxLayout(pop1, BoxLayout.LINE_AXIS));
              pop2.setLayout(new BoxLayout(pop2, BoxLayout.LINE_AXIS));
              pop3.setLayout(new BoxLayout(pop3, BoxLayout.LINE_AXIS));
              pop4.setLayout(new BoxLayout(pop4, BoxLayout.LINE_AXIS));
              this.add(popm);
              popm.add(ques);
              popm.add(pop1);
              popm.add(pop2);
              popm.add(pop3);
              popm.add(pop4);
              pop1.add(op1);
              pop1.add(bop1);
              pop2.add(op2);
              pop2.add(bop2);
              pop3.add(op3);
              pop3.add(bop3);
              pop4.add(op4);
              pop4.add(bop4);
              //sets up question text fields
              ques.setEditable(false);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              bop1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'a';
              bop2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'b';
              bop3.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'c';
              bop4.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'd';
              Question1();
         public void doQuiz() {
              loadsave.save(answer);
         public void Question1() {
              ques.setValue("Who's your favourite X-Men character?");
              op1.setValue("Cyclops");
              op2.setValue("Xavier");
              op3.setValue("Wolverine");
              op4.setValue("Rogue");
    class QuizResults extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel();
         JFormattedTextField op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         int[] answerarray = new int[4];
         QuizResults() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              this.add(popm);
              popm.add(op1);
              popm.add(op2);
              popm.add(op3);
              popm.add(op4);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              answerarray = loadsave.load();
              op1.setValue(answerarray[0]);
              op2.setValue(answerarray[1]);
              op3.setValue(answerarray[2]);
              op4.setValue(answerarray[3]);
    class LoadingSaving {
         public void save(char answer) {
              FileReader fr;
              FileWriter fw;
              BufferedReader br;
              String s;
              try {
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                   fr = new FileReader("casestudyoutput.txt");
                   fw = new FileWriter("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) s = "x";
                   else s = br.readLine();
                   s = s + answer;
                   fw.write(s);
                   fr.close();
                   fw.close();
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return;
         public int[] load() {
              FileReader fr;
              BufferedReader br;
              int[] answerarray = new int[3];
              String s;
              long length;
              int a = 0, b = 0, c = 0, d = 0;
              answerarray[0] = 0;
              answerarray[1] = 0;
              answerarray[2] = 0;
              answerarray[3] = 0;
              try {
                   fr = new FileReader("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) return answerarray;
                   else s = br.readLine();
                   length = s.length();
                   for(int i = 0; i < length; i++) {
                        char ch = charAt(i); //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                        switch(ch) {
                             case 'a':
                                  a++;
                                  break;
                             case 'b':
                                  b++;
                                  break;
                             case 'c':
                                  c++;
                                  break;
                             case 'd':
                                  d++;
                                  break;
                   answerarray[0] = a;
                   answerarray[1] = b;
                   answerarray[2] = c;
                   answerarray[3] = d;
                   fr.close();
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return answerarray;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return answerarray;
         return answerarray;
    }Any pointers/tips/solutions/angry posts to tell me to stop trying to learn Java would be greatly appreciated.
    Thanks in advance!
    Oh, and in trying to work with it a bit further I realised I'm having a few problems with runtime errors due to exceptions. The first was due to the array being assigned out of bounds (fixed in the above code). But the second reads the following:
    Exception in thread "main" java.lang.NullPointerException
         at Loadingsaving.load(CaseStudy.java:330)
         at QuizResults.(init)(CaseStudy.java.259)
         at GUI.(init)(CaseStudy.java:34)
         at CaseStudy.main(CaseStudy.java:15)Not quite sure what this one means or how to handle it. =\
    Edited by: ThePermster on May 19, 2008 8:08 AM

    A NullPointerException means a method has been called on a null object, or a variable that isn't pointing to any object. Your Exception points to line 330, which is:
    length = s.length();A NPE on that line means that s is null. So let's look at where s is set:
    if (br.readLine() == null) return answerarray;
    else s = br.readLine();s gets it's value from br.readLine(), so that method must be returning null. You have a logical error here. Look at your If-Else. It reads a line, makes sure it isn't null...then it reads another line. Well what if that line is null? You are performing 2 reads here instead of 1.
    Since your If condition returns a value, there's no need for an Else. The code will continue on until it reaches another return. Try this:
    s = br.readLine();
    if (s == null) return answerarray;

  • Input / Output Error when creating GUID Partition on External Drives

    I've been trying to setup an install of OS X on an external device and therefore need to partition them to the GUID Partition Scheme.
    I've tried it with my iPod and an External Hard Disk Drive and no matter what I do, I get the error:
    Exited with Error: Input / Output Error
    Thats all I get. I can partition them with either of the other two choices, but of course those wont let me boot an Intel Based Mac.
    The External HDD is USB 2.0, the iPod I've tried both USB and Firewire, and have not had any luck. I know it can be done, but am not sure why I'm having this problem.
    Any suggestions?

    I'm having the same problem. Trying to format an external drive with the GUID scheme fails.
    # diskutil eraseDisk HFS+ Test GPTFormat /dev/disk1
    Started erase on disk disk1
    Creating Partition Map
    error writing partition map: Invalid argument (22)
    Partitioning encountered error Invalid argument (22) on disk disk1
    I've tried this on my Intel MacBook and on my PPC Mac Mini. Tried using a generic USB2 flash disk and also an iPod shuffle. Always the same error.
    Is GUID broken on external drives?

  • .dmg problem input/output error

    hi,
    i have a copy of adobe cs3 from my college, and i am having problems installing. i skipped the verification. and then i noticed it would only install about 3 components, not illus. photoshop, or flash, then i let the verify run, and then it came up with an error of "input/output error" how is it possible to save the files on the dvd, what are my options?
    also, another sidenote, i have had a weird problem with i tunes, since 7.6.2 and my software is all up to date. if i run i tunes, it could be 10 secs or after about 10 mins. the pinwheel comes up and wont go away, how can i check in system monitor if theres somehting fishy, has anyone heard of this problem ? i was thinking to downgrade since i have not had problems until i upgraded

    HI Gene,
    "This usually works fine but now and then I get an error that says " Unable to create disk1s10.dmg Input/output error." Have you downloaded and installed any 3rd party software or changed any preference files since you've successfully done this before ??
    If your profile is correct, you might try updating from 10.4.8 to 10.4.11. If you do, make sure and Repair Disk Permissions when it's finished.
    Suggestion here for using Console: http://forums.macosxhints.com/showthread.php?t=67302
    Carolyn
    Message was edited by: Carolyn Samit

  • Get multiple Input/Output Stream from same socket ?

    For a better express of my problem i will put my test example
    I have those 4 classes
    package test;
    import...
    public class ReaderExecutor extends Thread{
            private InputStream in = null;
            private static int defaultID = 0;
            private int ID = getID();
            public ReaderExecutor(InputStream in){
                this.in = in;
            public void run(){
                try {
                    int c ;
                    while ((c=in.read())!=-1)
                        System.out.println("ReaderThread " + this.ID + ":" + c);
                catch (IOException e) {
                    System.out.println("ReaderThread "+this.ID+" stopped !");
            private static int getID(){
                return defaultID++;
    package test;
    import...
    public class WriterExecuter extends Thread{
        OutputStream out = null;
        private static boolean odd = true;
        private boolean isOdd ;
        public WriterExecuter(OutputStream out) {
            this.out = out;
            isOdd = odd;
            odd = !odd;
        public void run(){
            try{
                for (int i = isOdd?1:2;i<10;i+=2){
                    System.err.println(i);
                    out.write(i);
            }catch(Exception e){
                System.out.println("WriterThread stopped !");
    package test;
    import...
    public class Main { 
        public Main() {
        public static void main(String[] args) throws Exception {
            try{
                ServerSocket ss = new ServerSocket(9090);
                System.out.println("Ascult ... ");
                Socket client = ss.accept();
                new ReaderExecutor(client.getInputStream()).start();
                //Thread.sleep(2000);
                new ReaderExecutor(client.getInputStream()).start();
            }catch (Exception e){
                e.printStackTrace();
    package test;
    import...
    public class Main1 {
        public Main1() {
        public static void main(String[] args) {
            try{
                Socket s = new Socket("localhost",9090);
                WriterExecuter t= null ;
                t = new WriterExecuter(s.getOutputStream());
                t.start();
                t = new WriterExecuter(s.getOutputStream());
                t.start();
            }catch(Exception e){
                e.printStackTrace();
    }Now if i run successive Main , Main1 i get this output
    Ascult ...
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 1:0
    ReaderThread 0:0
    ReaderThread 0 stopped !
    ReaderThread 1 stopped !The question is can i get other Input/Output individual streams with a separate logic functionality from the same socket?
    From this example it seems i can't :(
    Thx
    Alex

    For what you are trying to do the simplest solution is to have one socket per "stream" that is the way they are designed to be used.
    However, you can multiplex multiple stream over a single socket, but you have do the coding yourself or use a solution which does this for you e.g. JMS. (There is no support at the socket level for this)

  • Help with Input/Output Parameter Size using OLE DB Provider

    I am using the OLE DB Provider for 9i in an Active Server Page to call a stored procedure in a 9i database. I pass have an input/output parameter (adVarChar with adSize=30) in which I pass a two digit number in, and expect to get a character value greater than 2 characters in return. However, when I execute the stored procedure call, it appears the value being returned in the parameter is being truncated to the size of the value I passed in (2 characters). Is there a way I can insure the parameter will return the entire length of the result regardless of the length of the input value?

    cmd.Parameters.Add("retstatus", OracleDbType.Varchar2, 200, ParameterDirection.InputOutput); It seems to me that you're trying to use an OracleParameter constructor with parameter name, parameter type, parameter SIZE, and parameter direction. But OracleParameter class does not have any such constructor. Therefore, your test tries to use another constructor incorrectly.
    OracleParameter has two constructors with four parameter ...
    public OracleParameter(string parameterName, OracleDbType type, object obj, ParameterDirection direction)
    public OracleParameter(string parameterName, OracleDbType type, int size, string srcColumn)
    ... and none of these matches your constructor. One way to solve this problem is to use appropriate constructor or OracleParameter properties.

Maybe you are looking for

  • Macbook Air- send mail to multiple person in contact with name of them in email

    Hi there, i use macbook air, in mail, i want to know if it is possible the if i wan to send email to multiple people in my contact and the name of the person will appear in the email message like Dear......... (follow by the name of person that i sav

  • Internal order not coming automtically in asset purchase order

    Hi! I have created one asset under construction and internal order number is assigined in AUC in tabl Origin. Budget is maintained for that internal order. But when I am creating the asset purchase order for that AUC, system is not automatically pick

  • Solaris Express Developer Edition + Apple Airport Extreme

    I just installed Solaris Express Develper Edition without any problems, but I can't seem to get my wireless connection up and running. I use an Apple Airport Extreme and while my MacBook with Mac OS X and my Xubuntu machine have no problems connectin

  • Balance Sheet account in a Purchase Requisition

    Can I use a Balance Sheet account on a Purchase Requisition?  We currently do that and would like to be able to keep doing it.  However, no matter what BS account I try to use it says "GL Account XXX cannot be used".   Also/Or what Account Assignment

  • More than 1 AAA server for logging in to WebVPN

    Hi everybody, Does anyone know if ASA supports simultaneous authentication more than 1 AAA server? I've created LDAP and SecurID token account for every users and want them provide both account information for logging in to WebVPN. Please advice. Tha