本文总结了在实际工作中摸索的BASIC主程序与汇编语言子程序连接的新方法。
This article provides a new method for linking main BASIC program to assembly language subroutine.
第一个子程序 socket_setup() ,它返回一个准备接受连接的套接字。
The first one, socket_setup(), returns a socket which is ready to accept connections.
第二个子程序get _ sockets,以这个套接字为参数,接受连接,并创建一个structsockets对象。
The second one, get_sockets , takes the socket, accepts a connection, and creates a struct sockets object.
图标和连接器提供了VI作为其他VI中的子程序或函数时的图形表示和所需的参数定义。
The icon and connector provide the graphical representation and parameter definitions needed if you want to use a vi as a sub-routine or function in the block diagrams of other VIs.
该方法可以简化BASIC主程序和汇编语言子程序的调试和连接过程。
The method can simply test and link the main BASIC program to assembly language subroutine.
通过编写子程序将非线性的轮轨相互作用力定义为子模型,与系统的键图模型相连接。
The nonlinear wheel-rail interaction forces can be included in the bond graph model as submodels which are defined by writing subroutines.
考虑下面的梯子程序,检查是否启用了连接(A202.00),那么从PLC电脑发送一条消息。
Consider the following Ladder Program that checks if a connection is enabled (A202.00) then send a message from the PLC to the PC.
考虑下面的梯子程序,检查是否启用了连接(A202.00),那么从PLC电脑发送一条消息。
Consider the following Ladder Program that checks if a connection is enabled (A202.00) then send a message from the PLC to the PC.
应用推荐