-
K60ADC
K60实现16bitadc采集,可移植性强。(K60 achieve 16bitadc collection, portability.)
- 2021-03-24 09:19:15下载
- 积分:1
-
FIFO-master
This is a generic FIFO buffer that can be used to store any kind of items. It is written in C language and can be compiled and used on almost any architecture. It was designed to be used on memory limited architectures such as microcontrollers. Examples of the applications that can be built with this library include:
- 2020-06-21 02:00:01下载
- 积分:1
-
Creating command line "link.exe /nologo /subsystem:windows /dll /incremental:no...
Creating command line "link.exe /nologo /subsystem:windows /dll /incremental:no /pdb:"Release/port_dll.pdb" /machine:I386 /def:".port_dll.def" /out:"Release/port_dll.dll" /implib:"Release/port_dll.lib" ".Releaseport_dll.obj" ".ReleaseStdAfx.obj" ".Releaseport_dll.res" "
-Creating command line "link.exe/nologo/subsystem : windows/dll/incremental : no/pdb : "Release/port_dll.pdb"/machine : I386/def :. " port_dll.def "/ out : "Release/port_dll.dll"/implib : "Release/port_dll.lib". " Release port_dl l.obj "." Release StdAfx.obj "." Release p ort_dll.res ""
- 2022-03-24 17:30:26下载
- 积分:1
-
achieve-DA-function
单片机去控制PCF8591T去实现DA功能。
这个代码也要在示波器上才能观测到,DA输出一个正弦波。(Microcontroller to control PCF8591T to achieve DA function. This code also can be observed on an oscilloscope, DA output a sine wave.)
- 2013-07-24 15:03:19下载
- 积分:1
-
Radar1
模拟雷达的一个小程序,扫面线周期性扫描,显示检测出来的异常点(A small program to simulate the radar sweep noodles periodic scanning, display anomalies detected point)
- 2014-10-17 16:00:47下载
- 积分:1
-
SM-621
指纹光学传感器模块通信子程序////////(Optical fingerprint sensor module communication subroutines)
- 2010-08-27 22:24:26下载
- 积分:1
-
0303
vc++6.0与matlab的混合编程的一个应用实例。(vc++ 6.0 with a mixture of matlab programming an application example.)
- 2008-03-07 12:29:30下载
- 积分:1
-
zairuzhidiandandao
用来计算航天器再入质点弹道,其中包括插值算法,龙格库塔法以及大气模型(Used to calculate the particle trajectory of spacecraft re-entry, including the interpolation algorithm, Runge-Kutta method as well as atmospheric model)
- 2008-04-27 11:09:17下载
- 积分:1
-
倍福CNC 界面
倍福CNC 界面using System;using System.Windows.Forms;namespace TcApplication{ static class Program { [System.Runtime.InteropServices.DllImport("User32.dll")] static extern IntPtr SetForegroundWindow(IntPtr hWnd); [System.Runtime.InteropServices.DllImport("User32.dll")] static extern IntPtr ShowWindow(IntPtr hWnd, int nCmdShow); public static MainApp mainApp; static FormSplash formSplash; static bool exceptionSignaled; static Timer timerSplashWait; const int SW_RESTORE = 9; #region Main Entry /// /// The main entry point for the application. /// [STAThread] static void Main() { //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException = new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); if (CheckActiveProcess() == true) { Application.Exit(); return; } ShowSplashScreen(); // BasicConfigurator.Configure(); log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(Application.StartupPath "\System\log.xml")); // Einschalten internes Debugging der LOG Komponenete // log4net.Util.LogLog.InternalDebugging = true; MainApp.log.Info("Application started."); // set the NumberGroupSeparator for all forms System.Globalization.CultureInfo newCultureInfo = new System.Globalization.CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.LCID); newCultureInfo.NumberFormat.NumberDecimalSeparator = "."; newCultureInfo.NumberFormat.NumberGroupSeparator = ","; newCultureInfo.TextInfo.ListSeparator = ";"; Application.CurrentCulture = newCultureInfo; // load the settings MainApp.appSettings = new Settings(); MainApp.appSettings.FileName = Application.StartupPath "\System\AppSet.xml"; MainApp.appSettings.ReadSettings(); mainApp = new MainApp(); Application.Run(mainApp); MainApp.log.Info("Application stopped."); MainApp.appSettings.WriteSettings(); } #endregion #region Public functions public static void ShowSplashScreen() { String[] arguments = Environment.GetCommandLineArgs(); for (int i = 1; i < arguments.Length; i ) { if (arguments[i].StartsWith("/NoSplash")) return; } if (formSplash == null) formSplash = new FormSplash(); if (timerSplashWait == null) { timerSplashWait = new Timer(); timerSplashWait.Tick = new EventHandler(timerSplashWait_Tick); } formSplash.Parameters("HMI " Application.ProductVersion, 325, 296, new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))), System.Drawing.Color.FromArgb(0, 104, 157), System.Drawing.Color.Black); formSplash.Show(); Application.DoEvents(); } static void timerSplashWait_Tick(object sender, EventArgs e) { timerSplashWait.Enabled = false; CloseSplashScreen(); } public static void CloseSplashScreen(int interval) { if (interval < 1) interval = 1; if (timerSplashWait != null) { timerSplashWait.Interval = interval; timerSplashWait.Enabled = true; } } public static void CloseSplashScreen() { if (formSplash != null) { formSplash.Close(); formSplash.Dispose(); formSplash = null; } } public static void BringSplashToFront() { if (formSplash != null) formSplash.BringToFront(); } public static void SplashTopMost(bool level) { if (formSplash != null) formSplash.TopMost = level; } #endregion #region Private functions private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { if (!exceptionSignaled) { exceptionSignaled = true; MainApp.log.Fatal(sender, e.Exception); Beckhoff.App.ExceptionDialog exc = new Beckhoff.App.ExceptionDialog(); exc.SetText(Application.ProductName " has encountered a problem." "For further information take a look to the application event log!", e.Exception); exc.ShowDialog(); exceptionSignaled = !exc.ExceptionSignaledChecked; exc.Dispose(); exc = null; } } private static bool CheckActiveProcess() { try { int c = System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length; if (c > 0) { bool bFoundSame = false; foreach (System.Diagnostics.Process pr in System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName)) { if (pr.MainModule.FileName == Application.ExecutablePath && pr.Id != System.Diagnostics.Process.GetCurrentProcess().Id) { SetForegroundWindow(pr.MainWindowHandle); // 9 = SW_RESTORE (winuser.h) ShowWindow(pr.MainWindowHandle, SW_RESTORE); bFoundSame = true; } } return bFoundSame; } else { return false; } } catch //(System.Security.SecurityException ex) { return false; } } #endregion }}
- 2020-12-05下载
- 积分:1
-
大数阶乘
大数运算——计算n的阶乘(n>=20)。
(1)数据的表示和存储;
(1.1)累积运算的中间结果和最终的计算结果的数据类型要求是整型——这是问题本身的要求;
(1.2)试设计合适的存储结构,要求每个元素或节点最多存储数据的3位数值。
(2)数据的操作及其实现:
基于设计的存储结构实现乘法操作,要求从键盘上输入n值,在屏幕上显示最终计算结果。
- 2022-08-10 13:30:25下载
- 积分:1