Serial port hang/freeze

On rare occasions my application freezes.  What I believe is happening is that the VISA Read or VISA Write vi never returns.  (The program is an executable, so I can’t go to the diagram to be sure.  I just released a new version that will help me isolate it further, but it takes time to propagate new software to users.)  I do have the timeout set to 500ms, and I know this works because it timeouts when I have no hardware attached.
When the freeze happens, I have to go to the Task Manager to kill my application; however, it never actually quits.  It goes away on the Applications tab, but won’t leave the Processes tab.  Selecting End Process on the Processes tab won't make it go away either.  I can get it to go away, however, by unplugging the USB cable.  I then plug the cable back in, relaunch my application, and all is OK.  (A restart works, too.)  I am using the FTDI 2232 USB to dual serial port chip (set up for RS485) in my system.
My first question is whether anyone has seen this before or has a suggestion to get this work.
My second question is how do I figure out what is actually hanging?  My LabVIEW 8.5.1 executable calls a VISA 4.41 driver.  The VISA driver calls a Windows COM port driver.  The Windows COM port driver calls the FTDI driver (Version 2.4.6).  The FTDI driver calls the USB driver.  We are running Windows XP with all updates installed.
I have about 50 of these systems running continuously.  I see about one freeze like this once every few days on a random system.  I am not able to reproduce it on demand.  Any debug solution will have to be deployable to all 50 systems; otherwise, it is possible that I won't see the bug for weeks, if ever.
Thanks in advance for the help.
Matt K.

Just dug out the email from FTDI support....
Blue 
Hello,
If it is an application problem then what could happen is you ask to read 10
bytes but only receive 5. The application would appear to hang waiting for
the remaining 5 bytes unless you have set timeouts to allow the read to
abort.
The fact you need to unplug and re-insert suggests the driver needs to
reload.
This could in theory be a result of a surprise disconnect.
What this means is the device handle is open and the device disappears from
the PC (like unplugging - but could be an EMC/noise event).
When the device re-appears to the PC the handle and the hardware no longer
match as the stack is not maintained during a disconnect.
This would result in you not talking to the actual device but some "rogue"
device handle which could theoretically hang the application.
Some ideas for debug:
1.
Verify the driver version installed is 2.04.06
http://www.ftdichip.com/Drivers/CDM/CDM%202.04.06%20WHQL%20Certified.zip
2.
Ensure you have set read and write timeouts in your application
3.
Use WM_DeviceChange to determine if you are disconnecting.
http://msdn.microsoft.com/en-us/library/aa363480.aspx
4.
Try increasing the resetpiperetrycount to make the device more immune to
noise events.
http://www.ftdichip.com/Documents/AppNotes/AN_AdvancedDriverOptions_(FT_0000
73).pdf

