学习STK

目的:使用wpf连接STK,开发软件。
学习记录如下:
内容不一定对,边学边记录,错了再更新。
1、STK支持二次开发。安装完STK11 后,在安装目录中有
在这里插入图片描述
2、其中文件夹help里面有开发文档,文件夹CodeSamples里面有代码示例。
3、
The Connect module provides you with an easy way to connect with STK and work in a client-server environment.
有道翻译:
Connect模块为您提供了一种简单的方法来连接STK并在客户机-服务器环境中工作。您可以使用Connect附带的库轻松构建与STK通信的应用程序。
Connect----这种开发方式有俩种办法:如下:

  • A TCP/IP connection to send Connect commands over a specified port.
    The default port for this connection is 5001(这个TCP/IP大概知道怎么回事)
  • The COM interface to STK (see the Integration Help System) to send
    Connect commands directly to STK without communicating through a
    port(这个Com没明白)
    注意:
    Sending asynchronous connect commands to STK is not supported over COM.(不支持通过COM向STK发送异步连接命令。)
    然后还给个示意图:
    在这里插入图片描述
    1、它给了一个AgConnect Library API
    说是这玩意是The AgConnect Library API is designed to provide a communications tool for third-party applications to send commands to and receive data from STK(AgConnect Library API旨在为第三方应用程序提供通信工具,用于向STK发送命令和接收数据
    这个API还有这些功能:
    AgConnect API由一组函数组成,这些函数允许您打开到STK的连接,发送Connect命令并从STK接收数据作为响应,然后在完成连接后关闭连接。AgConnect API还提供了一个消息传递功能,允许您以各种用户定义的方式打印错误和诊断消息
    如果需要,您可以重写消息传递函数并将其用于您自己的目的。使用AgConnect,您只需要提供希望连接到的STK产品的地址。可以使用一个函数发送Connect命令,该函数返回任何预期的数据,对应用程序隐藏低级Connect协议。(最后这句没看懂)

猜你喜欢

转载自blog.csdn.net/weixin_41487423/article/details/121856134