• 大小: 27.52MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-08
  • 语言: C#
  • 标签: C#  vb  Keyence.Auto  

资源简介

基恩士条码枪Keyence.AutoID.SDK_Help的开发包,感觉用处不是太大,好像VB和C#可以调用。里面有文档和例子

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Keyence.AutoID.SDK;

namespace FirstStepApp
{
    public partial class Form1 : Form
    { 
        private ReaderAccessor m_reader = new ReaderAccessor();
        private ReaderSearcher m_searcher = new ReaderSearcher();
        List m_nicList = new List();

        public Form1()
        {
            InitializeComponent();
            m_nicList = m_searcher.ListUpNic();
            if (m_nicList != null)
            {
                for (int i = 0; i < m_nicList.Count; i++)
                {
                    NICcomboBox.Items.Add(m_nicList[i].NicIpAddr);
                }
            }
            NICcomboBox.SelectedIndex = 0;
        }

        private void SchBtn_Click(object sender EventArgs e)
        {           
            //m_searcher.IsSearching is true while searching readers.
            if (!m_searcher.IsSearching)
            {
                m_searcher.SelectedNicSearchResult = m_nicList[NICcomboBox.SelectedIndex];
                NICcomboBox.Enabled = false;
                SchBtn.Enabled = false;
                SctBtn.Enabled = false;
                comboBox1.Items.Clear();
                //Start searching readers.
                m_searcher.Start((res) =>
                {
                    //Define searched actions here.Defined actions work asynchronously.
                    //“SearchListUp“ works when a reader was searched.
                    BeginInvoke(new delegateUserControl(SearchListUp) res.IpAddress);
                });
            }
        }
        private void SctBtn_CheckedChanged(object sender EventArgs e)
        {
            if (SctBtn.Checked)
            {
                if (comboBox1.SelectedItem != null)
                {
                    //Stop liveview.
                    liveviewForm1.EndReceive();
                    //Set ip address of liveview.
                    liveviewForm1.IpAddress = comboBox1.SelectedItem.ToString();
                    //Start liveview.
                    liveviewForm1.BeginReceive();
                    //Set ip address of ReaderAccessor.
                    m_reader.IpAddress = comboBox1.SelectedItem.ToString();
                    //Connect TCP/IP.
                    m_reader.Connect((data) =>
                    {
                        //Define received data actions here.Defined actions work asynchronously.
                        //“ReceivedDataWrite“ works when reading data was received.
                        BeginInvoke(new delegateUserControl(ReceivedDataWrite) Encoding.ASCII.GetString(data));
                    });
                    NICcomboBox.Enabled = false;
                    SchBtn.Enabled = false;
         

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-17 17:30  SR_SDK\
     目录           0  2017-10-17 17:30  SR_SDK\Manual\
     文件      144108  2017-10-16 08:14  SR_SDK\Manual\Keyence.AutoID.SDK_Help.chm
     文件         981  2017-10-11 14:14  SR_SDK\README.txt
     目录           0  2017-10-17 17:30  SR_SDK\Runtime\
     文件    14572000  2017-10-10 15:49  SR_SDK\Runtime\vc_redist.x64.exe
     文件    13767776  2017-10-10 15:49  SR_SDK\Runtime\vc_redist.x86.exe
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\
     文件         955  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp.sln
     文件         183  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\App.config
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\Release\
     文件      100352  2017-10-11 12:08  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\Release\Communication.dll
     文件       18944  2017-10-17 17:22  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\Release\FirstStepApp.exe
     文件       25088  2017-10-13 18:50  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\Release\Keyence.AutoID.SDK.dll
     文件       34304  2017-10-11 12:08  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\Release\VncClientControlCommon.dll
     文件       95232  2017-10-11 12:08  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\bin\x86\Release\VncClientControlCommonLib.dll
     文件        8319  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\FirstStepApp.vbproj
     文件        5548  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\Form1.Designer.vb
     文件        5817  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\Form1.resx
     文件        4166  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\Form1.vb
     目录           0  2017-10-17 17:30  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\My Project\
     文件        1806  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\My Project\Application.Designer.vb
     文件         510  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\My Project\Application.myapp
     文件        1348  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\My Project\AssemblyInfo.vb
     文件        3233  2017-10-17 17:20  SR_SDK\SampleApplication\FirstStepApp\FirstStepApp_VB\FirstStepApp\FirstStepApp\My Project\Resources.Designer.vb
............此处省略89个文件信息

评论

共有 条评论