LabVIEW is called WinCE LED driver
2016-08-23
0 0 0
no vote
Other
Earn points
Feel that content of this practice is to learn how to deceive the LabVIEW compiler. Of course this work by a compiler, you need to understand the mechanism. Below is a simple example called------WinCE LED lamp driver.
1, using VC to write a dynamic-link library procedure code is as follows: #includeextern "c" _declspec (dllexport) BOOLLEDControl (int port) {HANDLEleddriver; leddriver=CreateFile(L"LED1:",GENERIC_READ| GENERIC_WRITE, 0, NULL,OPEN_EXISTING,0,NULL); if(leddriver==NULL) { returnFALSE; } DeviceIoControl(leddriver,port, NULL,0,NULL,0,NULL,NULL); Write an ARMV4 and VS2005 using returnTRUE;vs20
1, using VC to write a dynamic-link library procedure code is as follows: #includeextern "c" _declspec (dllexport) BOOLLEDControl (int port) {HANDLEleddriver; leddriver=CreateFile(L"LED1:",GENERIC_READ| GENERIC_WRITE, 0, NULL,OPEN_EXISTING,0,NULL); if(leddriver==NULL) { returnFALSE; } DeviceIoControl(leddriver,port, NULL,0,NULL,0,NULL,NULL); Write an ARMV4 and VS2005 using returnTRUE;vs20
c
labview
led
WINCE
驱动
调用
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment