Error -1073807346 will get away when i run VI for second time

This is the weird thing
i open the vi for the first time and run it and it will put out the error :
Error -1073807346 occurred at VISA Open in Prompt for com port.vi
Possible reason(s):
VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.
i run the vi for the second time and the error goes away.. and everything works...
i dont know whats wrong, have you had this problem also?
Attachments:
serial.png ‏31 KB
serial.png ‏31 KB

You know that almost threw me untill I re-read the vi name!
Dude, that's not how you write a "Prompt User" routine!  What is happening is that you read the VISA In Terminal run that value through the for loop (At warp speed burning a cpu core) while the user fiddles with the VISA in terminal.  BUT, nothing changes the value on the wire!  so you pass the "Old" value to the VISA Open.
I've been meaning to add Prompt(VISA).vi to my reuse for a while anyhow.  Thanks for the excuse.
Jeff

Similar Messages

  • URL getting concatenated when user logged in for first time

    Hi
        I am sending the below url to the mail as a notification .
    http://<server>:<port>//irj/portal?NavigationTarget=%3ROLExyz
    when the user click on the link ,it should route to the particular page
    case 1 when user already logged in, then after clicking of this link it opens new window and shows the particular page correctly
    case 2 when user not logged  then afetr clicking of this link it asks for user id and pwd which is ok, but  the link is getting concatenated like
    http://<server>:<port>//irj/portal?NavigationTarget=%3ROLExyz=NavigationTarget=&ROLExyz
    then showing the error message that page doesn't exist.
    I am usig Escpae URL function to encode the url ( NavigationTarget=&ROLExyz ) when sending  the link to the user in mail .
    Regards,
    Amit

    Hi,
    your value of the NavigationTarget parameter does not seem correct  - why does it start with "ampersand"?
    http://<server>:<port>//irj/portal?NavigationTarget=%3ROLExyz
    Maybe try to remove the ampersand so that the parameter looks as follows:
    http://<server>:<port>//irj/portal?NavigationTarget=ROLExyz
    Regards,
    Tanja

  • ALV not getting refreshed when call screen is executed second time

    I have 2 screens 9001 and 9002. In 9001 , I am displaying the fields of a database table in a Table Control. The user has to select some of those fields and click on a button 'Generate ALV'. After clicking , the control navigates to 9002 where I am displaying ALV with data in the selected fields(the other fields remain empty). (using custom container)
    Now there is BACK button in 9002 where i have written LEAVE TO SCREEN  9001. After this if the user again make changes in column selection and click on 'Generate ALV' , then still the old alv data is displayed. (Mind you the structure of alv is same , only the selected fields should show data).
    I am using REFRESH_ALV_DISPLAY also and when i tested this function independently , its working fine (although for interactive alv in the same screen).
    I am making use of <fs> for dynamic internal table and i checked it using breakpoints , during the 2nd time , it contains the correctly updated data so i think the problem lies with alv
    Kindly check this code
    MODULE STATUS_9002 OUTPUT.
      SET PF-STATUS 'ZALV'.
    *  SET TITLEBAR 'xxx'.
      CREATE OBJECT C_CONT
        EXPORTING
          CONTAINER_NAME               = 'CUST_CONT'
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    IF OBJ_ALV IS INITIAL.
      CREATE OBJECT OBJ_ALV
        EXPORTING
          I_PARENT           = C_CONT
      CALL METHOD OBJ_ALV->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           I_STRUCTURE_NAME              = INP_TABLE
         CHANGING
          IT_OUTTAB                      = <itab>
    ELSE.
       CALL METHOD OBJ_ALV->REFRESH_TABLE_DISPLAY
      ENDIF.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    Edited by: amber22 on Sep 16, 2011 6:45 PM

    Amber,
    Something like:
    *&      Module  STATUS_9001  OUTPUT
    MODULE status_9001 OUTPUT.
      SET PF-STATUS 'ST9001'.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
    MODULE user_command_9001 INPUT.
      CASE sy-ucomm.
        WHEN 'GEN'.
          SELECT * FROM spfli INTO TABLE gt_outtab.
          CALL SCREEN 9002.
        WHEN 'BACK'.
          LEAVE.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&      Module  STATUS_9002  OUTPUT
    MODULE status_9002 OUTPUT.
      SET PF-STATUS 'ST9002'.
      IF obj_alv IS INITIAL.
        CREATE OBJECT c_cont
          EXPORTING
            container_name = 'CUST_CONT'.
        CREATE OBJECT obj_alv
          EXPORTING
            i_parent = c_cont.
        CALL METHOD obj_alv->set_table_for_first_display
          EXPORTING
            i_structure_name = 'SPFLI'
          CHANGING
            it_outtab        = gt_outtab.
      ELSE.
        CALL METHOD obj_alv->refresh_table_display.
      ENDIF.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    *&      Module  USER_COMMAND_9002  INPUT
    MODULE user_command_9002 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          CALL METHOD: obj_alv->free, c_cont->free.
          CLEAR: obj_alv, c_cont.
          CALL METHOD cl_gui_cfw=>flush.
          LEAVE TO SCREEN 9001.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9002  INPUT
    Altough it's not a really nice solution... Why using 2 screens for example? you could use two containers instead...
    Also I would recommand playing with the new salv class for your grids.
    Anyway don't hesitate to give feed-back.
    Kr,
    m.

  • Printing help, colour changes when i print files for second time

    Hi, iv designed a thank you card that i want to print off multiple times, iv saved it, happy with it, did a test print and it looked fine, i then went to print off a second copy and the colour had changed to a much lighter tone, so i assumed the ink was running low and changed the ink, went to print it again, and its still the same pale colour, any help anyone, thanks in advance

    Hi, thanks. Do you mean Save As - Photoshop PDF, or... how are you referring to doing that? 
    (Thank you for this!  I had taken to making screenshots for pete's sake, though this change happened suddenly, so ... I have no idea why printing to PDF suddenly didn't work and it seems it should be "repairable".)

  • When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds.

    When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds. From decimals of inputline. If i disconnect the input to the subVI "Get Date/Time string vi" it will work propperly, it also doses if I reconnect it. I use LabViev 7.0.
    So the problem i solved, but i dosent understund why it works in this way. Does it indicate other problems which will make my researchprogram unrelaible ?
    Attachments:
    Waveform_Time_to_Date_Time_String.vi ‏18 KB

    Hello.
    I checked your vi and it fails as you state.
    It runs fine if: 1 Convert number to timestamp OR
    2 Wire a constant to want seconds?
    In labview 7.1, no problems.
    I think is a job for NI engeniers.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Itunes application error when attempting to open for first time. HELP

    Running windows xp pro, just bought new ipod classic, installed itunes software. When attempting to open for first time i get an itunes.exe - application error, error message that reads "The instruction at "0x100001040" referenced memory at "0x100001040". The memory could not be "read". Click ok to terminate the propgram. Click on CANCEL to debug the program. I have tried re-installing several times, cleaned temp etc. Nothing. Please help, i really want to start using my new ipod.

    You have to unhide your library folder and adjust the user permissions to allow write access.
    Mylenium

  • My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    Hello Nadersalah,
    It seems you're experiencing multiple issue with your iPhone. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    iPhone Repair and Service - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • Labview 5.1 Executable crashes when I try to run it a second time

    I created an executable from some labview 5.1 code I wrote. The code works fine when I run it under labview, but when I created an executable, the code crashes. I can run the code once and it will work fine, but when I try to run it again it crashes.
    The coded basic function is to record data displayed on a network analyzer screen. I have the analyzer go into remote mode for data collection and back to local after data collection so changes can be made to the display. When I try running it again after changes were made, the executable crashes.
    Has anyone experience this problem?

    I have run into this problem a couple of times for different (but similar) reasons.
    One was that I used the VISA open and talked to the instrument, but did not CLOSE the VISA session. When trying to OPEN again (second time program is run), the program would crash.
    I had the same problem with opening references once. It is supposed to close all references when the program ends, but I always close my sessions before exiting.
    Look for OPEN without CLOSE in the program.
    Hope this helps.
    Rob

  • In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

    In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

    In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

  • How to get rid of J2EE Login screen for each time Client App run?

    hi there,
    How to get riud of J2EE login screen for each time client application r un?
    regards,
    elvis

    in the j2ee tutorial they say that you should run like this:
    runclient -client <appjar> -name <name> -Dj2eelogin.name=guest -Dj2eelogin.password=guest123
    the only thing is that it did not work for me...let me know if it works for you.
    chukii

  • My local apple store is in Belfast, Northern Ireland. Do you reckon if I trade in my iPod touch 4g black (less than I year old) I will get a new white iPod touch for free??

    My local apple store is in Belfast, Northern Ireland. Do you reckon if I trade in my iPod touch 4g black (less than I year old) I will get a new white iPod touch for free??
    Please Post !!!!!!!!

    No, Apple does not offer that kind of exchange.
    If you had a valid problem covered under the Warranty or AppleCare, they would swap it out for an identical item (including same color).

  • How we will get parameters when we uses EMBED tags

    hi ,
    how we will get parameter from applet in netscape. When my swing applet using OBJECT tag, runs in IE it works fine.
    And im able to getting parameter. But in the case of Netscape (that means when i used EMBED tag) im not able to getting the parameter.
    How we will give <param tag in the case of EMBED tag. Im sending my snippet which is for only netscape.
    <EMBED type="application/x-java-applet;version=1.2.2"
    width="800" height="1200" code="myclass.class" codebase='mycodebase'
    pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">
    <NOEMBED>
    </COMMENT>
    No JDK 1.2 support for APPLET--please download the plugin.
    </NOEMBED>
    <param name='parameter' value='value'>
    </EMBED>
    If anybody helps, very much thankful to them
    thanks in advance

    Parameters should be inside the EMBED tag, like this :
    <EMBED type="application/x-java-applet;jpi-version=1.3.1" CODE = "Editor.class" WIDTH = 350 HEIGHT = 200 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html"
    TOOLBAR="true"
    TOOLBAR.FLOAT="true"
    TOOLBAR.ALIGN="east"
    >
    Matthieu

  • SCCM 2012 -OS images not transfering to DP ERROR Detail will be available when server finishes processing the message

    I am having issue with some application, packages, and images pushing from my Primary SCCM server to the secondary servers and DPs.
    I am thinking that the issues are all related so I am going to just talk about the image that I am having a problem with push.
    The image has successfully transfered to the Primary site, and secondary sites, but it is having a problem with a DP. The error that shows up in "Content Status" says "Detail will be available when server finishes processing the
    messages". All the servers are 2008 R2 server, with SCCM 2012 SP1.
    I would take a look at logs for this, but I am pretty new to SCCM, and I'm not sure which log to look at for additional information.
    Thank you for any help that can be provided.

    The logs pointed me to an error about the Pull DP settings. I think the issue is that I have the images stored on the Primary site, and the DP does not have the Primary site in its Pull DP settings tab. I unchecked the option, and it appears to be working
    now. Thank you

  • HT2237 what is Error code -8076 get it when changing read/write permissions on an iTunes music folder. I did google it but could not find

    get it when changing read/write permissions on an iTunes music folder. I did google it but could not find anything???

    get it when changing read/write permissions on an iTunes music folder. I did google it but could not find anything???

  • When I connect my iPhone 5 (iOS 7.0.4) to iTunes it gets stuck when syncing on "waiting for items to copy"

    My iPhone 5 running iOS 7.0.4 gets stuck on "waiting for items to copy" when syncing to my iTunes (version 11.1.4). I've tried;
    quiting and restarting iTunes,
    updating iTunes,
    restarting my computer,
    restarting my iPhone,
    turning off iCloud on my iPhone,
    restoring my iPhone from a previous back-up,
    disabling "automatically sync when this iPhone is connected" and
    just leaving it alone for three hours to see if it would finish syncing
    But none of these things have worked... I'm not sure what else to try. My iPhone suffered an error about three days ago when trying to update to the new iOS update and went into recovery mode. I had to restore from an old back-up and that is when my troubles began. However, I was previously (before the crash) having an issue where whenever I connected my iphone to my computer it would delete all my playlists. I'm not sure if any of that is relevant.

    My iPhone 5 running iOS 7.0.4 gets stuck on "waiting for items to copy" when syncing to my iTunes (version 11.1.4). I've tried;
    quiting and restarting iTunes,
    updating iTunes,
    restarting my computer,
    restarting my iPhone,
    turning off iCloud on my iPhone,
    restoring my iPhone from a previous back-up,
    disabling "automatically sync when this iPhone is connected" and
    just leaving it alone for three hours to see if it would finish syncing
    But none of these things have worked... I'm not sure what else to try. My iPhone suffered an error about three days ago when trying to update to the new iOS update and went into recovery mode. I had to restore from an old back-up and that is when my troubles began. However, I was previously (before the crash) having an issue where whenever I connected my iphone to my computer it would delete all my playlists. I'm not sure if any of that is relevant.

