Can I reset serial ports without rebooting?

I have an application that communicates with a SilverMax servo drive over RS232.  If the device is off when I run my VI or if it gets turned off during a program run, the serial port locks up at the VISA serial write VI.  I need to hit the reset button on the PC to recover.

Hi TAS1,
Try the Basic Serial Write and Read Example VI, and see if the example works.  You can find the example in the NI Example Folder, which you can access by navigating to Help » Find Examples... in LabVIEW.  The behavior you described is unexpected.  Make sure that there is a delay, as shown in the example, and that the VI executes all the way to the end, where there should be a VISA Close.  It is important that VISA Close executes, because this clears the VISA resource.  Please let me know if you have any questions about the example.
Regards,
Rima
Rima H.
Web Product Manager

Similar Messages

  • Reset Bluetooth connection without rebooting?

    I'm using a wireless Mighty Mouse. After 20-30 minutes of use, it frequently gets very slow and jumpy. I've found that rebooting the computer "resets" the connection and returns with good performance.
    But I shouldn't have to reboot every 30 minutes just to keep the mouse working. Is there any other way to "reset" the Bluetooth connection? I don't see anything like that under the Bluetooth settings.
    Is the answer to keep "re-pairing"?
    If I turn my mouse off, then back on, a gray "connection lost" mouse icon appears briefly on the screen so I know the computer detects it, but I can't seem to reconnect without rebooting (or re-pairing, if that's the best option).
    Also, if I put my Mac to sleep, I lose the mouse connection -- even if the mouse is turned on at the time I wake the computer. Is this normal?

    Okay, I've taken to turning my mouse off and re-pairing it every 20 minutes or so. I can't believe this is how it's supposed to work. Isn't there a better way?
    Note: My Logitech Bluetooh mouse never had this problem.

  • I CAN NOT find serial port init.vi

    In labview8.6 , I CAN NOT find serial port init.vi.
    Other lots of icon can be found..... 

    Dennis Knutson wrote:
    for(imstuck) wrote:
    That's because it is called VISA Configure Serial Port. It is located in Instrument I/O->Visa->Visa->Visa Advanced-> Bus Interface Specific -> serial.
    And there it is. Sometimes you really gotta dig!
    You enjoy taking the long way there?
    Message Edited by Dennis Knutson on 05-20-2010 05:48 PM
     I just did a search of the palette and thats where it took me so thats what i posted to help the OP. Besides, sometimes the scenic route is nice. You pass lots of beautiful VIs on the way to your destination that you may have never known existed. And, I actually prefer the quick drop way .
    Message Edited by for(imstuck) on 05-20-2010 08:35 PM
    CLA, LabVIEW Versions 2010-2013

  • How can I reset iphone 5s without I cloud

    how can I reset iphone 5s without I cloud

    Now my phone have 'lock id and I forgot ID and password how can I do it because can't activate user name and password

  • Can't open Serial port in notebook (use Serial to USB)

    OTL
    use Serial to USB and java communication 2.0, windows 2003
    and notebook which has no RS232C port
    testing desktop it is done.
    notebook does not work....
    How can i open serial port in notebook ...

    Saludos
    tengo el mismo problema, aunque he encontrado algunas
    API pero solo tienen soporte para LINUX:
    * jsr80 y
    * jUSB API
    Si tienen alguna solucion haganmela saber.In English via Babelfish (and a little common sense), in case anyone knows a solution:
    Greetings, I have the same problem, although I have found some API but they only have support for LINUX:
    * jsr80
    and
    * jUSB API
    If they have some solution I'd like to know.

  • HT4623 I have tried resetting an iPhone 3 and I am unable to activate and sync it. How can I reset the device without using a computer?

    I have tried resetting an iPhone 3 and I am unable to activate and sync it. How can I reset the device without using a computer?

    Hello anacc,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Connect your USB cable to your computer but not to the iPhone, iPad, or iPod touch until step 3.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button down, connect the USB cable to the iPhone, iPad, or iPod touch. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen. When this screen appears, you can release the Home button:
    Note: If the image of a battery appears, let the device charge for at least ten minutes to ensure that the battery has some charge, and then start with step 2 again. If you don't see the Connect to iTunes screen, try these steps 1 through 4 again.
    iTunes should automatically open and display the following message:
    "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."Note: If iTunes not open after two minutes, please open iTunes yourself.
    Use iTunes to restore the device.
    Best of luck,
    Mario

  • How can i reset my iphone without update to ios 7.0.6

    how can i reset my iphone without update to ios 7.0.6

    You can wipe the device without updating:
    Settings > General > Reset > Erase All Content & Settings
    I would be remiss not to mention that iOS 7.0.6 patches a security flaw.
    If you choose not to update, your device will be at risk.
    About the security content of iOS 7.0.6

  • Can I reset my iphone without losing my photos

    can I reset my Iphone without losing my photos. I haven to reset my phone because he is blocked. because someone entered to mant wrong codes

    You will have to force your phone into Recovery Mode & restore it. iTunes will give you the option of restoring from backup or as a new device. All data, currently on your phone, will be erased. Follow the directions here:
    http://support.apple.com/kb/HT1212

  • Can i reset my iphone without the sim card burning ?

    can i reset my iphone without the sim card burning ?

    Why would your sim card be burning?. If anything is burning it is safe just not to use the device at all and take it into an Apple Store to be evaluated.

  • How can I reset security question without rescue email

    how can I reset security question without rescue email, or hoe should i set rescue email with existing account?

    Call Apple they will be able to help you. 1-800-APPLE

  • I have a iphone 4 with no SIM trey hole. Is there anyway i can get the serial number without using itunes?

    I have a iphone 4 with no SIM trey hole. Is there anyway i can get the serial number without using itunes? My iphone is disabled and will not connect to my computer because it is locked.

    Why do you need the serial number? You could get it if you'd ever synced it to that copy of iTunes before, but I'm guessing that's not the case.  You need to put the phone into recovery mode and restore it if it's disabled now. There really isn't any other choice.

  • Write to Serial Port without splitting string data

    Hi, all, thank you for your help in advance.
    Problem:
    I am trying to write to the serial port with VISA write module. Somehow the string I tried to send was splitted before it was sent. For example, if I want to send "127", it sends "7', "2", "1". I don't know if there's anyway to configure the module so that it sends out the whole string at once. I use the return count to indicate how many times it spits the data. So "127" now returns "3" (sent three times. I would like to have it to return "1" so that "127" was sent in whole).
    Project:
    I am working on an application where a DC motor is controlled by a controller talking to the PC's serial port. "127" stands for its maximum power. The controller devides the power into 128 steps. Therefore I need to input number from 0 to 127 to command the speed.
    Any help or suggestion will be appreciated!

    Thanks for the prompt replies.
    About Number/ASCII
    I am using the Atmega128-Controller Chip to read in the signals sent from the computer serial port. Then it sends signals to the motor controller. The Atmega chip reads the ASCII string and converts it to hexadecimal number, sending that number to the motor controller. I can program the Atmega chip so that it either translates the ASCII string into hex as mentioned or accepts as it is. Either way, I want it to read two byte information at once (00 to 7F).
    If the VISA serial write can send only one byte at a time, then I may have to program the chip so that it buffers the readings. I have tried using number/hex converter and number/string converter, either case, the fact that VISA Write spits one byte at a time hinders the programming. For example: I defined numbers 1 to 5 represents 20% to 100% power output with 20% increment Then I defined "10" as "90%" power, but it reads "1" "0" seperately, so the actual out put is "20%" then "0%".
    I used the example VI provided by NI : advanced serial write/read. For convenience, attached here. Not all modification I made is saved.

  • I forgot my admin password for my imac os x 10.7.5. How can I reset the password without deleting any of my files?

    I have access to my computer. the only issue I am having is trying to update my computer.
    In order for me to update or download an app I have to type in my password, which I have forgotten.
    I want to reset my password without having to delete any of my files.
    Can anyone please help me with this problem?

    OS X 10.7 Lion, 10.8 Mountain Lion, 10.9 Mavericks and 10.10 Yosemite
    Reset Password
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse pointer to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box under “Select user account”.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • Can not access serial port while upgrading from LabVIEW 6.1 to 7.0

    Hi,
    I built an application under LabVIEW 6.0.2. few years ago. This application uses LabVIEW serial features. When I upgraded to LabVIEW 6.1, my application was still working correctly.
    Today, I upgraded to LabVIEW 7.0, mass compile all VIs and now my application can not communicate with my peripheral !!!
    The program is sending the command to the peripheral. The peripheral answers but LabVIEW serial driver does not see any datas on buffer even if datas are available ... "Bytes At serial port.vi" always returns 0. I am sure that datas are available, using a COM port psy.
    Does anyone has an idea?
    I saw a lot of solutions in the forum, but I would like to know the best solution with minimum work, te
    st, and so on ... on my program.
    Regards,
    Pascal.

    Hi Pascal,
    Which is your version of NI-VISA?
    Please see the link bellow :
    http://digital.ni.com/manuals.nsf/websearch/E8D86CD680B0753D86256D2C005D8EA0
    The first test to be made is to test the communication with your serial port using MAX (Measurement and Automation Explorer) :
    Open MAX, Go to "Devices and Interfaces", then "Ports", select COM1 (or ASRL1::INSTR). Right clic on it and select "Open VISA Session" the go the "Basic I/O" then Write data, execute, Read data, execute.
    Be sure that the communication is OK. Be sure that you use the same Alias existing in MAX in your LabVIEW program.
    Now, if all is OK, try to use Serial communication examples existing in LabVIEW Help>>Examples Finder. These examples use NI-VISA VIs.
    If all above is OK and you
    still have the same problem, try to follow these instructions :
    "In order to use the old Serial Compatibility VIs in LabVIEW 7.x, you must copy the following files from a previous version of LabVIEW to the LabVIEW 7.x directory:
    Replace the serial.llb in LabVIEW 7.x with the serial.llb from a previous version of LabVIEW. This file is found in C:\Program Files\National Instruments\LabVIEW\vi.lib\instr.
    Replace the _sersup.llb file in LabVIEW 7.x with the _sersup.llb from a previous version of LabVIEW. In LabVIEW 6i and 6.1 this file is located in C:\Program Files\National Instruments\LabVIEW\vi.lib\platform. In LabVIEW 7.x (and 5.x) this file is found in C:\Program Files\National Instruments\LabVIEW\vi.lib\instr.
    Copy the file serpdrv to the C:\Program Files\National Instruments\LabVIEW 7.x directory. This file is not installed with LabVIEW 7.x, so it only needs to be copied from a previous version of LabVIEW, not replaced."
    I hope that my answer will help you.
    Sa
    naa T
    National Instruments

  • If I close Firefox, I can't open it again without rebooting. It says that Firefox is still running.

    I have Firefox 6.0.1. I am running it on a desktop with Windows XP. I have always loved it and need it for one program I use a lot. Lately, if I close Firefox for any reason, I can't open it back up without rebooting. It says Firefox is still running. I have deleted Firefox and reinstalled it several times with the same result.

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

Maybe you are looking for

  • How do I transfer music from my PC to my Ipad

    How do I transfer music from my PC to my IPad?

  • Hp Officejet Pro 8500 connected to network, but can't be seen from computer or Apple mobile devices

    I set up the printer and was able to print from an Apple iPod.  Then I connected the printer directly to one machine via USB to scan a bunch of old picture. I disconnected the printer USB cable (so it is no longer attached to that computer) and now i

  • String tokenizer manipulation

    Hi, I would like to ask how to manipulate the token that are taken from string tokenizer. For example : input = a b 1 f 986 supposed output: a b 1 f 986 How to make the output look like this? Output = (a,b,f),(1,986) How to make the program will be a

  • Export data from iphoto 09 to searchable file

    I have iphoto 09.  I would like to export the titles, locations, times and dates, and comments for the photos in an album to a searchable file.  I can't find a simple way to do this.  Please help

  • I Need Help in BIOS Update!!!

    Hey!! i got the 875p Neo LSR motherboard and the BIOS version that i currently have or got with my board was 1.4 and the LIVE Update 3 says the online version is 1.7. There was something to do with Flash BIOS or something and i tried it and my PC wou