Execute a VBAI code with Labview

Hello
I work with a CVS, and for that I create a VBAI code that I need to use with Labview, I already use the tool "migrate inspection to labview" and tryed this VI. I added the "inspect main" VI on my cvs target, but I did'nt do what I put on the VBAI code.
How can I do to execute exactly the VBAI steps in Labview.
Thank you for your help
Attachments:
Inspect Main.vi ‏103 KB

Here's a sample LV 2013 project with a CVS target and the build specs to get a startup app.
1. Right clikc on the CVS and select Properties. Change the IP Address to match your target's.
2. Right click on the "My Real-Time Application" under Build Specification for your target and select Build
3. Once the Build is done, right click again and select Deploy. This should automatically create a Configuration Files folder on the target with the correct files.
4. Right click again and select "Run as Startup" and this will ask you to reboot. Now the VI will start running when the target reboots.
If you need to debug, you can stop the startup app on the CVS by right clicking on the target and connecting. Then just open the Inspect Main.vi from the project when it's under your CVS target) and run it. The Configuration Files should already be downloaded to the target after following the above steps.
Hope this helps,
Brad
Attachments:
Sample Project.lvproj ‏36 KB

Similar Messages

  • Error while executing BBP_UPDATE_PORG Tr Code with ADD Option

    Hi All,
    I changed the Back end Vendor Master Data - Purchasing View (Example Accounting Number) and run the BBPUPDVD Tr code in SRM. The Business Partner (Vendor) data is updated correctly in SRM System from Back End System.
    We have set of purchasing organisations like one local (SRM) Purchasing Organisation and respective Back end Purchasing Organisation (account number). When ever I run BBPUPDVD, the SRM system updates the backend vendor master data  with back end purchasing organisation into SRM Standard tables. Then I am running BBP_UPDATE_PORG Tr code to have updated data into SRM Local Purchasing Organisation. I am receiving error message.
    Example Scenario:
    step 1: Present values in Vendor Master Vendor Number 100250, Purchaing Organisation : 1010 A/c Number: 100250-1010
    and I changed the account number as 10025o-test for vendor 100250 and pur organisation 1010.
    step 2: I run the BBPUPDVD in SRM System.
    Step 3: I checked the values in BBPMAININT - vendor data (for backend vendor number 100250 and backend pur organisation - 1010). The SRM system replicates the values correct.
    Step 4: I executed BBP_UPDATE_PORG and replaced the local (SRM) business partner (for local vendor number - 100250 and local purchasing organisation) - REPLACE Option. Then SRM replaces the SRM Business Partner (local) Data with Back end Vendor Master Data and also Back End vendor master data is deleted in SRM System. Now I have updated business partner details in SRM System as SRM Local an no SRM Back End Vendor Master Data in SRM System. This step is working fine.
    Step 5: One more time I am executing BBP_UPDATE_PORG Tr code with Add option to have SRM Back End Details (in SRM System) from SRM Local Details (SRM System). Then the system is error message in SM13 Tr code.
    Kind Note: There is no SRM Back End Vendor details in SRM System which I want to have with the help of executing BBP_UPDATE_PORG Tr code with Add option.
    For analysis I went to ST22 (dump Analysis), the SRM gave an error message like:
    Runtime Error          DYNPRO_SEND_IN_BACKGROUND
    Date and Time          09/15/2008 10:56:58
    ShrtText
         Screen output without connection to user.
    What happened?
         Error in ABAP application program.
         The current ABAP program "SAPLBBP_PARTNER_MAINT" had to be terminated because
          one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
    Information on where terminated
        The termination occurred in the ABAP program "SAPLBBP_PARTNER_MAINT" in      "BBP_PORG_INSERT".
        The main program was "RSM13000 ".
        The termination occurred in line 59 of the source code of the (Include)      program "LBBP_PARTNER_MAINTU11"
        of the source code of program "LBBP_PARTNER_MAINTU11" (when calling the editor      590).
        The program "SAPLBBP_PARTNER_MAINT" was started in the update system.
       56
       57 * update database
       58   IF NOT LT_FRG0060_NEW[] IS INITIAL.
    >>>>>     INSERT BBPM_BUT_FRG0060 FROM TABLE LT_FRG0060_NEW.
       60   ENDIF.
       61
       62   IF NOT LT_FRG0061_NEW[] IS INITIAL.
       63     INSERT BBPM_BUT_FRG0061 FROM TABLE LT_FRG0061_NEW.
       64   ENDIF.
    Kindly guide me or provide solution.
    We are in SRM 4.0 and ECC 5.0.
    Thanks a lot in advance.
    Regards,
    Sudarsan
    Edited by: KOYYA SUDARSANA NAIDU on Sep 15, 2008 9:09 PM
    Edited by: KOYYA SUDARSANA NAIDU on Sep 17, 2008 8:46 PM

    Hi All,
    I changed the Back end Vendor Master Data - Purchasing View (Example Accounting Number) and run the BBPUPDVD Tr code in SRM. The Business Partner (Vendor) data is updated correctly in SRM System from Back End System.
    We have set of purchasing organisations like one local (SRM) Purchasing Organisation and respective Back end Purchasing Organisation (account number). When ever I run BBPUPDVD, the SRM system updates the backend vendor master data  with back end purchasing organisation into SRM Standard tables. Then I am running BBP_UPDATE_PORG Tr code to have updated data into SRM Local Purchasing Organisation. I am receiving error message.
    Example Scenario:
    step 1: Present values in Vendor Master Vendor Number 100250, Purchaing Organisation : 1010 A/c Number: 100250-1010
    and I changed the account number as 10025o-test for vendor 100250 and pur organisation 1010.
    step 2: I run the BBPUPDVD in SRM System.
    Step 3: I checked the values in BBPMAININT - vendor data (for backend vendor number 100250 and backend pur organisation - 1010). The SRM system replicates the values correct.
    Step 4: I executed BBP_UPDATE_PORG and replaced the local (SRM) business partner (for local vendor number - 100250 and local purchasing organisation) - REPLACE Option. Then SRM replaces the SRM Business Partner (local) Data with Back end Vendor Master Data and also Back End vendor master data is deleted in SRM System. Now I have updated business partner details in SRM System as SRM Local an no SRM Back End Vendor Master Data in SRM System. This step is working fine.
    Step 5: One more time I am executing BBP_UPDATE_PORG Tr code with Add option to have SRM Back End Details (in SRM System) from SRM Local Details (SRM System). Then the system is error message in SM13 Tr code.
    Kind Note: There is no SRM Back End Vendor details in SRM System which I want to have with the help of executing BBP_UPDATE_PORG Tr code with Add option.
    For analysis I went to ST22 (dump Analysis), the SRM gave an error message like:
    Runtime Error          DYNPRO_SEND_IN_BACKGROUND
    Date and Time          09/15/2008 10:56:58
    ShrtText
         Screen output without connection to user.
    What happened?
         Error in ABAP application program.
         The current ABAP program "SAPLBBP_PARTNER_MAINT" had to be terminated because
          one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
    Information on where terminated
        The termination occurred in the ABAP program "SAPLBBP_PARTNER_MAINT" in      "BBP_PORG_INSERT".
        The main program was "RSM13000 ".
        The termination occurred in line 59 of the source code of the (Include)      program "LBBP_PARTNER_MAINTU11"
        of the source code of program "LBBP_PARTNER_MAINTU11" (when calling the editor      590).
        The program "SAPLBBP_PARTNER_MAINT" was started in the update system.
       56
       57 * update database
       58   IF NOT LT_FRG0060_NEW[] IS INITIAL.
    >>>>>     INSERT BBPM_BUT_FRG0060 FROM TABLE LT_FRG0060_NEW.
       60   ENDIF.
       61
       62   IF NOT LT_FRG0061_NEW[] IS INITIAL.
       63     INSERT BBPM_BUT_FRG0061 FROM TABLE LT_FRG0061_NEW.
       64   ENDIF.
    Kindly guide me or provide solution.
    We are in SRM 4.0 and ECC 5.0.
    Thanks a lot in advance.
    Regards,
    Sudarsan
    Edited by: KOYYA SUDARSANA NAIDU on Sep 15, 2008 9:09 PM
    Edited by: KOYYA SUDARSANA NAIDU on Sep 17, 2008 8:46 PM

  • Cannot execute a library created with Labview 2011 in visual C++

    I created a very simple DLL in Labview 2011, then, I try to call this DLL from a Visual C++ 2005 application.
    I have tried to load the DLL at compilation time with the .LIB and .H files, and also dynamically with AfxLoadLibrary.
    When I try to call the library function, it works fine, but the second time i call the library freezes the app.
    all the library does is to show a simple dialog box and that's it, no params, no returns, no nothing,
    but it freezes the app, why the VI works in Labview, but in DLL doesn't?

    Hi Alveru,
    What might be happening is that the process never ends and when you try to re call it, it fails and that it is why your app freezes, what you can do to probe is that is what is happening is to test your DLL directlly in LabVIEW with the Call Library Function Node so you can import the DLL and test it. If it also freezes or not work as expected the problem is with the DLL.
    The proceses are automatically closed by LabVIEW at the moment the VI stops running; however, when you deploy the vi, you need to close them manually.
    Try this out!!
    Regards,
    Luis Fernando
    National Instruments Cono Sur
    Ingeniería de Campo y Consultoría
    http://chile.ni.com/

  • Verilog code in ISE 14.2 can be integrated with LABVIEW 2013?

    i just want to ask if it is possible to integrate the verilog code with the VI in labview? will it work properly?

    Yes it is possible to integrate Verilog code with LabVIEW 2013. The following KnowledgeBase article is currently being updated to reference LabVIEW 2013:
    http://digital.ni.com/public.nsf/allkb/7269557B205B1E1A86257640000910D3?OpenDocument
    I have used ISE 14.4 with LabVIEW 2013 without any issues. Hope this helps!
    Daniel K | NI Applications Engineer | Certified LabVIEW Developer

  • Can i run visual c++ code under labview?

    I have two instruments, one is controlled by labview and the other one is controlled by visual c++ code. is there any ways so i can run the c++ code in the labview environment. in other words, can i control the instrument which is only controllable by c++ code, with labview? does labview recognize .cpp files or .exe which is the compiled form of my c++ file ?
    thanks

    Check http://www.ni.com/devzone/idnet/library/instrument_driver_guidelines.htm. Another quick and dirty way to add instrument control is to use the Instrument I/O Assistant. This is not nearly as flexible as a full driver but might be enough for you. Before attempting either, you should get familiar with the instrument's remote control commands by using the interactive control feature in MAX (right click on instrument and select "Communicate with Instrument").

  • Can i genarate a VHDL skript with Labview?

    Hi,
    is it possible to genarate an VHDL skrit or .dat like
    name.vhd
    with Labview?
    mabye that i can write the code with Labview and save it as .vhd
    on this way it is very easy to use Labview as VHDL-software. is it possible to do this?
    thx

    I think it is not possible at this time.
    At my opinion NI is forced for releasing a tool that can do this in the future because there is software from the mathworks who can do this; 'Generating VHDL code for target independent hardware'.
    Magic Google words:
    http://www.google.be/search?hl=nl&q=%27Generating+​VHDL+code+for+target+independent+hardware&meta=

  • Printing labels (barcode, datamatrix code, ...) with LabView via Codesoft

    Hello together,
    could anyone post a sample vi which enables printing labels (barcodes, datamatrix code, ...) with LabView
    via the Teklynx Codesoft Runtime Software? There are no sample programs from Teklynx for LabView.
    Many Thanks for your help, Thomas.
    Message Edited by maximint on 01-04-2007 10:04 AM

    maximint wrote:
    Hi JLS,
    thanks for the answer. I agree with you that closing the references is the best und most stable solution. But it is really slow. I made an exe but this is also slow.
    But apart from this, the VI is running well, even with a handing over of variables. I guess this is one of the first VIs in the net which combines LV with
    Codesoft from Teklynx.
    Thanks, Thomas.
    PS: I made a wrong click on the rating of your last post. Sorry. I guess I rated it too bad.
    Well, this is easily solved with an intelligent global buffer VI or as they are also often called a LabVIEw 2 style global. I use them quite often for all kinds of reasons including to avoid globals in my programs almost 100% but this is one of the cases where they are also very handy.
    Basically you write a VI that has a while loop, and a case structure inside. The while loop normally only executes once. One or more uninitialized shift registers store different values that can be reused on each call to that VI. The case selector is wired to an enum (I make them always strict typedefed) on the front panel and that one is connected to the connector pane of the VI.
    Make the enum have init, print, close items and in the respective case frame do the opening of the refnum in the init case and anything else you need to do once at initialization time storing the refnum to the right shift register terminal. In the close case do everything to close done the software and then close the refnum coming from the right shift register terminal itself passing a Not A Refnum to the right shift register terminal. The print case uses the refnum from the right shift register terminal too, does all that is necessary to do printing and then stores the refnum back to the right shift register terminal. You now have an intelligent manager function for your interface to the printing software.
    The init case is called somewhere during initialization of your application while the close case is called somwehre when you close your application. A variant is to combine the init and print case but forst test for the refnum to be Not A Refnum (comparison palette) and in that case do the initialization first, otherwise just do the printing. The advantage with this is that the Codesoft interface is only initialized if you really need it.
    There is one caveat for this if you use dynamic top level VIs to implement for instance test steps or deamon like operation. LabVIEW remembers the top level VI under whom a refnum was opened and automatically closes refnums when that top level VI goes idle (stops running). So you would need to make sure that the initialization is done in the main hierarchy that is guaranteed to run for the entire time that your interface is required.
    I have included a small archive containing an API for Codesoft 7 that also supports variable query and substitution in templates. It is an older version of something I'm currently using and not very well tested as is, but the newer version is a lot more involved and complicated and not suited to be put here. I also included another archive showing a version of such an intelligent manager buffer function using that API.
    Rolf Kalbermatter

  • Does a stand-alone EXE built with Labview 8.2 return a return code?

    My application is an executable that was built from a VI in Labview 8.2. I'm expecting a return code of this stand-alone executable after the execution, however couldn't find a way to control the return code of the application.
    Does a stand-alone executable built with Labview 8.2 return a return code? If yes, how is this code controllable?

    Hi Tdot!
    Thank you for contacting National Instruments.  It looks like your question is something that many others have run into.  This topic is discussed here, and looks to be answered along with a couple of suggestions.  I hope this helps!  Let me know if there is anything else I can clarify.  Have a great day!
    Jason W.
    National Instruments
    Applications Engineer

  • Execute an applescript with labview 7.1

    Is it possible to execute an applescript with labview? In my opinion an applescript isn´t a appleevent or? So i can´t execute the script. Is there a possibility to communicate with programms on the macintosh? I want to start a applescript with labview and want to read the information from the .txt file which the script writes also with labview. The reading from the .txt file is no problem but to start the script....I found a file which can do scripts. but something is strange with the file. It would be nice if someone could have a look to file and correct it or maybe have good tips for me.
    Thanks a lot
    volgi1
    Attachments:
    DoScript2001.vi ‏20 KB

    Your VI is missing the CIN resource file. The error message says:
    "This Code Interface Node has no code to execute. Right-click the node, select Load Code Resource from the shortcut menu, and select the object code file (.lsb)."
    In LV7.1 there is an Apple event vi called AESend Do Script.vi at Functions >> Communications >> Apple Events. It sends a script to a scriptable application. I have not used Apple events much so I really cannot help you beyond this point.
    Lynn

  • How to use a namespace in a C++ code communicated with labview

    I have a long code written in c++.  Now I want to acquire data with labview, send some data points as an entry to my c++ code and it will return a value to Labview.  I tried with a simple sum of two elements and it worked, but in my long code I have so use some namespaces and subfunctions.  If I try to compile it does not accept a namespace such as std.
    Can anybody help me?

    I'm not certain the difference (and there isn't an attachment). However, if the functions you are exposing from your DLL are not marked as extern "C", then you'll have a lot of difficulty calling it from LabVIEW. You don't want to deal with the C++ name mangling, so keep the API simple and straight C. Behind the function signature, however, you can use whatever you want.
    If you are already doing this, can you answer the following
    1. What, exactly, is going wrong?
    2. What version of LV?
    3. What version and platform is the C++ compiler?
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Would a LabVIEW 8.5 Executable play nice with LabVIEW 7.1 Developmen​t on the Same System?

    Our testing computer right now just has the user run the corresponding .vi file since we have LabVIEW 7.1 installed on the computer.
    If I use 8.5 to compile this .vi to an executable, I realize that I must install the run-time support for 8.5.  My question is what effect will installing the 8.5 run-time have on the ability to continue to run the other 7.1 VIs with LabVIEW 7.1. 
    Should I be concerned with losing MAX settings when installing the run-time support for 8.5? I want to be able to run 8.5 executables but also able to open up a 7.1 .vi file in LabVIEW 7.1 and run it that way also.
    Thanks for your help! I have 8.5 on my system and the idea is to slowly replace the running of the .vi files with .exe files, I was just curious in case my .exe doesn't work I can still run the tests with .vi in the mean time.
    Thanks for your help folks!

    Just note one thing - installing the 8.5 RTE should have no effect on 7.1, but if your executable requires drivers (e.g. DAQmx) and you install a version which no longer supports 7.1, you will lose the ability to work with that driver in 7.1. I don't think NI has any drivers yet which are not supported in 7.1, but I believe there are some which are no longer supported in 7.0.
    Try to take over the world!

  • I Seek code for programming lego minstorm with labview

    Hi,
    I'am building a car with lego mindstorm for a project and i seek code for programming my car with labview. If you already use labview for programming lego mindstorm, can you send exemples codes for see how the car do for move or turn. please.
    Thanks 

    duplicate post
    duplicate post
    Please try to keep your question to one thread. Otherwise people don't know where to respond. 

  • Problem when building an executable with labview 6.1

    I use LabView 6.1 and I want to build up an executable. I use the labview application builder to do this. I have already built up executables and I had no problems but this time I just obtain a labview vi library which is called "internal.llb" each time I try to compile my vi's. Do you have an idea to solve my problem please ?

    Make sure that you have "Single target file containing all VIs" selected
    under Build Option in the Target Tab of the App builder. Sounds like you
    have "Small target file with external file for subVIs" selected with the
    target being a llb.
    -Tom
    "gege" wrote in message
    news:[email protected]..
    > I use LabView 6.1 and I want to build up an executable. I use the
    > labview application builder to do this. I have already built up
    > executables and I had no problems but this time I just obtain a
    > labview vi library which is called "internal.llb" each time I try to
    > compile my vi's. Do you have an idea to solve my problem please ?

  • Remote front panel with labview 8.6 executable

    I am trying to create a remote front panel of my application, built in an executable using Labview 8.6. I want to run that application on a target machine (not the one used for developing the project) and view and control the front panel of the VI from a web browser on another computer.
    I have followed these steps: 
    How can I use remote front panels with Labview Executables?
    But when I finally open the web browser and navigate to the URL I obtain that the page cannot be found.
    I have my Labview project created and I have built a web page using Web publishing tool. I have saved it in my Labview 8.6/www directory and added it to the project. I have built my executable including HTML file and copied all the obtained folders to the target PC.
    Then, I have modified the .ini file like in the step 7, but when I arrive to the step 8 I don't know what to do. Which  niwebserver.conf should I modify? The one localized at Labview 8.6 directory of the target machine? Or the one that is created in the directory where I have copied the executable when I run the executable?
    In the DocumentRoot tag  I have to replace the default Labview/www with the location of my HTML file. Should I use quotation marks or no?
    Have you got any ideas of what is happening?
    Thanks!

    Ok, but when I create the executable, in the folder where the application.exe and .ini are there isn't a file called niwebserver.conf. When I run the application a file with this name appear in the directory (the one I include), but it hasn't the section Directives that apply to the default server as in the manual.
    What I have done is to copy the niwebserver.conf file ubicated in the Labview 8.6 of the target machine in the same directory of the executable but it doesn´t work...
    niwebserver.conf
    ServerRoot "."
    ErrorLog "./logs/error.log"
    LogLevel 3
    ServerName default
    DocumentRoot "./../../www"
    Listen 80
    ThreadLimit 10
    TypesConfig mime.types
    DirectoryIndex index.html
    LoadModulePath "./modules" "./LVModules" "./.."
    LoadModule LVAuth lvauthmodule
    LoadModule LVSnapshot lvsnapshotmodule
    LoadModule LVRFP lvrfpmodule
    LoadModule LvExec ws_runtime
    LoadModule dir libdirModule
    LoadModule copy libcopyModule
    AddHandler LVAuthHandler
    AddHandler LVSnapshotHandler .snap
    AddHandler LVRFPHandler
    AddHandler LvExec
    AddHandler dirHandler
    AddHandler copyHandler
    CustomLog "./logs/access.log" "%h %l %u %t \"%r\" %>s %b"
    KeepAlive on
    KeepAliveTimeout 60
    Timeout 60

  • I am looking to replace the hypertermi​nal with labview code

    I am trying to replace the hyperterminal with labview code. I am getting visa read error. Please provide me the sample code or let me know where I can find the sample code?
    Thanks
    Jey
    Attachments:
    SERIAL_READ.vi ‏50 KB

    Jey,
    here is my hyperterm replacement, I use it for first serial tests on new devices.
    It's maybe more than you need and not even documented.
    It's in LabVIEW 7.1 now (was 6.1), and this new serial assistant looks even more powerful than this, however I haven't used the assistant (started with LV3.1 ;-)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    Serial tester.llb ‏196 KB

