This commit is contained in:
2024-03-04 11:22:34 +01:00
parent e092ed9dea
commit 21c010d0be
12 changed files with 433 additions and 184 deletions

View File

@@ -3,7 +3,7 @@
* ecmc is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
*
* ecmcScopeWrap.h
* ecmcDAQWrap.h
*
* Created on: Sept 21, 2020
* Author: anderssandstrom
@@ -11,39 +11,30 @@
\*************************************************************************/
#ifndef ECMC_SCOPE_WRAP_H_
#define ECMC_SCOPE_WRAP_H_
#include "ecmcScopeDefs.h"
#include "ecmcDAQDefs.h"
# ifdef __cplusplus
extern "C" {
# endif // ifdef __cplusplus
int createScope(char *configStr);
int enableScope(int scopeIndex, int enable);
//int clearScope(int scopeIndex);
int triggScope(int scopeIndex);
int executeScopes();
int executeDAQs();
/** \brief Link data to _all_ scope objects
*
* This tells the Scope lib to connect to ecmc to find it's data source.\n
* This tells the DAQ lib to connect to ecmc to find it's data source.\n
* This function should be called just before entering realtime since then all\n
* data sources in ecmc will be definded (plc sources are compiled just before runtime\n
* so are only fist accesible now).\n
* \return 0 if success or otherwise an error code.\n
*/
int linkDataToScopes();
int linkDataToDAQs();
/** \brief Deletes all created scope objects\n
*
* Should be called when destructs.\n
*/
void deleteAllScopes();
void deleteAllDAQs();