You cannot use C# file on a PSOC5 project,
Do you mean that you have a CP firmware to interact with a psoc5 chip and display the information on a the PC screen?
Yes , i mean that, and i want to use usb port connect my psoc5 board to my PC, and then i can display the message on the window which handles by PCoC5 board,
And if i can embeded the code to my project, after executing the project, i can see one window displaying on my PC which can show the message such as point location, line painting and so on,
If tha tis the case , then you have 2 program to write
1. A pc program that reads data from a USB prot and base on the information, format it and display it on the pc Screen.
2. A psoc5 project
The question is
1. So the C# or C++ is for the PC side, not the psoc5. Is this correct?
2. What do you want the PSOC5 to do? is it going to read some sensor data and send it to PC using USB port?
Yes, as you say above, i want the PSoC5 board to handle sensor data and send it to PC by USB port!
And my original idea is as you say: there are two programs to realize this case, one is at PC side which can dispay an active window when execute it, and the window can show the data information send by PSoC5 board. the other is PSoC program which can drive my PSoC5 board to capture the sensor data and then formating it to the information that PC can recognize!
In that case, you do not need to worry about the c# code for the psoc5 project.
But you need to decide how the data is sent and how much/ how often it is sent.
Yes, and i will have a try!