Das sollte gehen:
Partial Class ThisProject
Dim WithEvents zOLV As zenOn.IOnlineVariable
Private Sub ThisProject_Startup(ByVal sender As Object, ByVal e As System.EventArgs) _...
Type: Posts; User: tulon
Das sollte gehen:
Partial Class ThisProject
Dim WithEvents zOLV As zenOn.IOnlineVariable
Private Sub ThisProject_Startup(ByVal sender As Object, ByVal e As System.EventArgs) _...
Hello,
maybe this could be helpful
500
501
Blue rectangel ona number element means you have no network connection.
Does the RT runing on your PC and even on your CE-Pannel?
Is the PC connected to the CE-Pannel?-> Try do ping the CE-Pannel...
You must set in your CE Project properties the CE Project as Network active and as server . Did you?
VSTA can't be used directly on CE.
You have two possibilities:
1. Without VSTA ->You can directly link your Variable from the CE Project directly to a Element to your Top-Project provided that...
You must only select the "Reference"node in the Solution-Explorer of the VS.
Open the contex menue and click on "Add References"
Next click on the Tab "COM" and select the COM-Reference...
The zenon COM-Interface is do use as every other COM-Interface. If you want to use a COM-Interface (unmanaged code) in VS ( .NET is managed code) you have to take a look on the Microsoft MSDN...
I'm not really sure what you try to do... but you can sent a argument to a internal variable by using a zenon function "Send value".
This variable you can add to a OnlineVariable and over the...
Does the debugging work after the reset?
OK, try following steps:
Close your zenon RT
Open the VSTA Editor directly in the zenon Editor (Project->Progamming Interface-> VSTA)
Open in the Main Menu Tools->Import and Export...
Does the Macro exsit in the VBA Module "ModuleElement" of your project?
Did you try setting a preakpoint in the macro code and depug the code? Does the depugging session stop on the breakpoint?
1. Check the Depug settings in the VSTA IDE->"Tools"->"Options.."
Compate the setting with the Image:
476
Check the setting of the Relase/Debug. Set the setting for the advanced build...
This libary is a open source:
http://numerics.mathdotnet.com/doc/Features.ashx
If the zenon RT will be closed or a reload will be executed the reference to the COM-Interface will lost (Interop.zenOn.dll). In your case it would be better to check the availability of the...
Hello!
If you don't use the variable in your project, it will not exsist in the Runtime. You can only read Variables which are projected in the runtime.
This sample shows how to use a self created Event which will triggert if a boolean Variable is set to "True" (CalculateArrayReady).
public void Macro_Event()
{
...
The different between the OnlineContainer and the BulkMode are:
OnlineContainer
By using 100 variables in the OnlineContainer and they changed the value to the same time you will get 100 change...
This is the same example with C#
public void Macro_ChangePicFiler()
{
zenOn.IRtFunction myFunction = this.RtFunctions().Item("fct_Pic_TimeFiler");
if...
Will the first call to the EventHandler contain all the variables?
After Define the EventHandler will be active and from this time on every change of a variable from the Bulkcontainer will be...
Try this :)
using System;
using System.Collections.Generic;
namespace ProjectAddin
{
[System.AddIn.AddIn("ThisProject", Version = "1.0", Publisher = "", Description = "")]
public...
This example shows how to use Bulkmode with C#
private void ThisProject_Startup(object sender, EventArgs e)
{
try
{
Array.Resize(ref...
using System;
using System.Windows.Controls;
using System.Data;
namespace ProjectAddin
{
[System.AddIn.AddIn("ThisProject", Version = "1.0", Publisher = "", Description = "")]
...
This sample shows how to create a interna variable in the zenon Workspace (WorkspaceAddIn)
try
{
Var = m Zenon.MyWorkspace.ActiveDocument.Variables().
CreateVar((string )VarNameList [...
This samples shows how to use a window form in the zenon Workspace (WorkpaceAddIn)
First of all you have to create a Windows form with a constructor with one parameter. With this constructor you...
Du must zuerst eine Variable vom Typ zenOn.ITemplate deklarieren, da dass "Create" ein Objekt vom Typ Template zurück gibt. Als ActiveDocument wird das "aktive Projekt" , also geladene Projekt in...