Maybe you are looking for

  • How to define FORMAL parameters for TABLES in OOPS?

    Hello Experts, Below is the custom code, would like to put in a user-exit PERFORM my_routine IN PROGRAM my_report TABLES standard_sap_vbap_tab USING standard_sap_variable CHAGING standard_sap_variable Pls. let me know How to write the FORM in perspec

  • How can i open a midlet in another midlet-suit?

    My question is : i want to creat a midlet A. In this midlet ,i can download another midlet B and install it. The new downloaded midlet B ican be presented in a part of midlet A. In midlet A, i can open midlet B,even control it. Is my idea impossible?

  • FileNotFoundException thrown during deployment of EJB onto OAS

    During the deployment of an EJB onto OAS, I got the following error messages: <snipped> Processing jar... Analyzing Beans... AppTierEJBClass Code generation for E:\\Oracle\\OASHome\\ows\\upload\\242TestOASAppSource.jar has been completed. Compiling g

  • Parsing escape sequences

    Hey, I've been stumped on this for a while; I have an application which reads the contents of a text file to obtain encrypted strings, which use escape sequences in them. I can only decrypt them once these escape sequences have been "parsed," per say

  • I don't receive the verification email when I try to sign in to the developer portal. What I can do?

    When I (or anyone of my coworkers) try to sign in, the developer program asks us to verify my email, when I click on "Send Invitation" I don't receive any email. I receive other emails from apple (for example, the forgot password email), How do I con