Author: RuzheZ_36 Version: *B
Translation - Japanese: LabVIEWを使用したKitProg2 / MiniProg3でのプログラミング - KBA218796 - Community Translated (JA)
How do I program a Cypress device with KitProg2/MiniProg3 by using the LabVIEW software from National Instruments?
LabVIEW supports the ActiveX method to access the Component Object Model (COM) API. See the ActiveX and LabVIEW white paper for details. PSoC® Programmer’s driver supports the COM Interface for customized programming host design. See the PSoC Programmer COM User Guide for descriptions (definition, method, parameters) of all PSoC Programmer COM APIs.
You can use the Python, C#, and Perl examples in the installation folder of PSoC Programmer (…\Cypress\Programmer\Examples \Programming) as a reference code for the LabVIEW project.
The following sections show how to program target Cypress devices by using LabVIEW and Kitprog2/Miniprog3. The target device can be PSoC 4, PSoC 3, or PSoC 5LP.
The programming operation requires a hardware connection as shown as below:
To start the software development of the LabVIEW project, the PSoC Programmer COM Object should be first hooked by LabVIEW correctly. Use the ‘Automation Open’ option in LabVIEW to select the ActiveX Class Object of PSoC Programmer COM Object. The method is shown below.
A simple programming flowchart for the software approach is as shown below. This uses PSoC 4 as an example; it can be easily ported to PSoC 3 and PSoC 5 LP. Note that the flowchart below doesn’t consider flash protection. Refer to the Python, C#, or Perl examples in your PSoC Programmer installation for details. Each “pp.[Function]()” mentioned in the flowchart below can be accessed by using the ‘Invoke Methods’ option directly in the LabVIEW project after PSoC Programmer COM Object is successfully hooked to complete the development of the LabVIEW project.
Use the LabVIEW project attached with this article as an example. Contact Cypress Sales or Technical Support for more information.