The VI has a setting that enables simultaneous execution of itself. When "start Image Execution.vi" is running for the first Cyclone, it can't run for another Cyclone until the first execution is complete. The default setting of LabVIEW 2018 only allows one copy of a VI to execute at a time. The previous example as well as the sample project control only one Cyclone but what if your production requires gang programming. The specified image is then added to the Cyclone.įigure 8: Connect Error Paths (scroll to view complete image) Create a String constant for the file name and a numeric constant to select the media type. This example will be expanded further by including "add Cyclone Image.vi" and another error handling block. If an error occurred during the programming process, the error cluster will be passed down to error out.įigure 7: Error Cluster Passed to Error Out "connect To Cyclone.vi" can only execute after "enumerate All Ports.vi"). It ensures the correct order of execution of each block (i.e. There are two benefits to this connection scheme. Notice that the output error terminal of the previous block is connected to the input error terminal of the next block. This block returns a handle to the "labview_demo_error_handling.vi" where it will check if the user successfully connected to the Cyclone. The "connect To Cyclone.VI" block with the String constant containing the name of the Cyclone is executed next. The "enumerate All Ports.vi" is executed first. With the library added to the project, the user can just drag the pre-built CycloneControlSDK VIs into their block diagram to use their functionality.įor example, opening a Cyclone by name is a common way to connect to a Cyclone. The CycloneControlSDK.DLL and some system VIs will be added to the project dependencies.įigure 6: Project Explorer With Dependencies The user can add the lvlib file to a project by right-clicking My Computer -> Add -> File -> CycloneControlSDK.lvlib within the Project Explorer window. This library contains the collection of VIs generated from the DLL. This combines "get Number Of Errors.vi", "get Error Code.vi", and "get Description Of Error Code.vi" into one VI for easier error checking after each Cyclone operation.įigure 4: Error Checking Block Diagram (scroll to view complete image)īuilding a new application is as easy as adding the library file (CycloneControlSDK.lvlib). Error checking is handled by the sub-VI labview_demo_error_handling.vi. When an error occurs, the error code and error message will be displayed on the front panel status indicators. If all programming steps execute correctly, the Success LED turns on otherwise the Error LED turns on. If they execute an image, the Launch LED turns on. If the user connects to a Cyclone and receives a valid handle, the Connect LED turns on. The four LEDs on the panel provide status information. The application shows the typical steps in the programming procedure: port enumeration, Cyclone connection, image execution, check programming status, error retrieval, and connection disconnect. When the user presses the START button, the Cyclone will execute the specified image number. The user should input the image number of the Cyclone that they want to launch to the Image ID box (the API also supports selecting an image by name). The Cyclone is selected by the port to which it is connected (USB1, ETHERNET1, or COM1) but the project can use other identifiers such as "Cyclone name" or "IP address" by modifying the Port Identifier indicator. The main VI is labview_demo.vi The is the front panel of the project.įigure 2: Block Diagram (scroll to view complete image) The sample project was developed in National Instruments LabVIEW 2018. The Cyclone Control Suite and this sample project is included with the Cyclone LC and Cyclone FX Programmer Installation Software. Library (CycloneControlSDK.lvlib) and pre-built VIs The CYCLONE user manual and CYCLONE FX user manual contain a full list and description of the Cyclone Control SDK API in detail. This blog post demonstrates how to utilize the SDK in LabVIEW®. The Cyclone Control Suite includes a Cyclone Control SDK which is a comprehensive API allowing multiple Cyclones to be managed simultaneously from a user-developed custom application that loads the provided Cyclone Control DLL. This new feature facilitates easy integration of CYCLONE stand alone programmers into production applications developed in LabVIEW®. PEmicro is excited to announce the release of a library of LabVIEW VI components as well as a sample project as part of the Cyclone Control Suite. April 2021 - We've updated this blog post with more information about gang operation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |