Nivbai activex call to labview missing step result's?

I'm traying to call NIVBAI script in labview using activex calls to get step measurment information. For some steps 
I'm geting good valuses, but for some steps in vision builder script wher I'm using calculator or global variable, the values of steps are 0.
can someone advise me how to correct that problem? attached picture explains my problem. sorry for may englisch.
Thank's in advance! 
Attachments:
problem.PNG ‏39 KB

Hi antz24,
Which version of LabVIEW are you using?  This example was developed and verified for Visual c++ 6.0 and LabVIEW 7.1.  If you are using a different version of LabVIEW, it is likely that the ActiveX methods have changed.  Below are the ActiveX methods for LabVIEW 2012:
http://zone.ni.com/reference/en-XX/help/371361J-01/axprop/vi_class_method/
Here is some documentation on calling LabVIEW VIs using different programming languages.
http://www.ni.com/white-paper/5719/en#toc1
Also, what exactly is it that you are trying to do?  In most cases, your application would probably be best served if it interfaced with your LabVIEW VI as a DLL.
Andrew T.
National Instruments

Similar Messages

  • Missing "Step Result Property" when configure multiple numeric limit database statement

    In the NI article "Creating a TestStand Database Schema from Scratch" (http://www.ni.com/white-paper/6484/en/), it mentioned option "Apply To: Step Result Property" for statement "MEAS_NUMERIC_LIMIT". But I could not find "Step Result Property" in TestStand 4.2.1 as shown below:
    Is there a workaround for this issue?
    Thanks

    Step Result is for operating on the step result itself if the required criteria is met, so this can occurs only once per step result. Property Result is evaluated on all subproperties of the step result and is processed if the required criteria is met, so this could occur more than once per step result.
    Scott Richardson
    National Instruments

  • ActiveX Calls in LabVIEW Generate Error -214696088​8 With Microsoft Excel

    This happend under WinXP or Win2000 and Labview 6.1 or Labview 7.
    I think it is related with the update of the operating system.

    I recommend running your VI in highlight execution mode and seeing what property node/method/reference issues the error. Whatever it is, replace the object with a new one--not a copy but from scratch.
    BTW the error code is from Excel.

  • Problems calling LabVIEW VI through ActiveX inside another LabVIEW VI

    Hi everybody,
    basically I would like to create an ActiveX to be inserted in a LabVIEW VI which at its turn would call another LabVIEW VI.
    I have choosen Visual Basic to create this ActiveX, being the main section code:
    Dim lv As LabVIEW.Application
    Dim vi As LabVIEW.VirtualInstrument
    Dim names(0 To 1) As String, values(0 To 1) As Variant
    'Assign an object reference to VI
    Set lv = New LabVIEW.Application
    'Assign an object reference to VI
    Set vi = lv.GetVIReference(lv.ApplicationDirectory & "\Examples\General\Strings.llb\Parse Arithmetic Expression.vi")
    vi.ShowFPOnCall = False 'Open front panel if requested
    'Initialize the variables & define the strings corresponding to the VI connector labels.
    names(0) = "Arithmetic Expression": values(0) = "1+1"
    names(1) = "Result"
    'Call the VI
    vi.Call names, values
    So, when this ActiveX executes this code sequence it locks when creating the "LabVIEW. Application" object. I have tested this ActiveX from another client application (Internet Explorer) and it works perfectly, so the problem is located in the creation of ActiveX from LabVIEW. Do I need to do anything special in my code or simple it cannot be done what I want to do?
    Thanks !!!
    Jesus Valero
    Plataforma Solar de Almeria.

    Exactly, but really the code of above it's only an example that I want to do. I'm trying something more sophisticated.
    I want to create an ActiveX control that could work as stand alone executation with the ability of directly get some indicator values from its LabVIEW VI container and depending of those values, set the control values of others LABVIEW VIs. I really know that within LabVIEW itself I can get/set those indicators/controls, but with this method I think that the diagram block of the LabVIEW VI container can be more simple.

  • Output on LabVIEW the TestStand step results

    Hi,
    I'm building on LabVIEW 8.5 a simple TestStand User Interface.
    My sequences return some values but I don't know how to output them on LabVIEW.
    I was thinking of a table to store the results.
    Any hints on how I'm able to do so?
    I apreciate all the help.
    Thanks in advance.
    Regards,
    Daniel Coelho
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda

    Use the TesStand ExecutionView Manager available in the TestStand tool pallet of LabVIEW and the Execution View. Then when you call our test code (dll, LabVIEW, CVI or what ever) and the return values are returned to the step.Result container based on the type of step. The ExecutionView Manager will automatically display the return value in the Execution View indicator on front panel, if it is a string, a number or a Boolean or etc.
    Look at "C:\Program Files\National Instruments\TestStand 4.1\UserInterfaces\Simple\LabVIEW" as a starting point.
    Notice that there is not any code that reads the return value from the test steps and displays it. The TestStand Engine automatically does it for you. Using the ExecutionView Manager and the Execution View, your LabVIEW user interface will not know when a test step is run or what the return values are without setting up events to trap UI messages from the TestStand Engine.
    If all you need is to see the return value and results this is the way to go.
    Omar 

  • Getting Step Results into Labview

    Hi,
    I'm having what seems to be an easy problem but one which I cannot figure out quickly.
    I'm trying to do the following. I am trying to do some custom logging to a specific format for my Teststand results. I'd basically like to pass the Results parameters of each step into Labview Code where I will process there. To make it more user friendly I have created a Callback for SequenceFilePostResultListEntry. What I don't exactly know how to do is get the Results from the current step into LabVIEW
    At first I used the SequenceContext.PreviousStep but that did not give me what I needed. Hopefully I'm clear in what I am asking.
    Thanks for the help,
    Patrick

    Hi Patrick,
    Are you having trouble doing this with a LabVIEW Adapter Action Step?  If you are trying to pass specific run-time values to your LabVIEW VI, you will be able to find them by setting breakpoints and looking at the available variables.  
    For example, in your SequenceFilePostResultListEntry callback, if you wanted to use the test's Status result as an input to your LabVIEW Adapter Action Step, you could use the expression RunState.Caller.Step.Result.Status as the value you pass.
    Please let me know whether this answers your question.
    Warm Regards,
    Daniel D.
    National Instruments
    Automated Test Software R&D

  • ActiveX can't create object when VB Script called from Labview

    I have an interesting issue that I can't find a solution for. I am using the DIAdem Run Script.VI in Labview to call a script that opens an Outlook object and sends an email. When the script is called via LabView I get this error:
    However, when I manually run the script from the DIAdem script tab it works as expected with no errors.
    This is the code:
    'Begin email send function
    Dim oOutlookApp
    Dim oOutlookMail
    Dim cnByValue : cnByValue = 1
    Dim cnMailItem : cnMailItem = 0
    ' Get Outlook Application Object
    Set oOutlookApp = CreateObject("Outlook.Application")
    ' Create Mail Item
    Set oOutlookMail = oOutlookApp.CreateItem(cnMailItem)
    ' Set Mail Values
    With oOutlookMail
    .To = "[email protected]"
    .Subject = "Report: " & Data.Root.ActiveChannelGroup.Name & " for " & CurrDate
    .Body = "test automatic report emailing with VB Script."
    ' Add Attachement
    Call .Attachments.Add(strLocFileName, cnByValue, 1 )
    ' Send Mail
    Call .Send()
    End With
     (Original code includes Option Explicit and all variables are properly included/declared, I just took the snippet of what's causing the error).
    I have looked at the following threads for info already:
    http://forums.ni.com/t5/DIAdem/Some-errors-when-calling-LabVIEW-VIs-Interactively-from-DIAdem/td-p/2...
    http://forums.ni.com/t5/DIAdem/Active-X-component-cannot-create-object-Diadem-8-1/m-p/71212/highligh...
    -I tried running the script via Windows explorer (per Brad's suggestion) by itself without the DIAdem specific functions and it runs fine.
    http://forums.ni.com/t5/DIAdem/Error-while-runing-diadem-asynchronous-script-from-labview-on/m-p/111...
    -I am not running the scripts asynchronously
    Using Windows 7 (64bit), DIAdem 11.2 and LabView 7.1.1
    Thank you.

    Hey techerdone -
    I'm afraid I personally can't be of much help - I tested your code both from DIAdem and from LabVIEW and each worked without issues in both cases (Outlook closed, Outlook open).  I'm using DIAdem 2011 SP1, LabVIEW 2011, and Outlook 2007...
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Lost ActiveX connection with LabVIEW server

    I have called LabVIEW in TestStand and tried to execute the test cases .
    While executing I got the following error:  ( Lost ActiveX connection with LabVIEW server.
    The LabVIEW adapter will try to reconnect on the next execution attempt.-18001; An error occurred accessing the LabVIEW ActiveX automation server.).

    Same error.  Is anyone from NI going to bother commenting on this?  It's been >8 months...

  • Excel activex call changes between Office 2000 and Office XP. How does one manage that?

    I have several Active X calls from within a VI. One in particular is
    the Excel Cell Value property node in Office 2000. MS has decided to
    call it Excel Cell Value2 in Office XP.
    I have built and exe on a machine with Office 2000 and can run the code
    on a machine with Office XP, but I can not build on the machine with
    Office XP. I can also run a VI with that call
    on the Office XP box, but if I mass compile the VI I get the broken arrow.
    I guess I am confuesed as to why it can run but not compile. If the
    ActiveX call is not there for the compile why is it there for the run?
    If I can expect this does it work in reverse where I
    build on an Office XP box and run on a Office 2000 box?

    These problems you are experiencing do stem from the ActiveX changes between Excel versions.  When you mass compile LabVIEW checks to see if everything is linked correctly, including ActiveX portions of your code.  Since there are slight changes the LabVIEW compiler detects something is wrong, but cannot isolate the problem.  You might need to force a recompile of that VI.  Check out this link.
    http://digital.ni.com/public.nsf/websearch/50D06DEE8B9DC018862565A0006742F2?OpenDocument
    Hope this helps!
    Andy F.
    National Instruments

  • How can i write to the Step.Result.ReportText of a Sequence callback?

    i need to write to the Step.Result.ReportText and step.Result.Status of a sequence callback using a statement but it jus won't work...how can i do this?....

    I am not sure what you are asking but will give it a shot.
    Only a step has Step.Result.ReportText and Step.Result.Status properties. Therefore you cannot set these properties for a sequence callback. For certain callbacks that are called by a sequence call step, you can set Step.Result.ReportText and Step.Result.Status of the Sequence Call step that called the callback. To do this you can set Runstate.Caller.Step.Result.ReportText and Runstate.Caller.Step.Result.Status within the callback.
    If this does not help you then you must provide information as to which callback you are using and for what step you want to set the Step.Result.ReportText and Step.Result.Status properties

  • How to implement an ActiveX server in LabVIEW

    My task is to implement an ActiveX server in LabVIEW 8.0 that will be called from a data management software (DXE).
    The LV server will take care of data acquisition and control.
    I have been looking for tutorials and example code at the NI developer zone and elsewhere without any progress. Information is either to general or code is to old (LV 5.1) to give any help.
    Please, show me to a good example of an ActiveX server in LV 8 properly commented or with attached explanations.
    Alternatively, suggest any tutorial, short course or books with practical instructions.
    Specific information is most welcome.
    I suppose that it is possible to write a ActiveX client in LabVIEW to verify the functions of the ActiveX server ?

    rolfk wrote:
    skalis wrote:
    Thank You. Good to know that I am on the right track.
    However,
    Your sentence "If You look at the several shipping examples..." make me
    little concerned. I am not able to find any example of a LV ActiveX
    server in my LV 8.0 installation. I would be very grateful of You can
    send me any.
    Basically you can not create your own
    Active X server with your own object hierarchy and methods in LabVIEW.
    LabVIEW however can export a predefined Active X server interface that
    is just another access method to its internal VI server interface.
    With this interface you can determine what VIs are available to
    control, load specific VIs from disk if you know their path and,
    execute those VIs and passing parameters to it and receiving outputs.
    So if your software allows you to script the Active X access to an
    Active X server in some ways such as VBA or similar you should be fine.
    If your software expects a specific Active X interface you have to
    implement in the server application, you are out of luck with LabVIEW,
    without using an external component such as an extra Active X server
    DLL that translates between the expected interface and the exported
    LabIVEW interface. But this last method is quite likely not worth the
    hassle.
    Rolf Kalbermatter
    While I did follow the link mentioned above and found the Interop.LabVIEW.dll that is included in the C# project for the purpose of calling VIs from C#, I am frustrated that these methods are 'buried' in a .dll that you have to go and find on the NI web site, and are not ActiveX methods that are available in an ActiveX Object that is installed when you install LV 8.20 PDS. 
    Rolf, I don't know that you will get this email, but are you refering to the methods inside of the Interop.LabVIEW.dll in what you are saying above, and if so, how did you become aware of this .dll? 
    Is anyone aware of any documentation for these ActiveX methods?
    Thanks,
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI

  • Calling Quit LabVIEW function in a callback VI is not working

    calling Quit LabVIEW function inside a Callback VI (of an activeX component) is not closing the current instance of LabVIEW.
    does anyone else have this issue?
    RENN
    LV2012SP1 64bit
    Kudos always welcome for helpful posts

    Sounds similar to this - https://decibel.ni.com/content/message/48506#48506
    The bug is that the Quit LV function does not work when called from a VI launched through Asynchronous Call By Reference
    AQ said that that bug was resolved in the 2013 beta, so you could try joining the beta to see if that solution also works for your case.
    Try to take over the world!

  • How can i use activeX Control in labview?

    how can i use activeX Control in labview?
    please describe me step by step.
    thanks.

    Well..that was quite helpful..but now I'm encountering certain problems. I've attached the VI I've made.
    I don't need sound at the moment so I dropped it. (Although I tried to play it..but all I could hear was a very annoying sound.) Secondly I don't want to display any date or time..so i dropped that property too.
    Now when I run this Vi...the webcam turns on, the screen of videocapx pops up..then the webcam light goes off..and another pop up appears saying..labview is not responding..and i have to close it reluctantly.
    I haven't placed the stop capture property in this vi. i checked it by placing it too..but that doesn't work.
    I would like to notify that my actual task is to acquire image and then compare it with another one already present on my pc. I want you to please help me out..solve my first query then I'll proceed with the latter part.
    Attachments:
    activexvideocaps.vi ‏20 KB

  • Step results not appearing in report

    Hello. New to TestStand. I've creted a String Value Test that compares the UUT Serial number using RunState.Root.Locals.UUT.SerialNumber. However, when the report is generated I see no step results. This is only happening with this sequence and not with any of the tutorials. Can anybody point me in the right direction for this. Thanks.
    Solved!
    Go to Solution.

    Here is the sequence file and the LabView vi I'm using.
    Attachments:
    Serial Content.seq ‏7 KB
    String Value Test.vi ‏14 KB

  • TestStand 3.5 is not reporting step results for under three steps

    Is there a minimum number of steps that need to return results from a called sequence in order for them to be reported?
    Here a description of my problem:
        My main test code calls a sequence file that contains a varying number of test steps in the Main section of the sequence file.  There are also some Setup and Cleanup steps that do not return results to the main test code.  When my number of test steps is at least three, everything works fine and all test step's results appear in the report.  When my number of test steps is less than three, no results are shown in the report.  In addition, if I record results of a miscellaneous step in the Cleanup section and have two test steps in the Main section (so a total of three steps returning results to the main test code) then the results appear in the report.
        I verified that this was not particular to my piece of code by creating two new sequence files: one with three steps (Test 1, Test 2, Test 3), and one that calls the first.  When at least three steps are present, the results of each step are recorded, but when I erase Test 3, nothing is reported.
    Any help would be appreciated!

    Hi,
    Please find attached an updated report sequence file.
    The problem was because you had skipped the Sequence Name steps. This adds two extra lines to the report. Therefore in the precondition of 'Remove Empty Sequence Results' step, the expression was still deducting these two lines, which longer exist in the report. Hence the reason why you were lossing the step results in the Sequence.
    I have removed the -2 from the expression.
    Hope this explains everything for you.
    Regards
    Ray
    Regards
    Ray Farmer
    Attachments:
    reportgen_txt.seq ‏159 KB

Maybe you are looking for

  • My Ipod touch 4th generation won't let me drag the songs from my Itunes to the Ipod itself or how do you sync checkmarked songs?

    I'm confused, my ipod touch 4th generation won't let me drag my songs from my itunes library to the ipod? So i tried checkmarking the songs I want and I don't know how to sync those? Also, I try to sync apps to my ipod and it says my computer doesn't

  • IDoc - Wrongly Picking value for outbound.

    Guru's Once save the sales order, a out bound idoc will trigger and goto a non sap system.. till date its picking right values but now its not picking one number(that is year) <b>Voyage number</b> starts with year example 2007 is equal to 7 and other

  • How to close appstore and camera ?

    app store and camera always running when i use system monitor even i close from the background ? how to close them from processes and what is the processes that usually work in system monitor ?? it was mail also running but after i delete the iclould

  • MSMP Workflow - Add new settings for Maintain Stages

    Hello all,       I have a question: It is possible to add a new folder under "maintain stages"( "Eg. Settings for OVM Approval).  See attached.        If yes, how? Thank you, Ovidiu

  • Real Noob question

    Right I know there must be a help file somewhere but it isn't apparent so I'm asking on here. I am installing java on to my laptop so I can do course work, I have downloaded and installed it but I know I should do something to the enviorment variable