Similar Messages

  • Serial Port Hangs

    Hi, i have two computers (Solaris 10 - client and server) running two different java applications communicating via serial port.
    One of them sends a telegram (about 40 chars) to the other every 50 milliseconds and waits for the acknowledge telegram to send the next available telegram. After a couple of hours, the serial port of the server side becomes unable to send or receive any data.
    If I restart the applications (close the ports and reopen again), after sending another telegram, it hangs again. I tried opening the port using "tip hardwire", serial port sends one character, client gets one character then the same result. (Setting inputbuffersize to 0 and 1024 again is no help)
    If I reboot the computer, everything's fine again. Opening the port using "tip hardwire works fine. I'm using javaxcomm library.
    Is there any way to make the serial port functional again without rebooting, or any tips to understand what's the problem?
    Thanks.
    Edited by: senole on Aug 9, 2010 1:57 AM

    HEllo;
    Couldn't find anything on our Databases regarding that combination. My suggestion is to upgrade the VISA driver to the latest version available, and to contact the manufacturer of the third party device to see if they have something reported related to a compatibility problem is between their product and NI DAQ board.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Problem in reading data from serial port continuously- application hangs after sometimes

    I need to read data from two COM port and order of data appearance from COM port is not fixed. 
    I have used small timeout and reading data in while loop continously . If my application is steady for sometime it gets hangs and afterwards it doesnt receive any data again. 
    Then I need to restart my application again to make it work.
    I am attaching VI. Let me know any issue.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Scanning.vi ‏39 KB

    billko wrote:
    Ranjeet_Singh wrote:
    I need to read data from two COM port and order of data appearance from COM port is not fixed. 
    I have used small timeout and reading data in while loop continously . If my application is steady for sometime it gets hangs and afterwards it doesnt receive any data again. 
    Then I need to restart my application again to make it work.
    I am attaching VI. Let me know any issue.
    What do you mean, "not fixed?"  If there is no termination character, no start/stop character(s) or even a consistent data length, then how can you really be sure when the data starts and stops?
    I probably misunderstood you though.  Assuming the last case is not ture - there is a certain length to the data - then you should use the bytes at port, like in the otherwise disastrous serial port read example.  In this case, it's NOT disastrous.  You have to make sure that you read all the data that came through.  Right now you have no idea how much data you just read.  Also, if this is streaming data, you might want to break it out into a producer/consumer design pattern.
    Not fixed means order is not fixed, data from any com port can come anytime. lenght is fixed, one com port have 14 byte and other 8 byte fixed..
    Reading data is not an issue for me as it works nice but I have a query that why my application hangs after sometime and stops reading data from COM PORT.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

  • Occasional freeze when reading serial port

    I've a labview application which is a gui for a remote device via RS422.  The host computer is a quad core running XP SP3.  Initially I was developing with labview 7.1.1.  At random intervals (anywhere between 10 minutes and 5 hours observed), labview will freeze.  Using a port monitor during this freeze, I'm able to observe repeating calls for IOCTL_SERIAL_GET_COMM_STATUS followed by IRP_MJ_READ.  VISA is configured for 0.5s timeout.  The serial card is a MOXA, CP-114EL (4port RS422).  During the freeze, Labview cannot be closed.  Sometimes it will try by displaying the "Resetting..." text but it never completes.  A hard reset is then required.  After the freeze, processor usage is 25% (on average, 1 processor working full time for labview, but bouncing between cores).  Before the freeze, its less than 2%.
    At first I investigated the serial card driver via emails with MOXA.  After running a terminal emulation program and a loopback connector they gave me for several days without their program freezing, they're confident the problem isn't with their card or driver.  During discussions with them, I installed the evaluation of LabVIEW 2009.  The program still freezes except now I have less access to the VI (I used to be able to switch to the block diagram and via the highlighter tool observe it stuck in the read operation.  In either version though, the above mentioned port monitor output is the same.
    My instinct is that the source of the problem is in the multi-core application, some kind of timeout race condition.  My VI is fairly simple in summary, write a command (read temps, read status, write new params, etc) and wait for reply timing out if there's a problem.  Repeat.  Serial port is configured for 115kbps and transfers are in binary.  Before the freeze, the communication works well.
    I appreciate any suggestions.  I've looked around the net and this forum and didn't find anything similar.  Long time reader, first time poster.  I've a lot of experience in labview but can't solve this - the random interval doesn't help.  I think I'll start logging all serial transfers and see if anything always occurs before the freezing.

    This morning I updated the labview drivers to the most recent online (I hadn't done that yet when I installed LV2009, download was large).  It was something I planned to try if the LV2009 change alone did not resolve things.  The update also did not solve the serial freezing problem.
    I've attached two captures from NI Spy, one during normal operation and one of the last capture (up to the arrow).  I did a brief probing of a different VI that isn't a part of this afterward.  You can see the Read request of Com 2 for 266 bytes.  In the before image, red lines are timeouts.  So this read request is hung up waiting for bytes and never timing out.  That's at least my interpretation.
    I appreciate your and tbob's suggestions.  I've a new serial card (Brainboxes PX-310 card) to try coming soon, not that I don't want to solve this, I just can't spend too much time on it.  If it still gets hung up on the new card, I'll look into the motherboard PCIe port, maybe a failing transaction.  I would've went with the NI card but I need electrical isolation and 8 ports is excessive.
    Attachments:
    NI Spy - before freeze.JPG ‏104 KB
    NI Spy - after freeze.JPG ‏108 KB

  • Computer freezes while reading from serial port

    My computer freezes when i tried to read from a serial port for a longer period of time such as 10 hours. I always close the serial port after reading. please, help me solve this problem

    I too experienced a similar problem twice on my machine and I have no idea how to stop it because it is so intermittent and I cannot replicate it.
    Perhaps I can offer some clues.
    The Labview screen cannot be stopped and some parts of Windows appears frozen. Oddly enough I can switch to the block diagram but thats about all I can do. The LV stop button will indicate a mouse click on it but the VI does not stop. iT also cannot be closed.
    Even the reset button and power button on the PC does not work. I am forced to power down the PC (pull the plug) to get back control.
    I believe it is related to a visa call to my serial Balance.
    ANyway no solution but hopefully some clues.
    Dell Optiplex GX260 w/ 500MB RAM
    Win2K 500.2195 w service pak 4,
    NI
    serial Hardware and NI serial ver1.45 (16 com ports)
    Labview 6.1 and 7

  • One month old macbook pro got hang(freeze) once, and kernel panic once: should i need to take some actions or its ok??

    my macbook pro 13.3 (OS XLion 10.7.4) is one month old, few days ago  it got freezed(hanged) at that time only 2 apps were running google chrome and xcode, i pressed power button (hold it for few seconds) to restrat.
    Today when i opened the lid(as my mac was on sleep for last one hour- no apps except finder was running) i saw an error like this "mac encountered an error hold your power button for few seconds to restart......blah blah..something in other languages too", i think some where it used the word "kernel panic". 
    After restart mac said "your computer restarted because of a reason", below i have copy pasted the reason.
    Please suggest me its(this behavior is) okie or should i take it to apple center?, also to note i have never played any game on my mac. Can any body suggest me why this kernel panic happened by seeing the reason below.
    Now i am afraid to leave my mac at sleep with unsaved data and that was the exact reason i shifted from windows to mac.
    Interval Since Last Panic Report:  1184595 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    C5B363C1-4906-4416-995D-9E6844AB2293
    Mon Jul 23 02:10:19 2012
    panic(cpu 0 caller 0xffffff80002ff238): "vnode_rele_ext: vp 0xffffff800cb4d8b8 usecount -ve : -1.  v_tag = 0, v_type = 1, v_flag = 84800."@/SourceCache/xnu/xnu-1699.26.8/bsd/vfs/vfs_subr.c:1711
    Backtrace (CPU 0), Frame : Return Address
    0xffffff807f7cb6d0 : 0xffffff8000220792
    0xffffff807f7cb750 : 0xffffff80002ff238
    0xffffff807f7cb790 : 0xffffff7f80eab317
    0xffffff807f7cb7b0 : 0xffffff7f80eac071
    0xffffff807f7cba00 : 0xffffff7f80eacf22
    0xffffff807f7cba40 : 0xffffff800052ca84
    0xffffff807f7cbaa0 : 0xffffff80002fb9dc
    0xffffff807f7cbaf0 : 0xffffff8000313e06
    0xffffff807f7cbb90 : 0xffffff800030c990
    0xffffff807f7cbc50 : 0xffffff800030cf0e
    0xffffff807f7cbf50 : 0xffffff80005cd61b
    0xffffff807f7cbfb0 : 0xffffff80002daa13
          Kernel Extensions in backtrace:
             com.sophos.kext.sav(8.0.4)[898EB02E-4A1D-1F59-6625-C0466041D6C4]@0xffffff7f80ea a000->0xffffff7f80eaefff
    BSD process name corresponding to current thread: mds
    Mac OS version:
    11E53
    Kernel version:
    Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
    Kernel UUID: A8ED611D-FB0F-3729-8392-E7A32C5E7D74
    System model name: MacBookPro8,1 (Mac-94245B3640C91C81)
    System uptime in nanoseconds: 31794466080938
    last loaded kext at 31452797715630: com.apple.filesystems.msdosfs          1.7.1 (addr 0xffffff7f808c9000, size 57344)
    last unloaded kext at 31714808214502: com.apple.driver.AppleUSBCDC          4.1.17 (addr 0xffffff7f80833000, size 12288)
    loaded kexts:
    com.parallels.filesystems.prlufs          2010.12.28
    com.sophos.kext.sav          8.0.4
    com.parallels.kext.prl_vnic          7.0 15098.770637
    com.parallels.kext.prl_netbridge          7.0 15098.770637
    com.parallels.kext.prl_hid_hook          7.0 15098.770637
    com.parallels.kext.prl_hypervisor          7.0 15098.770637
    com.parallels.kext.prl_usb_connect          7.0 15098.770637
    com.apple.filesystems.msdosfs          1.7.1
    com.apple.filesystems.smbfs          1.7.2
    com.apple.driver.AppleIntelProfile          85.2
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.filesystems.ntfs          3.10.1
    com.apple.driver.AudioAUUC          1.59
    com.apple.driver.AGPM          100.12.42
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleHDA          2.2.0f3
    com.apple.driver.AppleMikeyDriver          2.2.0f3
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.AppleMCCSControl          1.0.26
    com.apple.driver.AppleIntelHD3000Graphics          7.1.8
    com.apple.driver.SMCMotionSensor          3.0.2d6
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.5f11
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AppleSMCLMU          2.0.1d2
    com.apple.driver.AudioIPCDriver          1.2.2
    com.apple.driver.ACPI_SMC_PlatformPlugin          5.0.0d0
    com.apple.driver.AppleLPC          1.5.8
    com.apple.driver.AppleBacklight          170.1.9
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleSMCPDRC          5.0.0d0
    com.apple.driver.AppleUSBTCButtons          225.2
    com.apple.driver.BroadcomUSBBluetoothHCIController          4.0.5f11
    com.apple.driver.AppleUSBTCKeyboard          225.2
    com.apple.driver.AppleIRController          312
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.iokit.SCSITaskUserClient          3.2.0
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCISerialATAPI          2.0.3
    com.apple.iokit.IOAHCIBlockStorage          2.0.3
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.driver.AppleFWOHCI          4.8.9
    com.apple.driver.AppleSDXC          1.2.0
    com.apple.driver.AppleUSBHub          4.5.0
    com.apple.iokit.AppleBCM5701Ethernet          3.1.2b2
    com.apple.driver.AppleEFINVRAM          1.5.0
    com.apple.driver.AppleAHCIPort          2.3.0
    com.apple.driver.AirPort.Brcm4331          530.4.20
    com.apple.driver.AppleACPIButtons          1.5
    com.apple.driver.AppleUSBEHCI          4.5.8
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.6
    com.apple.driver.AppleSMBIOS          1.8
    com.apple.driver.AppleACPIEC          1.5
    com.apple.driver.AppleAPIC          1.5
    com.apple.driver.AppleIntelCPUPowerManagementClient          193.0.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1.3
    com.apple.driver.AppleIntelCPUPowerManagement          193.0.0
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.2.0
    com.apple.iokit.IOUSBMassStorageClass          3.0.1
    com.apple.driver.AppleProfileTimestampAction          85.2
    com.apple.driver.AppleProfileThreadInfoAction          85.2
    com.apple.driver.AppleProfileRegisterStateAction          85.2
    com.apple.driver.AppleProfileReadCounterAction          85.2
    com.apple.driver.AppleProfileKEventAction          85.2
    com.apple.driver.AppleProfileCallstackAction          85.2
    com.apple.iokit.AppleProfileFamily          85.2
    com.apple.driver.DspFuncLib          2.2.0f3
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.iokit.IOSurface          80.0.2
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.iokit.IOFireWireIP          2.2.4
    com.apple.iokit.IOAudioFamily          1.8.6fc17
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleHDAController          2.2.0f3
    com.apple.iokit.IOHDAFamily          2.2.0f3
    com.apple.driver.ApplePolicyControl          3.0.16
    com.apple.driver.AppleSMC          3.1.3d8
    com.apple.driver.IOPlatformPluginLegacy          5.0.0d0
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleGraphicsControl          3.0.16
    com.apple.driver.AppleBacklightExpert          1.0.3
    com.apple.iokit.IONDRVSupport          2.3.2
    com.apple.kext.triggers          1.0
    com.apple.driver.AppleIntelSNBGraphicsFB          7.1.8
    com.apple.iokit.IOGraphicsFamily          2.3.2
    com.apple.driver.IOPlatformPluginFamily          5.1.0d17
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.5f11
    com.apple.iokit.IOBluetoothFamily          4.0.5f11
    com.apple.driver.AppleThunderboltDPInAdapter          1.8.2
    com.apple.driver.AppleThunderboltDPAdapterFamily          1.8.2
    com.apple.driver.AppleThunderboltPCIDownAdapter          1.2.4
    com.apple.driver.AppleUSBMultitouch          227.1
    com.apple.iokit.IOUSBHIDDriver          4.4.5
    com.apple.driver.AppleUSBMergeNub          4.5.3
    com.apple.driver.AppleUSBComposite          4.5.8
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.2.0
    com.apple.iokit.IOBDStorageFamily          1.6
    com.apple.iokit.IODVDStorageFamily          1.7
    com.apple.iokit.IOCDStorageFamily          1.7
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.2.0
    com.apple.driver.AppleThunderboltNHI          1.5.5
    com.apple.iokit.IOThunderboltFamily          2.0.0
    com.apple.iokit.IOFireWireFamily          4.4.5
    com.apple.iokit.IOEthernetAVBController          1.0.1b1
    com.apple.iokit.IOUSBUserClient          4.5.8
    com.apple.iokit.IOAHCIFamily          2.0.8
    com.apple.iokit.IO80211Family          420.3
    com.apple.iokit.IONetworkingFamily          2.1
    com.apple.driver.AppleEFIRuntime          1.5.0
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOUSBFamily          4.5.8
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          177.5
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          331.6
    com.apple.iokit.IOStorageFamily          1.7.1
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.5
    com.apple.iokit.IOPCIFamily          2.6.8
    com.apple.iokit.IOACPIFamily          1.4
    Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.4 GHz, 4 GB, SMC 1.68f98
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.4.20)
    Bluetooth: Version 4.0.5f11, 2 service, 11 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: APPLE HDD HTS547550A9E384, 500.11 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS31N
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfd100000 / 2
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3
    USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3
    USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0xfa100000 / 2
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 5
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 8
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252, 0xfa120000 / 4

    I have had a 15" Late 2011 model MBP since December and have never had a kernel panic.
    If I do I would take it in for a check up.

  • FT232R from FTDI hangs/freeze LabVIEW randomly

    Hi.
    I've been creating a program to display and log humidity and temperature sensors using the FT232R chip from FTDI (http://www.ftdichip.com/)
    To build the DAQ.vi I've used the example 1 from FTDI which can be downloaded here: http://www.ftdichip.com/Support/SoftwareExamples/CodeExamples/LabVIEW.htm
    The DAQ.vi I'm having trouble with is attached here.
    What is happening is that from time to time (could take 10 minutes or could take 10 hours) the program suddenly hangs/freeze, and to solve it I have to diconnect and connect the USB-cable to the FT232R. When I have done so, the program starts working again, but I've lost all the data from the freeze-time.
    Have anyone else experienced this problem using FTDI chips, or have any idea what could be wrong? And is there an easy way to find out if the bug is hardware or software-related?
    I appreaciate the help!
    NB:I know the attached .vi doesn't have wait times between write and read, but I've been having the same problem when using wait times as well.
    Is my avatar the dog from the fraggle rock?
    Solved!
    Go to Solution.
    Attachments:
    DAQ3.vi ‏36 KB

    This sounds like Windows power management shutting off power to the USB HUB but you have any of the common problems in this FAQ article:
    USB Plug-n-Play Devices (Windows)
    Options
    Mark as New
    Bookmark
    Subscribe
    Highlight
    Print
    Email to a Friend
    Report to a Moderator
    ‎01-22-201202:20 PM
    In this topic we will discuss some of the common problems that have been observed using USB devices with LabVIEW on Windows operating systems.  Many of these points are also applicable to other environments but the examples will be use the Windows 7 OS.
    FAQ 1 : My USB device stops working unexpectedly.
    The first thing to look at is the OS power saving options.  There is a global trend towards developing "Green" electronics and energy star ratings are getting fairly common.  "If its not being used shut it off" is nothing new.  Cavemen learned how to bank a fire to preserve energy that would otherwise be wasted.  Likewise, the Windows OS has a power saving feature to shut down power to the USB hubs when no user activity is present.  In Automated systems this feature can cause problems since removing USB hub power will shut down the USB device.   Solution: Use the device manager to change the USB hub Power Options.
    FAQ2: I set the power options and my device connection is still unreliable: Remember, those computer USB ports are often the cheapest that can be mounted on the chassis and share the PC system power supply to supply USB Power. Most uses of USB are temporary connections like a thumb drive or a camera.  These connections do not require high reliability since the user is right there interacting with it.  Power surges and fault tolerance at worst cause the operator to retry the data transfer.  Automated systems require a bit more robustness.  Solutions:
    1) ALWAYS use an external self powered hub.  Perform your engineering due diligence and inspect the devices specifications too- If you can't find them for that device that should clue you to seek an product from a vendor that WILL publish their specs.
    2) High noise environments require the use of ferrites on the USB cable- and don't buy the cheapest cable either! The cheap ones are poorly shielded. 
    3) PROTECT the HUB connections-  If you have a USB2.0 device and Joe User plugs in a 1.0 device in a open slot managed by the same hub- Bingo every port on the hub may back convert to USB1.0.  WORSE there are a lot of damaged or marginally engineered USB devices out there.  Joe User's device may cause power fluctuations when it is inserted or removed from the hub just don't let it happen!
    FAQ3: I am testing USB devices and the OS can't find them anymore.
    This is a Plug-n-Play feature that deserves some exposure.  When you connect a P-n-P device the OS remembers its serial number in a HKEY (Hive-Key) registry entry.  This is helpful when (for example) you want a specific instrument, Say an NI-USB-6008, to show up as a DAQmx Device with VISA Alias "MyDAQ1" every time it is plugged it.  On the other hand, If you want to test a line of USB-Serial converters this can be problematic since the P-n-P driver will mount the first serial number as "COM3" and the next as "COM4" add infinitum until the enumerator controller in the registry and VISA recognized aliases get used up.  Solution: Use the Windows registry API and the Hardware Configuration API in LabVIEW to clear unused VISA Aliases and HKEY entries.   Speak with your staff IT professional about HKEY structure and possible side effects before developing
    Jeff

  • Problem in using serial port.

    I am using serial port to get data from a fusion splicer. The number of bytes at the port is 4096 but the read buffer of VISA read is empty. I am reading the same number of bytes. Can any one tell me what is the maximum size of VISA Read buffer? I am trying to put the contents of the buffer in a file. I am using labVIEW 6.1 on linux.I am also attaching the VI.
    I also noticed this problem...If I read the number of bytes in the serial buffer many times, sometimes it reads it as 0 and I have to keep trying until it reads this 4096 bytes.
    Thanx for any help.
    S.Vijayalakshmi
    Attachments:
    serail_comm.vi ‏52 KB

    Hey Viji,
    In your application it looks like you are just checking to see how many bytes are at the serial port. Is it possible that your application is check for the serial data at the port before the data actually gets there. If you are looping this code as a subVI or just running it over and over it is possible that one of the iterations could occur faster than your device can write the information to the bus. In this instance you are checking the number of bytes at the port and there might not be any there yet. In this case the port reads 0 as you have designed it.
    If you want the read function to wait and always read 4096 then don't wire the bytes at port to the read function. Just wire a constant/control equal to 4096 to the read function instead o
    f the bytes at port. In this case, if there are not any bytes at the port the read function will wait for the bytes to show up or until the timeout period is reached.
    I would also, suggest lowering your time to something more reasonable, because if your instrument quits transmitting your application is going to wait for 33 minutes. That is a long time for a program to hang.
    I hope this helps out.
    JoshuaP
    National Instruments

  • Write to serial port asyncronously

    I am trying to write a commands to a serial port but my problem is that the operation is tedious so it is freezing up my UI. What makes it more complicated is that I must call this procedure when the form loads I want to ask if anyone can provide an alternative
    way to get the same or better result I was thinking of running it asynchronously but I don't know how to?
    This is the code I am calling on load
    If lblConnected.Text = "" Then
    MsgBox("Please connect to port.", MsgBoxStyle.OkOnly, "Validation")
    Exit Sub
    End If
    RichTextBox1.Text = ""
    Try
    With SerialPort1
    rcvdata = ""
    .Write("AT" & vbCrLf)
    Threading.Thread.Sleep(1)
    .Write("AT+CMGF=1" & vbCrLf)
    Threading.Thread.Sleep(1)
    .Write("AT+CPMS=""SM""" & vbCrLf)
    Threading.Thread.Sleep(1)
    .Write("AT+CMGL=""ALL""" & vbCrLf)
    Threading.Thread.Sleep(1)
    .Write("AT+CNUM" & vbCrLf)
    Threading.Thread.Sleep(2000)
    Dim lineoftext As String
    Dim arytextfile() As String
    Dim myString As String
    lineoftext = rcvdata.ToString
    arytextfile = Split(lineoftext, "Your number is", CompareMethod.Text)
    myString = "Your number is"
    lineoftext = lineoftext.Substring(lineoftext.IndexOf("Your number is"), 40)
    lineoftext = lineoftext.Replace("Your number is", "")
    lineoftext = lineoftext.Substring(0, 13)
    txtDonglePhoneNumber.Text = LTrim(lineoftext)
    End With
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    I am trying to extract the phone number from this whole routine  and it works but its freezing up my UI. How can I run from another thread.
    If you think it you can achieve it

    Imports System.IO.Ports
    Imports System.Threading
    Public Class Form1
    Private comport As SerialPort
    Private sending As Boolean
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    sending = False
    End Sub
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    comport = CreateComport(comport)
    If sending = False AndAlso OpenComport(comport) = True Then
    Dim t As Threading.Thread = New Threading.Thread(AddressOf SendData)
    t.IsBackground = True
    t.Start(comport)
    End If
    End Sub
    Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
    CloseComport(comport)
    End Sub
    Private Function CreateComport(ByVal port As SerialPort) As SerialPort
    If port Is Nothing Then
    port = New SerialPort("COM4", 9600, Parity.None, 8, StopBits.One)
    End If
    Return port
    End Function
    Private Function OpenComport(ByVal port As SerialPort) As Boolean
    Try
    If (Not port Is Nothing) AndAlso (port.IsOpen = False) Then
    port.Open()
    End If
    Return True
    Catch ex As Exception
    MessageBox.Show(String.Format("Exception :{0}", ex.ToString()))
    Return False
    End Try
    End Function
    Private Sub CloseComport(ByVal port As SerialPort)
    Try
    If (sending = False) AndAlso (Not port Is Nothing) AndAlso (port.IsOpen) Then
    port.Close()
    MessageBox.Show("Port closed")
    End If
    Catch ex As Exception
    MessageBox.Show(String.Format("Exception :{0}", ex.ToString()))
    End Try
    End Sub
    Private Sub SendData(ByVal port As Object)
    Dim buffer(1023) As Byte
    For i As Int32 = 0 To buffer.Length - 1
    buffer(i) = i Mod 256
    Next
    sending = True
    Try
    DirectCast(port, SerialPort).Write(buffer, 0, buffer.Length)
    Catch ex As Exception
    CloseComport(DirectCast(port, SerialPort))
    MessageBox.Show(String.Format("Exception :{0}", ex.ToString()))
    Finally
    sending = False
    End Try
    End Sub
    End Class
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Cannot write to serial port

    Hi,
    I am using jdk 1.3.1, forte ce 3.0 and j2me 1.0.3 beta.
    I wrote a midlet that should write and read strings to and from the serial port.
    Using the Emulator I have the reading working, but the writing freezes the execution.
    Any ideas?
    Debbie

    Thanx for your reply (I have been asking this question everywhere for 2 weeks and no one has answered...).
    I am using the Motorola i85s. It is specifially stated in the "i85s & i50sx Release 2 J2ME Developers' Guide Addendum" that the serial communications SHOULD work.
    As I said - reading from the port (using the i85s Emulator) works - but writing to the port - freezes the execution. So this means that my connection is up and running - just the write is not working.
    I would love to be able to load my midlet to my phone - since maybe on the phone it WILL miraculously work. But in this direction I am stuck with the fact that the JAL Lite does not load "network capable apps" - whereas I cannot get my hands on the Web JAL (which DOES load network capable apps) - since I have not succeeded to get thorugh the 100 steps that you must go through in order to use it... see for yourself at https://idenonline.motorola.com/ideveloper/program/program_jal.cfm).
    Help...?

  • Issues with Quark Xpress Hang/Freeze when focus is shifted to anything else

    I've been working on this issue since the 28th of Dec.
    I've been in contact with Quark. They're still examining crash log.
    I thought I'd share what is on my plate in hopes others might have had, and solved similar experience.
    This message will be verbose in hope of giving the uber-guru answers to questions in advance of their being asked.
    First portion will contain a log of actions taken and results there of.
    Second will be the typical Quark Crash log I've been getting when the application is quit.
    I will mention as well that I've received a clean bill of health from TechToolPro, DiskWarrior, etceteras, as well as Passed the tests from Apple Hardware Tests.
    Let me know if I can provide any additional info
    Log of Actions
    Installation of new Quark, up to 6.5 only.
    Completed at 5:27pm
    Launching Quark under New User at 5:28
    Launch successful.
    Created one file. Saved file, selected finder, then text editor, the quark.
    Quark still operating. added text, saved, and closed document.
    selected finder, then text editor, the quark.
    Quark still operating.
    Manually quit quark from application menu at 5:33.
    Application successfully "quit" without "crashing"
    Repeating the procedure above at 5:34
    Launched quark via double-click of previously saved file.
    added text, saved, selected finder, then text editor, the quark.
    Quark still operating.
    selected finder, then text editor, the quark.
    Quark still operating.
    quit quark from cmd-tab cmd-q method causes "unexpected crash"
    Ran several similar scenarios, with this as conclusion:
    Launching quark from double click of application, creation of new document, saving, and quitting in ANY fashion allows safe quit
    Launching Quark, opening from save/open dialog box an existing document, then quit with or without edit, using cmd-tab cmd-q allows safe quit
    Double-clicking existing document to launch Quark, then closing document after edit and save or immediately, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Double-clicking existing documents to launch Quark, then closing document after edit and save, then create new document, with save and close, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Launching of Quark 6.50 under base user
    Launching Quark, opening from save/open dialog box an existing document, then quit with or without edit, using cmd-tab cmd-q allows safe quit
    Double-clicking existing document to launch Quark, then closing document after edit and save or immediately, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Double-clicking existing documents to launch Quark, then closing document after edit and save, then create new document, with save and close, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Launching Quark, creating file, saving, selected finder, then text editor, the quark.
    Quark hangs/freezes until force-quit
    it seems there are two issues at hand.
    unexpected crashes occur with cmd-tab cmd-q in either Base or New user logins when quark launch was initiated by double-click of file from finder.
    and
    unexplained application hangs/freezes when under base user.
    Quark Crash Log
    Date/Time: 2008-01-03 19:08:44.597 -0500
    OS Version: 10.4.11 (Build 8S165)
    Report Version: 4
    Command: QuarkXPress
    Path: /Applications/QuarkTest/QuarkXPress 6.1/QuarkXPress/Contents/MacOS/QuarkXPress
    Parent: WindowServer [102]
    Version: QuarkXPress version 6.50 (6.50)
    PID: 4127
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x170f086c
    Thread 0 Crashed:
    0 <<00000000>> 0x170f086c 0 + 386861164
    1 com.quark.QuarkXPress 0x00554a18 _destroy_globalchain + 60
    2 com.quark.QuarkXPress 0x0053f910 exit + 52
    3 com.quark.QuarkXPress 0x00003f04 call_mod_initfuncs + 0
    4 com.quark.QuarkXPress 0x00003d80 _code_start_ + 48
    Thread 1:
    0 libSystem.B.dylib 0x9000b348 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b29c mach_msg + 60
    2 com.unsanity.ape 0xc0001bf4 _apeagent + 296
    3 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90070be8 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf73f4 TSWaitOnSemaphoreCommon + 176
    3 ...ple.CoreServices.CarbonCore 0x90bff390 TimerThread + 60
    4 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 3:
    0 libSystem.B.dylib 0x900411f8 machwaituntil + 8
    1 libSystem.B.dylib 0x90040fc4 nanosleep + 388
    2 libSystem.B.dylib 0x90040df0 sleep + 144
    3 <<00000000>> 0x26124604 0 + 638731780
    4 <<00000000>> 0x2612d724 0 + 638768932
    5 <<00000000>> 0x2612d334 0 + 638767924
    6 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 4:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 <<00000000>> 0x26125f90 0 + 638738320
    3 <<00000000>> 0x26126134 0 + 638738740
    4 <<00000000>> 0x25caa6bc 0 + 634037948
    5 <<00000000>> 0x26251480 0 + 639964288
    6 <<00000000>> 0x2612d724 0 + 638768932
    7 <<00000000>> 0x2612d334 0 + 638767924
    8 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 5:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 <<00000000>> 0x26125f90 0 + 638738320
    3 <<00000000>> 0x26126134 0 + 638738740
    4 <<00000000>> 0x25caa6bc 0 + 634037948
    5 <<00000000>> 0x26251480 0 + 639964288
    6 <<00000000>> 0x2612d724 0 + 638768932
    7 <<00000000>> 0x2612d334 0 + 638767924
    8 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 6:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 <<00000000>> 0x26125f90 0 + 638738320
    3 <<00000000>> 0x26126134 0 + 638738740
    4 <<00000000>> 0x25caa6bc 0 + 634037948
    5 <<00000000>> 0x26251480 0 + 639964288
    6 <<00000000>> 0x2612d724 0 + 638768932
    7 <<00000000>> 0x2612d334 0 + 638767924
    8 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 7:
    0 libSystem.B.dylib 0x900411f8 machwaituntil + 8
    1 libSystem.B.dylib 0x90040fc4 nanosleep + 388
    2 libSystem.B.dylib 0x90040df0 sleep + 144
    3 <<00000000>> 0x2625157c 0 + 639964540
    4 <<00000000>> 0x2612d724 0 + 638768932
    5 <<00000000>> 0x2612d334 0 + 638767924
    6 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x00000000170f086c srr1: 0x100000004000f030 vrsave: 0x0000000000000000
    cr: 0x44800204 xer: 0x0000000000000000 lr: 0x00000000005549cc ctr: 0x00000000170f086c
    r0: 0x0000000000554a18 r1: 0x00000000bffffac0 r2: 0x00000000007e2d70 r3: 0x00000000170f086c
    r4: 0xffffffffffffffff r5: 0x00000000000003e8 r6: 0xffffffffffffffff r7: 0x0000000000000000
    r8: 0x0000000000000001 r9: 0x00000000a0001fac r10: 0x0000000002285a00 r11: 0x0000000024800202
    r12: 0x00000000170f086c r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000
    r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000000 r23: 0x0000000000000000
    r24: 0x0000000000000000 r25: 0x0000000000000000 r26: 0x00000000bffffc44 r27: 0x000000000000000c
    r28: 0x0000000000000002 r29: 0x00000000bffffc54 r30: 0x000000000053f8f8 r31: 0x00000000007e49f0
    Binary Images Description:
    0x1000 - 0x71efff com.quark.QuarkXPress QuarkXPress version 6.50 (6.50) /Applications/QuarkTest/QuarkXPress 6.1/QuarkXPress/Contents/MacOS/QuarkXPress
    0xb05000 - 0xc45fff OmniCore.Mach-O.r.dylib /Applications/QuarkTest/QuarkXPress 6.1/OmniCore.Mach-O.r.dylib
    0xd1e000 - 0xe8ffff Xerces-c-cw8 /Library/Frameworks/Xerces-c-cw8.framework/Xerces-c-cw8
    0x1922c20 - 0x1922cd2 CFMPriv_CoreFoundation PEF binary: CFMPriv_CoreFoundation
    0x19232f0 - 0x1923367 CFMPriv_System PEF binary: CFMPriv_System
    0x1923610 - 0x19236e0 CFMPriv_CarbonSound PEF binary: CFMPriv_CarbonSound
    0x1923760 - 0x1923833 CFMPriv_CommonPanels PEF binary: CFMPriv_CommonPanels
    0x1923910 - 0x19239cb CFMPriv_Help PEF binary: CFMPriv_Help
    0x19239d0 - 0x1923a9a CFMPriv_HIToolbox PEF binary: CFMPriv_HIToolbox
    0x1923b20 - 0x1923bf6 CFMPriv_HTMLRendering PEF binary: CFMPriv_HTMLRendering
    0x1923c70 - 0x1923d43 CFMPriv_ImageCapture PEF binary: CFMPriv_ImageCapture
    0x1923dd0 - 0x1923eb5 CFMPriv_NavigationServices PEF binary: CFMPriv_NavigationServices
    0x1923f30 - 0x1924006 CFMPriv_OpenScriptingMacBLib PEF binary: CFMPriv_OpenScriptingMacBLib
    0x19240e0 - 0x192419e CFMPriv_Print PEF binary: CFMPriv_Print
    0x19241c0 - 0x192428d CFMPriv_SecurityHI PEF binary: CFMPriv_SecurityHI
    0x1924310 - 0x19243f2 CFMPriv_SpeechRecognition PEF binary: CFMPriv_SpeechRecognition
    0x1924470 - 0x1924543 CFMPriv_CarbonCore PEF binary: CFMPriv_CarbonCore
    0x19245c0 - 0x1924693 CFMPriv_OSServices PEF binary: CFMPriv_OSServices
    0x1924770 - 0x1924832 CFMPriv_AE PEF binary: CFMPriv_AE
    0x1924840 - 0x1924905 CFMPriv_ATS PEF binary: CFMPriv_ATS
    0x1924980 - 0x1924a57 CFMPriv_ColorSync PEF binary: CFMPriv_ColorSync
    0x1924ae0 - 0x1924bc3 CFMPriv_FindByContent PEF binary: CFMPriv_FindByContent
    0x1924c40 - 0x1924d1a CFMPriv_HIServices PEF binary: CFMPriv_HIServices
    0x1924d90 - 0x1924e70 CFMPriv_LangAnalysis PEF binary: CFMPriv_LangAnalysis
    0x1924f00 - 0x1924fe6 CFMPriv_LaunchServices PEF binary: CFMPriv_LaunchServices
    0x19250c0 - 0x1925197 CFMPriv_PrintCore PEF binary: CFMPriv_PrintCore
    0x19251a0 - 0x1925262 CFMPriv_QD PEF binary: CFMPriv_QD
    0x1925360 - 0x1925449 CFMPriv_SpeechSynthesis PEF binary: CFMPriv_SpeechSynthesis
    0x1ed3000 - 0x1eedfff com.apple.AppleIntermediateCodec 1.1 (141) /Library/QuickTime/AppleIntermediateCodec.component/Contents/MacOS/AppleInterme diateCodec
    0x1ef2000 - 0x1f08fff com.apple.IMXCodec 1.0 (114) /Library/QuickTime/IMXCodec.component/Contents/MacOS/IMXCodec
    0x1f93000 - 0x1f9efff com.apple.LiveType.component 2.0.2 /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
    0x1fac000 - 0x1febfff com.apple.QuickTimeFireWireDV.component 7.3.1 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTim eFireWireDV
    0x1fff000 - 0x1fff92b KodakCarbonShared PEF binary: KodakCarbonShared
    0x1623c000 - 0x162b5fff com.DivXInc.DivXDecoder 6.0.5 /Library/QuickTime/DivX 6 Decoder.component/Contents/MacOS/DivX 6 Decoder
    0x162c6000 - 0x163a2fff com.divxnetworks.DivXCodec 5.1.1 /Library/QuickTime/DivX 5.component/Contents/MacOS/DivX 5
    0x1642e000 - 0x1642efff com.apple.applescript.component 1.10.7 /System/Library/Components/AppleScript.component/Contents/MacOS/AppleScript
    0x16444000 - 0x1667dfff net.telestream.wmv.import 2.2.0.49 /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import
    0x166b3000 - 0x16867fff net.telestream.wmv.advanced 2.2.0.49 /Library/QuickTime/Flip4Mac WMV Advanced.component/Contents/MacOS/Flip4Mac WMV Advanced
    0x168a9000 - 0x16922fff com.apple.DVCPROHDCodec 1.1.1 (209) /Library/QuickTime/DVCPROHDCodec.component/Contents/MacOS/DVCPROHDCodec
    0x16938000 - 0x169e8fff com.apple.AppleHDVCodec 1.0 (129) /Library/QuickTime/AppleHDVCodec.component/Contents/MacOS/AppleHDVCodec
    0x16a06000 - 0x16a7ffff com.apple.applepixletvideo 1.2.5 (1.2d5) /System/Library/QuickTime/ApplePixletVideo.component/Contents/MacOS/ApplePixlet Video
    0x18576000 - 0x185c53c7 CarbonLibpwpc PEF binary: CarbonLibpwpc
    0x185e7000 - 0x1864f97e KodakCMSC PEF binary: KodakCMSC
    0x25ac4000 - 0x25b1402f OLE.CARBON.Shared PEF binary: OLE.CARBON.Shared
    0x780ce000 - 0x78136fff com.apple.LiveType.framework 2.0.2 /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
    0x88d70000 - 0x88d75fff com.apple.CoreMediaAuthoringPrivate 1.1 /System/Library/PrivateFrameworks/CoreMediaAuthoringPrivate.framework/Versions/ A/CoreMediaAuthoringPrivate
    0x88fc0000 - 0x88fe7fff com.apple.CoreMediaPrivate 1.2 /System/Library/PrivateFrameworks/CoreMediaPrivate.framework/Versions/A/CoreMed iaPrivate
    0x89030000 - 0x890d0fff com.apple.QuickTimeImporters.component 7.3.1 /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTime Importers
    0x8fe00000 - 0x8fe52fff dyld 46.16 /usr/lib/dyld
    0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x9021b000 - 0x90268fff com.apple.CoreText 1.0.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.77 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907bb000 - 0x90895fff com.apple.CoreFoundation 6.4.9 (368.31) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x908de000 - 0x908defff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908e0000 - 0x909e2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a3c000 - 0x90ac0fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90aea000 - 0x90b5afff com.apple.framework.IOKit 1.4.1 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
    0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.17 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f90000 - 0x90fd2fff com.apple.CFNetwork 129.22 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90fe7000 - 0x90ffffff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100f000 - 0x91090fff com.apple.SearchKit 1.0.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d6000 - 0x91100fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib
    0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib
    0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x91443000 - 0x914befff com.apple.audio.CoreAudio 3.0.5 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914fb000 - 0x914fbfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914fd000 - 0x91535fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x91550000 - 0x91622fff com.apple.ColorSync 4.4.10 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91675000 - 0x91706fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x9174d000 - 0x91804fff com.apple.QD 3.10.25 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x91841000 - 0x9189ffff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x918ce000 - 0x918f2fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x91906000 - 0x9192bfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x9193e000 - 0x91980fff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x9199c000 - 0x919b0fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x919be000 - 0x91a04fff com.apple.ImageIO.framework 1.5.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91a1b000 - 0x91ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91b30000 - 0x91b46fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91b4b000 - 0x91b69fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b6f000 - 0x91c26fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91c75000 - 0x91c79fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91c7b000 - 0x91ce5fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91cea000 - 0x91d27fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91d2e000 - 0x91d48fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91d4d000 - 0x91d50fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91d52000 - 0x91e30fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x91e50000 - 0x91e50fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91e52000 - 0x91f37fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91f3f000 - 0x91f5efff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91fca000 - 0x92038fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x92043000 - 0x920d8fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x920f2000 - 0x9267afff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x926ad000 - 0x929d8fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92a08000 - 0x92af6fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92af9000 - 0x92b81fff com.apple.DesktopServices 1.3.7 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x92bc2000 - 0x92dedfff com.apple.Foundation 6.4.9 (567.36) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92f1a000 - 0x92f38fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92f43000 - 0x92f9dfff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92fbb000 - 0x92fbbfff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92fbd000 - 0x92fd1fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92fe9000 - 0x92ff9fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x93005000 - 0x9301afff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x9302c000 - 0x930b3fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x930c7000 - 0x930d2fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x930dc000 - 0x93109fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x93123000 - 0x93133fff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x9313f000 - 0x931a5fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x931d6000 - 0x93225fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x93253000 - 0x93270fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x93282000 - 0x9328ffff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x93298000 - 0x935a6fff com.apple.HIToolbox 1.4.10 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x936f6000 - 0x93702fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x9377b000 - 0x9377bfff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x9377d000 - 0x93db0fff com.apple.AppKit 6.4.9 (824.44) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x9413d000 - 0x941affff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x941e8000 - 0x942adfff com.apple.audio.toolbox.AudioToolbox 1.4.7 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x94300000 - 0x94300fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x94302000 - 0x944c2fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9450c000 - 0x94549fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94551000 - 0x945a1fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x945aa000 - 0x945c4fff com.apple.CoreVideo 1.4.2 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x945d5000 - 0x945f6fff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x94799000 - 0x947a8fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x947b0000 - 0x947bcfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x94802000 - 0x9481afff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x94821000 - 0x94b48fff com.apple.QuickTime 7.3.1 /System/Library/Frameworks/QuickTime.framework/QuickTime
    0x94c2e000 - 0x94c9ffff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x95075000 - 0x95092fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x974b5000 - 0x974d4fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x97cda000 - 0x97ce7fff com.apple.agl 2.5.6 (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x97de2000 - 0x97e04fff com.apple.AppleVAFramework 2.4.32 /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
    0x98f34000 - 0x98fdefff com.apple.applescript 1.10.7 /System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
    0x9917c000 - 0x99d6afff com.apple.QuickTimeComponents.component 7.3.1 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x99fcd000 - 0x99fd1fff com.apple.QuickTimeH264.component 7.3.1 /System/Library/QuickTime/QuickTimeH264.component/Contents/MacOS/QuickTimeH264
    0x9a26d000 - 0x9a33bfff com.apple.QuickTimeMPEG4.component 7.3.1 /System/Library/QuickTime/QuickTimeMPEG4.component/Contents/MacOS/QuickTimeMPEG 4
    0x9ac70000 - 0x9ac8efff com.apple.OpenTransport 2.0 /System/Library/PrivateFrameworks/OpenTransport.framework/OpenTransport
    0xc0000000 - 0xc000ffff com.unsanity.ape 2.0.3 /Library/Frameworks/ApplicationEnhancer.framework/Versions/A/ApplicationEnhance r
    Model: PowerMac11,2, BootROM 5.2.7f1, 2 processors, PowerPC G5 (1.1), 2 GHz, 2.5 GB
    Graphics: NVIDIA GeForce 6600, GeForce 6600, PCI, 256 MB
    Memory Module: DIMM0/J6700, 256 MB, DDR2 SDRAM, PC2-4200U-444
    Memory Module: DIMM1/J6800, 256 MB, DDR2 SDRAM, PC2-4200U-444
    Memory Module: DIMM2/J6900, 1 GB, DDR2 SDRAM, PC2-4200U-444
    Memory Module: DIMM3/J7000, 1 GB, DDR2 SDRAM, PC2-4200U-444
    Network Service: Built-in Ethernet 1, Ethernet, en0
    PCI Card: GeForce 6600, Display, SLOT-1
    PCI Card: bcom5714, network, GIGE
    PCI Card: bcom5714, network, GIGE
    Serial ATA Device: WDC WD1600JS-41MVB1, 149.05 GB
    Parallel ATA Device: HL-DT-ST DVD-RW GWA-4165B
    USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
    USB Device: CTE-440-U V4.0-3, WACOM, Up to 1.5 Mb/sec, 100 mA
    USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
    USB Device: Hub, Up to 12 Mb/sec, 500 mA
    USB Device: USB Printer, EPSON, Up to 12 Mb/sec, 500 mA
    USB Device: AK5370, AKM, Up to 12 Mb/sec, 500 mA
    FireWire Device: External HD, Iomega, Up to 800 Mb/sec
    FireWire Device: unknown_device, unknown_value, Up to 400 Mb/sec

    nodel9999 wrote:
      Should I buy an enclosure for my HD and see if I can get it going externally?  Would that be the best way to see if it is the drive and not the cable?  An enclosure is cheaper than buying a new SATA cable, so I'm hoping that's where I can start.
    Yes.  See if the HDD will boot the MBP via a USB connection.  You should probably have an external HDD for backups or a possible replacement of your boot drive.
    Ciao.

  • Windows Kernel Debbuging: Debug over virtual serial port with WDK 8.1

    I'm currently having some issues doing kernel debugging of a Windows 7 x64 target from my Windows 8.1 x64 host machine. I'm running Visual Studio 2013 with WDK 8.1 on my host and have provisioned my target machine running in VMWare.
    Here are my configurations for the target machine. It was configured by reading mostly from here - http://www.codeproject.com/Tips/545835/Kernel-Mode-Debugging-in-a-VM-using-Visual-Studio :
        Windows 7 x64
        Serial port COM2 with VMWare with name \\.\pipe\com2. All proper options in VMWare are checked
        Debug flag for OS enabled through msconfig. Debug port is COM2 running at 115200 baud.
        I ran the test target client "WDK Test Target Setup x64-x64_en-us.exe" on the machine before provisioning the computer
    I was able to provision the computer properly -- it created the WDK Remove User account. However, I'm running into some issues actually debugging. Below are the steps
        Launch the Windows 7 x64 target image in VMWare and wait on the boot menu
        In Visual Studio (host machine), go to Debug -> Attach to process -> Select my computer -> Select process "Kernel" -> Attach
        In VMWare, press enter to boot Windows
        It takes a while, but on my host machine, Visual Studio eventually connects. I can choose to "Break All" and actually use the debugger.
    However, I can't seem to connect to the debugger if I don't do it before booting the kernel. And I can only attach once. For example, I can't let Windows initialize to the desktop and then build my driver and begin debugging. The debugger will always hang on
    "Waiting to reconnect...". The same goes for if I begin debugging on kernel initialization, decide to stop debugging, then try to reconnect or reattach; it will hang on "Waiting to reconnect..." indefinitely as well.

    Follow the directions here: https://msdn.microsoft.com/en-us/library/windows/hardware/jj200334%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    You are using user mode debug setup menus, that won't work.
    Mark Roddy Windows Driver and OS consultant www.hollistech.com

  • Problem while reading data from Serial Port

    Hi All,
    I am facing some problem while reading data from Serial Port.
    As per the requirement I am writing the data on Serial Port and waiting for response of that data.
    Notification for data availabilty is checked with method public void serialEvent(SerialPortEvent event) of javax.comm.SerialPortEventListener.
    When we are writing data on the port one thread i.e. "main" thread is generated and when data availability event occures another thread "Win32SerialPort Notification thread" is generated. This creates problem for me as we can't control thread processing.
    So can anybody pls explain me how to overcome this problem?
    Regards,
    Neha

    My Problem is:-
    I am simoultaneouly wrting data on port & reading data from port.
    First I write data on port using outputStream.write() method. Now when target side sends me response back for the request on serial port DATA_AVAILABLE of SerialPortEventListner event occured,we are reading data from serial port.Now till the time we didn't get the response from target next command can't be written on the serial port. When we are writing data on port main thread is executed.Now my problem starts when DATA_AVAILABLE event occured.At this point another thread is created.Due to this my program writes data of next command without reading response of previous command.To solve this prob. I have used wait() & notify() methods as follows.But again due to this my pc hangs after execution of 2 commands. (PC hang in while loop in a code provided below.)
    From SOPs I could figure it out that after 2 commands we are not able to write data on serial port so DATA_AVAILABLE event doesn't occure n pro. goes in wait state.
    Can anybody help me to solve this issue.
    Neha.
    Code:
    public void serialEvent(SerialPortEvent event)
              switch (event.getEventType())
                   case SerialPortEvent.BI:
                   case SerialPortEvent.OE:
                   case SerialPortEvent.FE:
                   case SerialPortEvent.PE:
                   case SerialPortEvent.CD:
                   case SerialPortEvent.CTS:
                   case SerialPortEvent.DSR:
                   case SerialPortEvent.RI:
                   case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
                                 break;
                   case SerialPortEvent.DATA_AVAILABLE:
                        try
                             dataThread = Thread.currentThread();
                             dataThread.setPriority(10);
                             dataAvailable = true;
                                                                                    byte[] tempArray=new byte[availableBytes];
                                        inputStream.read(tempArray);
                                                                       catch (IOException io)
                             SOP(io, "Error in serialEvent callback call for event DATA_AVAILABLE");
    public void  writetoPort(byte[] data) throws IOException
                             outputStream.write(data);
                              while(finalTimeOut >= actualTime)
                            if( ! dataAvailable)
                                    actualTime = System.currentTimeMillis();
                           else
              synchronized (mainThread)
                   mainThread = Thread.currentThread();
                   mainThread.wait();
    public  void sendDatatoUser(byte[] b) throws Exception, HWCCSystemFailure
              obj.returnData(b);
              synchronized(mainThread)
                   mainThread.notify();
                                                           

  • Reading 2 serial port in a same time

    i want to monitor 2 type of data in a same time
     1- i have 6 sensor and i send them from micro avr and packed in this format >> 
    printf("%4d%4d%4d%4d%4d%2d@%4.2f\r\n",a,b,d,c,e,p,f);
    i want to recive all 30 data bytes  in one port then unpacked them...
    2- i have a gyro sensor that sends data very slow every 500ms thats data like this   >> 
    x+40.2\s\s\Y+42.3\r\n
    i want recive all 16 data byte in another port and send feed back (write serial) too.
    i recive gyro sensor data recive in fix 16 byte and dont have any problem  .
    but i have problem that i dont recive fix data from 30 data(from micro) its hangs or recive lower.
    its becuse i use 2port in same time if i use it alone there is no problem.i recive it fix.
    plz help me.
    also im sory im not good at english.
    Attachments:
    8-28-2012 8-07-41 PM.jpg ‏289 KB
    read and write in 2 serial port.vi ‏28 KB

    Hey,
    I would first add some error handling to your loops.  The way you have it setup, the loops could be running in error and you will never know about it.  The code I have attached will stop the loop if an error occurs.
    Does it throw any errors when you run it?
    Lewis Gear CLD
    Check out my LabVIEW UAV
    Attachments:
    read and write in 2 serial portv2.vi ‏28 KB

  • ADB or Serial ports

    my bro has a PowerBook G3 233 running on Jaguar. I'm trying to use a mouse and a printer that plugs into the ADB/Serial ports but the machine doesn't seem to detect it. Does OS X support these ancient ports??

    Josh,
    Sorry for the delayed reply...
    Apple introduced USB 2.0 drivers in OSX 10.2.8 but they have problems with USB 2.0 PC cards that do not have the NEC-based USB2 chipset. Usually the symptoms are printers not working, USB HDs not transferring data or freezing up, etc; low-demand devices like a USB mouse seem to work OK, though.
    Your options might be these:
    1. Find an inexpensive used USB 1.1 PC card; these still work fine but of course only run at the slowere 1.1 speeds.
    2. Buy a USB 2.0 PC card that uses the NEC-based chipset; unfortunately I know of only two because most manufacturers do not advertise this data. Here are two such cards:
    http://www.ratocsystems.com/english/products/subpages/cbu2.html
    http://www.macally.com/spec/usb/connecting_device/uh2226.html
    3. Download the Mac OS X 10.2.5 or 10.2.6 Update > extract the 'IOUSBFamily.kext' extension using Pacifist (VersionTracker) and replacing the 10.2.8 version with the one from 10.2.5 or 10.2.6. You can then buy any USB 2.0 PC card and have it work without issue, but of course it will only run at the slower 1.1 speeds.

Maybe you are looking for