资源简介
impinj实例demo,很好用的demo,绝对不后悔下载。
代码片段和文件信息
////////////////////////////////////////////////////////////////////////////////
//
// Advanced GPO
//
////////////////////////////////////////////////////////////////////////////////
using System;
using System.Threading;
using Impinj.OctaneSdk;
namespace OctaneSdkExamples
{
class Program
{
// Create an instance of the ImpinjReader class.
static ImpinjReader reader = new ImpinjReader();
static void Main(string[] args)
{
try
{
// Connect to the reader.
// Change the ReaderHostname constant in SolutionConstants.cs
// to the IP address or hostname of your reader.
reader.Connect(SolutionConstants.ReaderHostname);
Console.WriteLine(“Configuring general purpose outputs.“);
// Get the default settings
// We‘ll use these as a starting point
// and then modify the settings we‘re
// interested in.
Settings settings = reader.QueryDefaultSettings();
// GPO 1 will go high when tags when tags are read.
settings.Gpos.GetGpo(1).Mode = GpoMode.ReaderInventoryTagsStatus;
// GPO 2 will go high when a client application connects to the reader.
settings.Gpos.GetGpo(2).Mode = GpoMode.LLRPConnectionStatus;
// GPO 3 will pulse high for the specified period of time.
settings.Gpos.GetGpo(3).Mode = GpoMode.Pulsed;
settings.Gpos.GetGpo(3).GpoPulseDurationMsec = 1000;
// GPO 4 will behave as a regular GPO.
settings.Gpos.GetGpo(4).Mode = GpoMode.Normal;
// Apply the newly modified settings.
reader.ApplySettings(settings);
// Start reading.
reader.Start();
// Set the GPO high every three seconds.
// The GPO will remain high for the period
// specified by GpoPulseDurationMsec.
for (int i = 0; i < 5; i++)
{
reader.SetGpo(3 true);
Thread.Sleep(3000);
}
// Wait for the user to press enter.
Console.WriteLine(“Press enter to exit.“);
Console.ReadLine();
// Stop reading.
reader.Stop();
// Disconnect from the reader.
reader.Disconnect();
}
catch (OctaneSdkException e)
{
// Handle Octane SDK errors.
Console.WriteLine(“Octane SDK exception: {0}“ e.Message);
}
catch (Exception e)
{
// Handle other .NET errors.
Console.WriteLine(“Exception : {0}“ e.Message);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-06-28 22:34 OctaneSDK_.NET_2_20_0\docs\
文件 51503 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\annotated.html
文件 676 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\bc_s.png
文件 147 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\bdwn.png
文件 17229 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_config.html
文件 8138 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_config-members.html
文件 8713 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_event.html
文件 6191 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_event-members.html
文件 10492 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_hub_status.html
文件 6568 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_hub_status-members.html
文件 10460 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_status.html
文件 6833 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_antenna_status-members.html
文件 16212 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_auto_start_config.html
文件 7530 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_auto_start_config-members.html
文件 12527 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_auto_stop_config.html
文件 7186 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_auto_stop_config-members.html
文件 12687 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_block_permalock_mask.html
文件 7044 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_block_permalock_mask-members.html
文件 7276 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_diagnostic_report.html
文件 5919 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_diagnostic_report-members.html
文件 46963 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_feature_set.html
文件 896 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_feature_set.png
文件 14835 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_feature_set-members.html
文件 10347 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_filter_settings.html
文件 6537 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_filter_settings-members.html
文件 10348 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_gpi_config.html
文件 6474 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_gpi_config-members.html
文件 8427 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_gpi_event.html
文件 6147 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_gpi_event-members.html
文件 9423 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_gpi_status.html
文件 6467 2015-06-16 09:15 OctaneSDK_.NET_2_20_0\docs\class_impinj_1_1_octane_sdk_1_1_gpi_status-members.html
............此处省略760个文件信息
评论
共有 条评论