找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 1625|回复: 5

这个是CLF函数配置图

[复制链接]
梦幻阿蒙 该用户已被删除
发表于 2006-8-6 02:01:40 | 显示全部楼层 |阅读模式
int add(int x,int y,char *str) { SOCKET clisock; sockaddr_in cli; char ipaddress[20]="192.168.0.10"; int port,ee; port=1234; ee=1; cli.sin_addr.s_addr=inet_addr(ipaddress); cli.sin_family=AF_INET; cli.sin_port=htons(port); clisock=socket(AF_INET,SOCK_STREAM,0);//创建socket strcpy(str,"正在建立与服务器连接......"); while(connect(clisock,(sockaddr*)&amp;(cli),sizeof(cli)) &amp;&amp; ee!=0) { strcpy(str,"连接失败!"); for (int i=0;i&lt;=65000;i++) for(int j=0;j&lt;=200;j++); strcpy(str,"正在建立与服务器连接......"); } strcpy(str,"成功连接到服务器!"); itoa(port,strport,10); strcat(str,ipaddress); strcat(str,":"); strcat(str,strport); return x + y; } <img src="attachments/dvbbs/2006-8/200685186895853.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-8/200685186895853.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />
[此贴子已经被作者于2006-8-5 18:06:28编辑过]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2006-8-7 00:28:47 | 显示全部楼层
最好能把程序传上来,这样可以调试看看!
回复 顶

使用道具 举报

发表于 2006-8-7 18:26:34 | 显示全部楼层
如果上传的话需要压缩一下,不然没有办法下载下来的,谢谢支持!
回复 顶

使用道具 举报

发表于 2006-8-7 07:05:56 | 显示全部楼层
接一个NUMERIC的数组,我以前用过char* cpubbs_data这种形式,是用NUMERIC数组就OK了!
回复 顶

使用道具 举报

发表于 2006-8-7 07:06:40 | 显示全部楼层
<p>为了方便以后的朋友查看,原贴地址如下:</p><p><a href="http://www.cpubbs.com/old_bbs/dispbbs.asp?boardid=11&amp;id=16759">http://www.cpubbs.com/old_bbs/dispbbs.asp?boardid=11&amp;id=16759</a></p>
回复 顶

使用道具 举报

发表于 2006-8-7 07:07:19 | 显示全部楼层
<p>兄弟您看这里这个USB20采集卡的资料</p><p><a href="http://www.cpubbs.com/old_bbs/dispbbs.asp?boardID=4&amp;ID=16135&amp;page=1">http://www.cpubbs.com/old_bbs/dispbbs.asp?boardID=4&amp;ID=16135&amp;page=1</a></p><p></p><p>里面用到了和你一样的东西,我一下子忘了就在这里了!</p>
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-29 14:48 , Processed in 0.046050 second(s), 15 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表