Maybe you are looking for

  • ITunes on Windows will not update any iOS-device

    I have three iOS-devices. An iPod Touch 3rd gen (ver 3.1.3), and iPhone 3GS (4.2.1) and iPad. It's been a really long time that I remember that iTunes offered to update any of them. iTunes itself has been regularly updating and is now 10.5.1.42. The

  • Universavle Audio/Caption Control for muliple movies

    Hello! We're working on an e-learning project. There are twenty individual movies (why! it would be too large to place into one movie ), each with it's own audio and caption script. Here's the challange... We need a way were as the user turns off the

  • Webcenter Discussion

    Hi All, We have a requirement where in we need to create a webcenter discussion, I'm referring to "Developer's Guide for Oracle WebCenter 11g Release", I want to create a new category through the "Oracle WebCenter Discussions administrator interface"

  • HT201365 please help me restore Ipad without losing data, it is disabled now?\

    i recently updated to io7s ,,,,, entered my passcode too many times incorrectly an ipad disabled me ..... how do I restore without losing any or all of my data?

  • Delete time capsule backup

    hi, i am using maverics OSX. i have two machines backed up on a 2T time capsule. i need to delete one of the backup disk images to make space available for a newer macbook pro. i have tried moving the unneeded disk to trash but that doesnt work. ther