VISA (serial port) commands fail in VI, but working in the VISA test Panel

Hi, I have an instrument that has a usb connection. When I connect it to a Windows 7 PC, it picks up the driver automatically and presents itself as a "USB Serial Port (COM7) (manufacturer's FTDI).»

When I opened NI MAX, this feature appears as COM7 (ASRL7::INSTR) under "series and parallel. And when I click on open visa Test Panel and try it "* IDN?" command, it works OK.

However, the VI (which sends just a command VISA "* IDN?") give me a timeout error (0XBFF0015) or a resource/device absent error (0XBFFF0011). A screenshot of VI is attached.

No idea why?

Thank you.

PS: I went through the process to create the VISA-USB driver, who has another question, but I'm trying to understand why this happens. This device has also a GPIB port and when I use a USB-GPIB adapter, it works very well.

N ° your first string to write sends a literal backslash and a literal n.  Your watch \n control, but it is in Normal display mode.  Change it to \codes mode and delete the extra backslash it.

Your second string to write is set correctly for the mode \codes.

Because the wrong string is written, the timeout error occurs and prevents the VI downstream on this same error running thread.

Tags: NI Software

Similar Questions

  • Cannot send command via the VISA test panel in MAX

    Hi all

    I have a small question by using the VISA test panel in MAX.  I try to send a simple command to a device and then retrieve the response data.  I am able to do this successfully through Labview, but for some reason I can't get a good answer in MAX.  The command I sent you is merely a letter (unit address) followed by an end of line character (\r\n in ascii).  In MAX, I simply adding \r\n on the string sent in the buffer (end send on written == FALSE).  All parameters of series are the same as what I have in LV (19.2, 8-n-1).  Someone at - it ideas?  It of a bit frustrating that I just want to make something simple and do not want to have to build a whole routine in LV to do this.

    Cheers, Matt

    Oops!  Dysfunction of the user.  I was so positive that I sent a term of constant line that I don't look my own code.  In this case, it's a new line!  Duh!  Thanks for trying to help with this arrow.  Sorry to waste your time.

    Cheers, Matt

  • Driver serial port PCI missing on elitebook 2560p after replacing the defective motherboard

    Hello

    I have the following problem, after a replacement of faulty motherboard on my elitebook 2560p with Win XP, I find a question mark in the Device Manager list under a PCI serial port driver is missing.

    Properties of the navigation device I can read:

    Serial port PCI - PCI bus 0, device 22, function 3

    and
    PCI\VEN_8086 & DEV_1C3D & SUBSYS_162B103C & REV_04\3 & B1BFB68 & 0 & B3

    I tried to locate the pilot unsuccessfully in SP38312, SP45131, SP53918, unzip the files and trying to manually locate the driver in the files with the windows driver update function.

    can help you locate the correct driver?

    Thank you very much in advance

    Hello:

    Try this one:

    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=321957&prodSeriesId=5071201&prodNameId=5071203&swEnvOID=4059&swLang=13&mode=2&taskId=135&swItem=ob-91961-1

    Paul

  • My WD 3 USB drive does not work in the 3 USB Ports on my Lenovo W530 lap. But work in the regular ports.

    My WD 3 USB drive does not work in the 3 USB Ports on my Lenovo W530 lap. But work in the regular ports. What can I do to fix this?

    Do not use windows update for drivers.

    Update your drivers Lenovo support and see if that helps

    If the lenovo is new, you can contact Lenovo support to asertain why usb3 ports apparently do not work

  • in Acrobat 8 Standard advanced editing tool is grayed out in Windows 7 and Windows 10 but works with the same pdf file in Windows XP Professional. Why?

    in Acrobat 8 Standard advanced editing tool is grayed out in Windows 7 and Windows 10 but works with the same pdf file in Windows XP Professional. Why?

    Perhaps because Acrobat 8 is not compatible with Windows 7 or 10.

    Friday, October 9, 2015 at 22:11, thosdelaney [email protected]>

  • Visa test panel works, but visa write that VI does not work

    Hello everyone, this is my first post here

    I'm trying to communicate with an instrument of piezo controller using my serial port.  I can successfully write a command using the Panel to test visa, "AV20\r" for example sets all channels of voltage of 20 volts.  In my labview vi, I set up the serial port with the same settings as I see in the Panel to test and run it, but the device does not respond.

    Any suggestion would be greatly appreciated, I'm sure I must be missing something simple here...

    Thank you

    Brian

    Are you sure your string constant or control in LabVIEW that contains the string is configured to show the \codes attributes?

  • USB keys do not work in my VISTA PC, but working in the XP computer.

    My PC is only a few months and underwarranty. VISTA is OEM original and authentic. All updates and installed SP2.

    But I have several problems with VISTA.

    One of them is the following:-

    USB keys do not work in this PC. Initially, they are recognized, but as soon as I start the data transfer it stops and does not recognize the keys more. Same USB keys work correctly on other XP computers.

    An external hard drive works perfectly on the same USB port. If the port is fine.

    Hello PG_eu,

    First of all if still under warranty, contact the manufacturer to execute tests for your USB slots. Have you tried to see if other devices work on the USB plug? The manufacturer of your may be able to replace your computer if needed.

    Then, I'd go for the Device Manager to see if you have errors. Go to Device Manager and see if you have a yellow fringe! showing that there are errors with your USB devices. Open the Device Manager in Windows Vista via the management utility of the computer, the Control Panel, or from the command prompt by typing in devmgmt.msc.

    You can go to the different tabs and see if the devices work properly, should be cancelled or update your drivers.
    You can also go into the event viewer and see if you have errors on your hardware devices.

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Why my cron for primary/secondary server does not work, but worked at the prompt of

    I have redhat linux version 5, oracle servers 11 GR 2.

    I have cronjobs to monitor the use of tablespace and alert logs.

    However they do not work to the task, but if I execute them at the command prompt, it worked.

    What could be the problem?
    example cron script:
    Head of the script:

    #! / bin/bash
    . / u01/app/Oracle/bin/hydev_env
    MAILTO = "DBA.com"
    LOG=/U01/app/Oracle/dba_cron/out/tablespace_90_full.html
    echo $ORACLE_SID
    sqlplus-s < <-EOF > > / dev/null
    / as sysdba


    Cron job set is like this:


    #------------------------TABLESPACES Check------------------------------------------------------------------------
    0.35 * /u01/app/oracle/dba_cron/scripts/tablespaces_over_90%.sh > /u01/app/oracle/dba_cron/out/tablespaces_over_90%.log > 2 > & 1


    VI/var/spool/mail/oracle:

    At the error like this:
    / bin/sh:-c: line 0: about syntax error unexpected token '2'
    / bin/sh:-c: line 0: ' /u01/app/oracle/dba_cron/scripts/chk_ora_alert_all.sh > /u01/app/oracle/dba_cron/out/chk_oracle_alert_all.log > 2 > & 1'


    Any help guru?

    Hello;

    Usually it is a question of the environment.

    The script works in command prompt, because when you signed on your chosen username environment of a profile settings, for example .bash_profile.

    A crontab task presents no environment. That's why you call hydev_env at the beginning of the script. If something things are missing in your env file especially likely.

    What I do is keep a file for each database in the environment to a place like this:

    / u01/app/Oracle/dba_tool/env (/ u01/app/oracle/dba_tool/env/PRIMARY.env)

    The PRIMARY.env file is .env

    What I keep in there, that's all I need a job like crontab background would need:

    ORACLE_BASE=/u01/app/oracle
    
    ULIMIT=unlimited
    
    ORACLE_SID=PRIMARY
    
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    
    TNS_ADMIN=$ORACLE_HOME/network/admin
    
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    
    export TERM=vt100
    
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    
    export ORACLE_HOME
    
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    
    export TNS_ADMIN
    
    export PATH
    
    export MAILTO=
    

    Important If you are not sure, a setting on your system type "env" at a Linux prompt, when you are logged in as user where the script works. Change as needed in your file .env.

    I have here a script call in crontab to check the tablespaces

    #!/bin/bash
    ####################################################################
    #
    
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . quickcheck  "
    exit 1
    fi
    
    #
    # Set the Environmental variable for the instance
    #
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    #
    #
    
    $ORACLE_HOME/bin/sqlplus /nolog <
    

    Note how I passes the name of the comic as a parameter to the script if I can use the script with several database without changing.

    /U01/app/Oracle/dba_tool/bin/quickCheck.sh primary SCHOOL

    Is the crontab to run every day at 05:12:

    12 05 * /u01/app/oracle/dba_tool/bin/quickcheck.sh PRIMARY > /tmp/quickcheck.out

    Best regards

    mseberg

  • Error (Hex 0xBFFF0015) time-out in NI VISA test panel when you try to play the system

    Hello

    I try to control the position of three valves actuator of four lanes of Garland. They are VICI Valco and model # EUHA. I connected them via RS - 232 to USB in my computer. I was able to communicate with them, when I sent a few simple commands through hyperterminal and when I open MAX devices appear and the sign says the devices are working properly. However, when I go in the test panel and try to run some of the default commands, I get timeout error, 0xBFFF0015, during the reading of the order. Thanks for any help you can provide.

    To get your LabVIEW code, you right-click on the control/string constant and select '-' display Codes?

  • HP Pavilion dv6 - black screen on startup, but works using the secondary monitor?

    I use a Pavilion dv6 WV815AV, and I used it for 3 years now.

    I tried to start the computer and the fan and lights are lit, but not the monitor.  I tried to plug in my high school, and it's that now treats as if it were the only screen.  I had problems in the past of a few times where I would get past the HP logo, and then there would be a substantial delay where the screen remains black but be illuminated, but most of the time that he would go to the screen connection, and if not, a simple reboot managed to solve the problem.

    Thoughts on how should I solve it?

    Thank you!

    Hi mybluesock, sorry to hear that you have a problem with the monitor not just not. I did some research and I found a document that can help you. Click on the link for the document.     http://support.HP.com/us-en/document/c01997899

    If this does NOT resolve the problem, please do not hesitate to write back and I'll do more research on the issue.

    Thanks in advance

  • GoDaddy email login now systematically fails with firefox, but works with other browsers

    Logging to GODADDY EMAIL WITH https://login.secureserver.net/index.php?app=wbe & domain = email.allancarstens.com
    URL GENERATES javascript:$('login_form').submit(); URL
    AND DISPLAYS [object Object]

    HE WORKED WITH FIREFOX AND STILL WORKS WITH OTHER BROWSERS.

    You can attach a screenshot?

    • Use a type of compressed as PNG or JPG image to save the screenshot
    • Make sure you do not exceed the maximum size of 1 MB

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Sites that use javascript to launch code download fail in FF but work in Internet Explorer.

    All financial sites that I use (TD Ameritrade, SunTrust bank, AmEx, etc.) allow to download monthly statements in pdf format. These used to be direct links to a pdf file, which can be downloaded or played directly in Firefox. They are now the javascripts which probably make the PDF on the fly from documents, and then download. I get a garbage file on my desk instead. In Internet Explorer, the javascript code triggers a query to view or download. In Firefox, I believe that there is a flash of a window that opens, then nothing. I tried to disable AdBlocker and have the sites listed to allow pop-ups, and is not.

    Try running Firefox in questions to troubleshoot Firefox in Safe Mode. If it works properly in this configuration, then one of your modules is the culprit.

    See also: https://support.mozilla.com/en-US/questions/819362

  • Why connection Internet fails at startup but works on reboot?

    On PC and for friends as well with Vista and Windows 7, internet connection does not start until the PC is rebooted.

    This problem has arisen in the last 3 months for me and 2 friends in last month.

    Please indicate why/how correct.

    Hi Nigel,

    1. are you using a cable or a wireless Internet connection?
    2. you are using an Internet connection broadband?
    3. what browser you use to surf the Internet?
    4. you receive an error code or error message when you connect to the Internet?

    Please provide us with more information to solve the problem as soon as possible.

    Please follow the links:

    Method 1:

    Network convenience stores:

    http://Windows.Microsoft.com/en-us/Windows7/open-networking-troubleshooters

    Note: Also applies to the Windows Vista operating system.

    Method 2:

    Updated network adapter drivers:

    Updated a hardware driver that is not working properly:
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    For reference:

    Network connection problems:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

    I hope this helps.

  • The COM Ports on Satellite P10 do not work after the conversion to the WXP Pro

    I have a P10 (PSP13E-0372V) that I have upgraded from XP Home to XP Pro. Everything went very well and then I discovered that I don't have a COM port or at least Device Manager shows no COM port.

    If I try to dial, I get "Error 633 the modem is in use or not configured properly". Back to Bishop device to watch the modem which, it says, works very well. If I query the modem (Diagnostics) told me 'port that the modem is attached could not be opened. "
    Also, it is said it is attached to COM3 but I can choose any port and get the same result. (When I change the port I get the message "the port has been opened by another application. Renaming the port may have an unpredictable effect on the other applications")
    I tried to remove the modem and restart but no change.

    If anyone any ideas how I can get the modem to work.
    TFAI

    So any ideas on how

    Hello

    Usually WXP Home, Pro should work without any problem because all the drivers, tools and utilities can be used for the two operating systems. I just hope that you have preinstalled all things in order of good facilities.

    Have you installed the driver chipset from Toshiba download page right?

  • Location does not non-Western languages, but works for the East and Asia... Help!

    Hello

    My specs are:

    -Windows XP SP3 with all languages and fonts installed (including Asian languages).

    -Eclipse build IDE-20100218-1602

    -BlackBerry Java Plugin Version: 1.1.2.201004161203 - 16

    -BlackBerry Java SDK Version: 5.0.0.25

    I created the .rrh and .rrc files, as explained in the documentation of Blackberry and switch languages according to the language selected devices.

    HOWEVER, the files real DRR refuse to understand accents French, German, Hungarian, Italian, Spanish or Portuguese.

    The trouble is that it accepts English, Greek, Russian, Chinese, Korean, Turkish, Romanians alphabets/characters.

    All files of the RRC have the UTF-8 format. (He played with different formats, just in case, but made no difference)

    I tried different ways to import the translated text, but the rrc files convert still accents such as u, e, e, a, o, n, e in question marks as it fails to convert their UTF-8 format \uxxxx.

    Around her, the only way is to provide these accents in UTF-8 format \uxxxx. For the moment, it looks like I'll have to replace all the accents broken by their equivalent before UTF-8 format enter the CRR file which is something the CRR file should have done itself.

    Is there a bug in the plugin BlackBerry or I do something wrong?

    Help, please.

    possibility one)

    Copy the text in the resource editor, this should keep all of the special characters.

    only works line by line

    (b)

    copy the full text of prbeditor, to convert special characters in unicode notation

    (c)

    write a utility java desktop to perform the conversion

Maybe you are looking for