Labwindows
@残梦
当学习成为一种习惯!
展开
-
97、windows检查串口端口号是否存在
windows端口检查是否存在原创 2024-09-03 11:16:41 · 232 阅读 · 0 评论 -
89、JPEG格式图像数据解析+串口传输JPEG解析
JPEG格式图像数据解析+串口传输JPEG解析原创 2024-05-28 20:38:57 · 532 阅读 · 0 评论 -
Labwindows App界面文件拖拽读取
示例:将文件拖拽至App界面释放后读取文件名及路径,并添加至文本框显示出来核心实现代码int CVICALLBACK PANEL_Callback (int panel, int event, void *callbackData, int eventData1, int eventData2){ const char sa5101file[5] = ".xls"; const char chifile[5] = ".csv"; char ErrorString[300];原创 2022-03-25 09:55:32 · 717 阅读 · 0 评论 -
LabWindows操作Excel
运行效果:界面:完整代码:#include "excelreport.h"#include <ansi_c.h>#include <cvirte.h> #include <userint.h>#include "Excel.h"typedef struct{ CAObjHandle Handle; //Excel服务器句柄 CAObjHandle BookHandle; //Excel文件句柄 CAObjHandle SheetHandle原创 2021-02-03 16:54:19 · 790 阅读 · 0 评论 -
cvi文件操作笔记
int i = 0; int x = 0; char str[20]; char val1[20],val2[20],val3[20]; case EVENT_LEFT_CLICK_UP: { sprintf(CanMeng_FileName,"%s%s","file",".txt"); http://www.docin.com/p-647400695.html printf("write file:%s\n",CanMeng_FileName); Ca.原创 2020-10-27 22:53:13 · 1588 阅读 · 0 评论 -
labwindows 多线程
线程创建线程:int functionId;int Thread_RunFlag = 0;CmtScheduleThreadPoolFunction (DEFAULT_THREAD_POOL_HANDLE, DataAcqThreadFunction, NULL, &functionId);Thread_RunFlag = 1;线程执行函数:int CVICALLBACK DataAcqThreadFunction (void *functionData){ while (Th原创 2020-10-20 16:19:30 · 1133 阅读 · 0 评论