-
大小: 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?????????????????{
????????????????????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個文件信息
評論
共有 條評論