activeX event

Hello
I am using a calendar ActiveX http://shareme.com/details/calendar-activex-control-sdk.html

In Help:

"

OnDayClick
  Occurs when you click in the living area.

Sub Calendar1_OnDayClick (ByVal iYear As Integer, ByVal iMonth As Integer, ByVal iDay As Integer, ByVal strText As String)
Parameter
iYear - the year you selected.
iMonth - the selected month.
iDay - the selected day.
strText - the text of the day if they are available.

Return value

No return value.  

Example of

   

Visual Basic syntax
Private Sub Calendar1_OnDayClick (ByVal iYear As Integer, ByVal iMonth As Integer, ByVal iDay As Integer, ByVal strText As String)
txtCurDay = iDay
txtDayText = strText
End Sub

"

But I have really no idea to implement this!
I just want to have the date when I click on the calendar!

Any idea?

Best regards

I found the solution with the callback event.
LabVIEW is fantastic... :-)

Thank you all.

Tags: NI Software

Similar Questions

  • How to get the ActiveX component value change event?

    Hi all

    LV 8.6.1

    I try to get the ActiveX component value change event. I covered forum and through examples, but I can't get an idea of how "Recalling vi. For example, in the example 'ActiveX event Callback for IE.vi' it is used "recall vi". I've added an example where the change event of value with the mouse to the bottom of the event are scheduled to the structure of the event. Mouse down event OK work but change the value no. Can anyone describe what I need to add to my example vi who value the change event works fine?

    BR, Jim

    Here is the solution! "Value changed event" is not performed in the structure of the event, but in "Reminder VI".

  • cvixml. Available in cvi 5.5 FP

    I am allowed to use the CVI 5.5 because of the large number of already written programs.  I now have an obligation to generate xml documents.  The cvixml.fp is available for download and can be used in the CVI 5.5?

    concerning

    KelUk

    Hi kel.

    Good afternoon and I hope that your well today.

    I did some research into your question and I found the following resources.

    The Toolbox CVIXML (cvixml.fp) load automatically the Microsoft XML library version was a feautre of CVI 7.0 - including the
    API XML for easy creation of documents and editing. But you could manually analyze the XMLyourself.

    Looking at this post on the forum ,

    "I'm looking for an example showing how to use the.
    MSXML3 or 4 X Active Server in CVI 5.5 and 6.0 of IVR. Can anyone provide
    an example of a plate of boiler to analyze and write a XML Format file or a good
    reference to this using Active X under CVI. »

    The response has been

    "Using ActiveX in CVI 6.0 is very simple!
    "SELECT Tools" create ActiveX Controllor choose the server you want to use and to scroll through the rest of the wizard.

    "When you're done CVI has created a .fp file, that you can add to the project of Instrument ' load.
    In the menu of the instrument, you will see an entry for your ActiveX
    Server that will expose all the methods, provide you get and set
    functions for each property, and you can set up reminders for all
    ActiveX events.

    However, you can use CVI 5.5 and I found this forum by saying it's not a way to create ActiveX Server
    CVI 5.5 project. You can create DLLs with type library information,
    but not an interface based on COM or ActiveX object.

    Please let me know your thoughts,

  • Internet toolkit 64-bit

    Hola a todos,

    I need el Internet para toolkit Labview 2009 para Vista 64-bit, y no lo encuentro por lado para poder bajarmelo any. If any of ustedes me could help con el link bajarlo donde me ayudaria a monton. Además con este toolkit Lei as era posible open a Web browser in el front panel of labview SE to estoy if lo correcto, lo Necesito UN in this way to open una Cámara ip what none are compatible only con Labview y solo puedo see desde a Web browser, are por esto that wants to open United Nations Web browser en el labview.

    Thank for photos.

    Hello

    I need from the Internet Toolkit for Labview 2009 for Windows Vista 64 bit, I can't find anywhere to download it. If anyone of you could help me with the link where I could download, I'll be very grateful. Moreover, I do not know if its possible with this toolkit to open a Web browser in the front panel. I need this to open an IP camera n it is not compatible with labview, so I can handle the camera with a Web browser.

    I appreciate all the help

    Cristian

    The Internet toolbox will not help you open a web browser in the front panel. If that's what you want to do you don't need the Internet Toolbox. Under Windows, you can simply use an ActiveX container with incorporated inside of Internet Explorer ActiveX control. If you open the example Finder (help-> find examples) and find 'activex' or 'internet' and open the 'ActiveX event Callback for IE. It shows you how to have a web browser directly on the front panel.

  • HTML editing control?

    Is there a HTML of LabVIEW Control? Something like the Tiny MCE editor I use for this post?

    This does not work - the structure of event LabVIEW does not support ActiveX events. To handle events from the ActiveX, you insert a reminder VI. There are a few with LabVIEW examples that show you how to handle the events of the ActiveX.

  • Read open Excel

    I have a 3rd party application that exports data in real time in an Excel onscreen. We want to access the data and to synchronize with other data in our Labview applications. I tried several examples of Labview/ActiveX, but was unsuccessful. First of all. We tested using the Macro Excel to record and Labview to read dynamically. The on-screen, but not the saved, excellent file had to be updated. This is the LabView read the same numbers constantly. We also tried to use LabView to save and read directly. However, the 3rd party application export, the LabView stopped with error. Apparently, there was a conflict because of this continuous access to the same file by two different applications. I would appreciate your comments and suggestions.

    If you want to actively monitor the change, you will need to register a callback for an ActiveX event. For example, you can use the events of 'Change' of the sheet. See attached example, which uses a dummy control to trigger the event structure. You can also use a user event - doesn't matter much in this case.

  • ActiveX - Reg - led event reminder

    Hello

    I'm building a control for a Laser machine which based its controls in the ActiveX control technology. I had a program in c# that works, but I have because I wanted to change the settings and then connect it to another program Labview, I "translate".

    I start with a very simple operation:

    1. 'Start' ActiveX Server

    2. "load" a design for the laser.

    3. program of the "end".

    and then based on event (using the reg event reminder):

    If the "QueryStart" laser signal is activated by a switch, then "run" program.

    If the laser "starts", then light a led

    If laser 'ends', then light a led.

    I have problems to light a led by using the ref (LaserStartedLed) VI. I'm using as a model the Labview example: CWKnob to see a number from the button. But in this case, they use the numbers from the button, in my case are just Boolean, and I try to get data from common event.

    Can you help me with other ideas and corrections?

    Thanks in advance,


  • Problem of event reminder of the registry with Linkam ActiveX controls

    Hello

    I have a problem in configuration reference VI to interface with Linkam ActiveX control with an event callback function to register. I created a VI strictly typed with re-entrant execution, with all the correct connectors, as shown in the picture below, but LabView complains of a broken wire. The only difference between the input and the output seems to be that the result stands as an asynchronous function, and the entrance wants (synchronous) normal function? I can't find any option to make my VI reference become synchronous. Does anyone have any suggestions as to what to try next? Thank you very much

    Davide

    Hello

    Make a right-click on the terminal 'Ref VI' choose 'create the callback VI '.

    Do not try to build it yourself, it never works. :-)

  • ActiveX - LabView from c#

    Hello

    I create a program in LabView in a program already developed in c# that uses ActiveX to control a laser machine.

    The first thing I see in the program is the initialization of the ActiveX Server and equipment system:

    Laser = new LaserAxApp();

    LaserSystem = Laser.System;

    I found a refNum in labview with LaserAxApp, but in their properties, I found systems within the ILaserAxApp property. But also, I found a different refNum called laserengineLib.ISystem which is another reference to class as AxApp.

    which choose to continue implementing my program of c#?

    Thanks in advance,

    Stavrosyt wrote:

    Hello

    I create a program in LabView in a program already developed in c# that uses ActiveX to control a laser machine.

    The first thing I see in the program is the initialization of the ActiveX Server and equipment system:

    Laser = new LaserAxApp();

    LaserSystem = Laser.System;

    I found a refNum in labview with LaserAxApp, but in their properties, I found systems within the ILaserAxApp property. But also, I found a different refNum called laserengineLib.ISystem which is another reference to class as AxApp.

    which choose to continue implementing my program of c#?

    Thanks in advance,

    Thanks anyway... I managed to find the answer.

    It works with the properties and methods in the ActiveX menu in Labview. To answer my own question, the result is to use iLaseraxapp and ilasersystem refnums.

    Here is better explained:

    (1) start the laser with refnum laserengineLib.ILaserAxApp

    (2) use the open automation to open and

    (3) bind it with a node of the system IlaserAxApp (true visible) property.

    And that's all. Then you can use lib system even for event reminder reg and ilaserdoc for loading a file of xlp laser.

  • C# activeX

    I have a project that must translate into the joint of c# code in LabVIEW GUI (CSharp_EventLog.pdf), doing some basic code shown as EventLog.PNG, but seems not working do not. I send events server side, but this piece of code only gets no answer. I'm not familiar with ActiveX controls, and c#, need some suggestions on:

    1 at - it hurt with my LabVIEW code, why there is no response from the event? Read c# code, it seems class cast and/or Automation refnum mount? don't know how to code in LabVIEW.

    2. in call back vi, the event data are the variant, I expect string.

    Thanks in advance.

    Jason

    It seems that you do not receive the event data, but the reference to the event object. You need to convert ActiveX object, not string. Then you can work with the activex object: get properties (property node should show Date field similar c# is evt.) Date) and call methods (GetEventKey (evt)).

    You can't write something in c# like ToString (evt). Maybe you can, but you will get the same hexadecimal number 64 bit, not the event data. You write ToString (evt. (Date) - get evt first Date field, and then display it as string.

    To convert, you need constant class specifier. Copy TCEVENTLogger... control point vi, convert it to a constant and select class ActiveX correct (something like the TCEVENTLOGGERLib event).

  • Closing references ActiveX correctly in the Simple user interface

    Hello

    I am currently editing the user supplied with Teststand 2013 Simple interface in order to access the global variables of the station through LabVIEW.  A simple test, I'm trying to access the value of username.  When I run the VI for the first time after the opening of LabVIEW, I get no error message and the program works as required.  Stop the running VI will return no error, but when I try to run the VI and rerun the Teststand, stalls the execution sequence and I get a wait status.  I then have to close running VI by killing all threads in Teststand, I think that the PropertyObjects do not come out properly and I find the structure of the event quite confusing to deal with.

    My attempt to close the references in the while loop looks like this:

    The rest of the program is exactly as expected with Teststand 2013.

    Any input on how to close properly references ActiveX and extracting station globals in LabVIEW would be much apreciated.

    Thank you for your help,

    Christian

    Christian,

    Doug is correct if you open references in a loop, you should also be closing them in the loop. For example, this code open a reference to the engine and the Globals PropertyObject. Two of these references must be closed each time that the loop is executed with the current code.

    You might be able to improve this code is to put your username querying code elsewhere. This username appears as something that would happen only when a user connects or disconnects, then perhaps that this code could be registered as a reminder of the event UserChangedevent. Follow these steps in the VI of reminders set up event of the user interface.

    If you do not need this code to update constantly, you can put in the structure of the event time-out event in your screenshot and fix a reasonable (maybe 100 to 200 ms).

    Hope this helps and let us know if you have other questions about this!

  • How to read the windows event in labview

    I want to read the windows event viewer. Evt file to get information on the windows stop, start, restart... etc.

    and save it in my database.

    You might also take a peek at Microsoft LogParser. You can call the executable from the command line using System Exec. Supposedly, it also has an ActiveX interface.

  • COM in C++, but not in Labview shooting event

    Hi all

    Attached are on I have a problem with the screws.  The main VI is connection, which has a reminder VI which is testCallback methods.

    The question, as I understand it, is that the OnGazeData event is not fired, because I created the recall VI to create and write to a file. However, the file is not created.

    My first question is whether or not my shooting events will block waiting 500 SC in the loop.

    I can't redistribute the .dll file that defines these functions, but I'll try to describe what did OnGazeData; the rest should be pretty self explanatory of the attached screw.

    OnGazeData is fired whenever the connected device has data to interpret.  The data of the event will be a structure called gazeData.   There are a number of elements to the structure, including a timestamp as well as the size of pupil left and right eye.  All variables in the structure are either integers or floating-point numbers.

    Curiously, the C++ code provided with the device works, as far as I know, in the same way as my connection VI.  Lights OnGazeData and the C++ program displays the results in a window.

    In the end, I really wish I could use Labview to interpret the gazeData that OnGazeData fires, which is why the user setting (which will be eventually changed to a Variant or a cluster, I'm really not sure).

    Is there something that stands out for you that could be the cause of the problems?  I realize it's hard to debug without the .dll real access to the same functions as I have.  I was banging my head against this VI for a few weeks now, and I'm really at a loss for what could be changed or improved now.

    This is my first project in Labview, please forgive my ignorance.  Thank you for taking the time to look over what I have to say.

    Re: GUID, IDL, COM server:

    I think I mispoke in the title; I don't think that it is a COM event as long as it is a component.  I don't really know what a COM server is or how to find out if there is still an IDL.  The documentation I read is not a native English, and I'm having a hard time he deciphering at all.

    So I guess my revised question should look like this:

    • How to find out if my structure is indeed declared as a struct with a GUID in the file of the COM server IDL
    • If not, can someone point me in the right direction regarding writing a wrapper .dll file, preferably one that easily fits into LV via .net or ActiveX).  Reminder, .net and ActiveX are all pretty new to me.

    Hey Evan,

    you don't mispoke not in the title, the COM server and COM event is correct. A bit on the functioning internal COM server:

    COM servers are built using IDL files. IDL means "interface definition language", an IDL file is a text file that looks a bit like a C header file. It contains the interface definitions. Interfaces consist of properties and methods, ones that you can access through the property and invoke nodes of LV each interface has a GUID, a unique global identifier. The IDL file is compiled into a library of types, a binary representation of the IDL file. LV reads information from the interface and coclass type library. If you have Visual Studio installed you can view the type libraries using a tool called OleView.exe. So you might find if structs are used. Sounds complicated, but it's COM :-)

    If you have to deal with types incompatible automation (e.g., struct) you need a wrapper. With a bit of luck you need not write C++ but can instead create a .NET DLL wrapper: The .NET SDK provides a tool Tlbimp can you use to accomplish this task. It is a command line tool that takes the name of the COM DLL as a parameter. After you create the interop with tlbimp DLL, you can use in LV. Structs are also exported as .NET objects, so you can create and access.

    Hope that helps.

  • In response to the commandKind - bench test/Labview UI event

    Hey guys Hey.  I have control over a UI Labview/Test Stand I want to change the attributes of function if the user is logged on or loading a sequence file.  How can I create an event that fires when the user logs in or out or a sequence is charged or not etc.  I tried to raise an event when the ActiveX control Login | Click to disconnect is in place, but the event never fires.  I guess that's because the CommandKind_LoginLogout is attached to this control and maybe substitute the event?  My version is 4.1 TS, LV 8.6, OS XP.  TY

    Salvation AND,.

    This may work for you. You can change the configuration event Callbacks.vi to include three additional events, SequenceFileOpened, SequenceFileClosed and UserChanged.  This capture when someone hits one of the three buttons and run the code in the callback VI.  You can change the part of the connector of the VI or the boot for the parameters user to include a reference to the control of interest and pass the reference in the user setting option is available in each callback VI.  You can wire then that up to a knot of generic property to change the attributes of the control that you have created the reference.  I've attached a screenshot of the event reminders VI configuration change.  I hope that this option works for you!

  • ActiveX

    Hello

    I was stuck trying to convert this VBA code in Labview Activex.

    The VB code selects a range between two bookmarks in the document. Then the code VB, and then select the text that is between the beaches and refers to a text box. Evently, I want to put this text in a variable of Labview. But I can't seem to get this code base to work with activeX.

    The following VB code:

    Void Retrieve()

    Dim ttext As String

    Dim oRng As Range

    Set oRng = ActiveDocument.Range

    oRng.Start = ActiveDocument.Bookmarks ("row1col4"). End

    oRng.End = ActiveDocument.Bookmarks ("row1col5"). Start

    oRng.Select

    ActiveDocument.Bookmarks.Add "oRng", oRng

    TText = ActiveDocument.Bookmarks ("oRng"). Range.Text

    MsgBox ("oRng") ActiveDocument.Bookmarks. Range.Text

    End Sub

    The VB code works very well, I can't find a way correct yo converts it into activeX.

    Found the error: Sorry, I copy the VB code with sufficient attention and I left out a few knots.  This one works (I tested it).  I see not the selection get highlighted, but the message box contains the correct text.

    EDIT: Oops, still a minor error - your VB code uses the beginning of a bookmark and end for each other, I used the end for both.  If you want an exact match, simply change the end to start for the Bookmark property.

Maybe you are looking for