Init commit
This commit is contained in:
+400
@@ -0,0 +1,400 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
# but not Directory.Build.rsp, as it configures directory-level build defaults
|
||||||
|
!Directory.Build.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.tlog
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
|
||||||
|
*.vbp
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||||
|
*.dsw
|
||||||
|
*.dsp
|
||||||
|
|
||||||
|
# Visual Studio 6 technical files
|
||||||
|
*.ncb
|
||||||
|
*.aps
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# Visual Studio History (VSHistory) files
|
||||||
|
.vshistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# VS Code files for those working on multiple tools
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
|
||||||
|
# Windows Installer files from build outputs
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
*.sln.iml
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|d:\\work\\manlin\\verify\\prometheus\\1ks_ft_engineeringmachine\\userprogram_time\\testrong.user.program\\userprogram.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|solutionrelative:testrong.user.program\\userprogram.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\ProgramData\\Testrong\\ATE_Tester\\setting\\NLog.config||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\testrong.user.program\\keysight53220a.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|solutionrelative:testrong.user.program\\keysight53220a.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 2,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "NLog.config",
|
||||||
|
"DocumentMoniker": "C:\\ProgramData\\Testrong\\ATE_Tester\\setting\\NLog.config",
|
||||||
|
"ToolTip": "C:\\ProgramData\\Testrong\\ATE_Tester\\setting\\NLog.config",
|
||||||
|
"ViewState": "AQIAADgAAAAAzszMzMwgwE8AAAAjAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000601|",
|
||||||
|
"WhenOpened": "2024-07-10T10:20:55.074Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 2,
|
||||||
|
"Title": "Keysight53220A.cs",
|
||||||
|
"DocumentMoniker": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"RelativeDocumentMoniker": "Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"ToolTip": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"RelativeToolTip": "Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"ViewState": "AQIAAHMAAAAAAAAAAAAYwKkAAAAiAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-06-18T12:27:43.62Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "UserProgram.cs",
|
||||||
|
"DocumentMoniker": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\UserProgram.cs",
|
||||||
|
"RelativeDocumentMoniker": "Testrong.User.Program\\UserProgram.cs",
|
||||||
|
"ToolTip": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\UserProgram.cs",
|
||||||
|
"RelativeToolTip": "Testrong.User.Program\\UserProgram.cs",
|
||||||
|
"ViewState": "AgIAAP4IAAAAAAAAAAAowAcJAABWAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-06-18T12:27:43.78Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|d:\\work\\manlin\\verify\\prometheus\\1ks_ft_engineeringmachine\\userprogram_time\\testrong.user.program\\userprogram.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|solutionrelative:testrong.user.program\\userprogram.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\ProgramData\\Testrong\\ATE_Tester\\setting\\NLog.config||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\testrong.user.program\\keysight53220a.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E96B1A19-D109-4F67-B1AA-5BF15E580D77}|Testrong.User.Program\\Testrong.User.Program.csproj|solutionrelative:testrong.user.program\\keysight53220a.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 2,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "NLog.config",
|
||||||
|
"DocumentMoniker": "C:\\ProgramData\\Testrong\\ATE_Tester\\setting\\NLog.config",
|
||||||
|
"ToolTip": "C:\\ProgramData\\Testrong\\ATE_Tester\\setting\\NLog.config",
|
||||||
|
"ViewState": "AQIAADgAAAAAzszMzMwgwE8AAAAjAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000601|",
|
||||||
|
"WhenOpened": "2024-07-10T10:20:55.074Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 2,
|
||||||
|
"Title": "Keysight53220A.cs",
|
||||||
|
"DocumentMoniker": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"RelativeDocumentMoniker": "Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"ToolTip": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"RelativeToolTip": "Testrong.User.Program\\Keysight53220A.cs",
|
||||||
|
"ViewState": "AQIAAHMAAAAAAAAAAAAYwKkAAAAiAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-06-18T12:27:43.62Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "UserProgram.cs",
|
||||||
|
"DocumentMoniker": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\UserProgram.cs",
|
||||||
|
"RelativeDocumentMoniker": "Testrong.User.Program\\UserProgram.cs",
|
||||||
|
"ToolTip": "D:\\WORK\\ManLin\\Verify\\Prometheus\\1KS_FT_EngineeringMachine\\UserProgram_time\\Testrong.User.Program\\UserProgram.cs*",
|
||||||
|
"RelativeToolTip": "Testrong.User.Program\\UserProgram.cs*",
|
||||||
|
"ViewState": "AgIAAOADAAAAAAAAAAAQwPUDAAAYAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-06-18T12:27:43.78Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.30320.27
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testrong.User.Program", "Testrong.User.Program\Testrong.User.Program.csproj", "{E96B1A19-D109-4F67-B1AA-5BF15E580D77}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{E96B1A19-D109-4F67-B1AA-5BF15E580D77}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{E96B1A19-D109-4F67-B1AA-5BF15E580D77}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{E96B1A19-D109-4F67-B1AA-5BF15E580D77}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{E96B1A19-D109-4F67-B1AA-5BF15E580D77}.Release|x64.Build.0 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {8B475B7D-1471-4286-9D3E-FD4D6C3F9517}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -0,0 +1,284 @@
|
|||||||
|
#region 程序集 KeysightDMM3458A.Interop, Version=1.0.8622.37453, Culture=neutral, PublicKeyToken=null
|
||||||
|
// C:\Users\testrong\Desktop\EXT_CAL\SW1.2_55_calibration_RZ_0810\selfCalibration\Testrong.User.Program\Debug\KeysightDMM3458A.Interop.dll
|
||||||
|
// Decompiled with ICSharpCode.Decompiler 7.1.0.6543
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using Testrong.User.Program;
|
||||||
|
|
||||||
|
namespace Testrong.User.Program
|
||||||
|
{
|
||||||
|
public class Keysight53220A
|
||||||
|
{
|
||||||
|
public class Globals
|
||||||
|
{
|
||||||
|
public static int videfaultRM;
|
||||||
|
|
||||||
|
public static int vi;
|
||||||
|
|
||||||
|
public static int errorStatus;
|
||||||
|
|
||||||
|
public static bool connected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum KeysightMeasMode
|
||||||
|
{
|
||||||
|
FREQ,
|
||||||
|
INIT
|
||||||
|
}
|
||||||
|
|
||||||
|
// KeysightMeasMode PresentMode;
|
||||||
|
|
||||||
|
public bool InitDMM53220A(string address, KeysightMeasMode funcMode)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string text = address.ToUpper();
|
||||||
|
if (text.Length < 5)
|
||||||
|
{
|
||||||
|
Globals.connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Globals.connected)
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viClose(Globals.vi);
|
||||||
|
}
|
||||||
|
|
||||||
|
Globals.errorStatus = visa32.viOpenDefaultRM(out Globals.videfaultRM);
|
||||||
|
Globals.errorStatus = visa32.viOpen(Globals.videfaultRM, text, 0, 0, out Globals.vi);
|
||||||
|
if (Globals.errorStatus < 0)
|
||||||
|
{
|
||||||
|
Globals.connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
SendCmd("*IDN?");
|
||||||
|
if (GetData().IndexOf("53220A") < 0)
|
||||||
|
{
|
||||||
|
Globals.connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Globals.connected = true;
|
||||||
|
//PresentMode = KeysightMeasMode.INIT;
|
||||||
|
return Setup(funcMode);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public double GetDmm53220AMeasureData(int count = 1)
|
||||||
|
{
|
||||||
|
if (!Globals.connected)
|
||||||
|
{
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ReturnReadings();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//bool GlobalSetup = false;
|
||||||
|
|
||||||
|
private bool Setup(KeysightMeasMode funcMode)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
text += "*RST\n";
|
||||||
|
text += "*CLS\n";
|
||||||
|
text += "STAT:PRES\n";
|
||||||
|
text += "CONF:FREQ\n";
|
||||||
|
//switch (funcMode)
|
||||||
|
//{
|
||||||
|
// case KeysightMeasMode.FREQ:
|
||||||
|
// {
|
||||||
|
// //text += "TRIG:COUN 1\n";
|
||||||
|
// //text += "SAMP:COUN 10\n";
|
||||||
|
// //text += "INIT\n";
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// default:
|
||||||
|
// {
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
text += "INP:COUP DC\n";
|
||||||
|
//text += "INP:NREJ ON\n";
|
||||||
|
text += "INP:LEV 2\n";
|
||||||
|
text += "INP:SLOP NEG\n";
|
||||||
|
//text += "INP:LEV 10\n";
|
||||||
|
text += "SYST:BEEP:STAT OFF\n";
|
||||||
|
text += "FREQ:GATE:SOUR TIME\n";
|
||||||
|
text += "FREQ:GATE:TIME .0001\n";
|
||||||
|
text += "TRIG:SOUR BUS\n";
|
||||||
|
text += "TRIG:COUN 100000\n";
|
||||||
|
text += "SAMP:COUN 1\n";
|
||||||
|
//text += "INP:LEV:AUTO ON\n";
|
||||||
|
|
||||||
|
//text += "SAMP:COUN 2\n";
|
||||||
|
//text += "TRIG:DEL .01\n";
|
||||||
|
text += "INIT\n";
|
||||||
|
//GlobalSetup = true;
|
||||||
|
//PresentMode = funcMode;
|
||||||
|
return SendCmd(text);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
//return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private double ReturnReadings()
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
StringBuilder sb = new StringBuilder(2048);
|
||||||
|
int empty_count = 0;
|
||||||
|
int sleep_count = 0;
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
text = "R?";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
SendCmd(text);
|
||||||
|
Globals.errorStatus = visa32.viScanf(Globals.vi, "%2048T", sb);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return -2;
|
||||||
|
}
|
||||||
|
if (sb[0] != '#')
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
int meta_count = int.Parse(sb[1].ToString());
|
||||||
|
int byte_count = int.Parse(sb.ToString().Substring(2, meta_count));
|
||||||
|
if (byte_count > 0)
|
||||||
|
{
|
||||||
|
return double.Parse(sb.ToString().Substring(meta_count + 2));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
empty_count++;
|
||||||
|
}
|
||||||
|
if (empty_count >= 10)
|
||||||
|
{
|
||||||
|
Thread.Sleep(1000);
|
||||||
|
sleep_count++;
|
||||||
|
empty_count = 0;
|
||||||
|
}
|
||||||
|
if (sleep_count >= 5)
|
||||||
|
{
|
||||||
|
return -3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool SendCmd(string Cmds)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viPrintf(Globals.vi, Cmds + "\n");
|
||||||
|
if (Globals.errorStatus < 0)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool CloseDMM53220A()
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viClose(Globals.vi);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetData()
|
||||||
|
{
|
||||||
|
StringBuilder stringBuilder = new StringBuilder(2048);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viScanf(Globals.vi, "%2048T", stringBuilder);
|
||||||
|
if (Globals.errorStatus < 0)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return stringBuilder.ToString().Remove(stringBuilder.ToString().Length - 1, 1);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool InitMeasure()
|
||||||
|
{
|
||||||
|
return SendCmd("*TRG\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool ChangeLevel(string level)
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
text += "*RST\n";
|
||||||
|
text += "*CLS\n";
|
||||||
|
text += "STAT:PRES\n";
|
||||||
|
text += "CONF:FREQ\n";
|
||||||
|
//switch (funcMode)
|
||||||
|
//{
|
||||||
|
// case KeysightMeasMode.FREQ:
|
||||||
|
// {
|
||||||
|
// //text += "TRIG:COUN 1\n";
|
||||||
|
// //text += "SAMP:COUN 10\n";
|
||||||
|
// //text += "INIT\n";
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// default:
|
||||||
|
// {
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
text += "INP:COUP DC\n";
|
||||||
|
//text += "INP:NREJ ON\n";
|
||||||
|
text += "INP:LEV "+ level + "\n";
|
||||||
|
text += "INP:SLOP NEG\n";
|
||||||
|
//text += "INP:LEV 10\n";
|
||||||
|
text += "SYST:BEEP:STAT OFF\n";
|
||||||
|
text += "FREQ:GATE:SOUR TIME\n";
|
||||||
|
text += "FREQ:GATE:TIME .0001\n";
|
||||||
|
text += "TRIG:SOUR BUS\n";
|
||||||
|
text += "TRIG:COUN 100000\n";
|
||||||
|
text += "SAMP:COUN 1\n";
|
||||||
|
//text += "INP:LEV:AUTO ON\n";
|
||||||
|
|
||||||
|
//text += "SAMP:COUN 2\n";
|
||||||
|
//text += "TRIG:DEL .01\n";
|
||||||
|
text += "INIT\n";
|
||||||
|
//GlobalSetup = true;
|
||||||
|
//PresentMode = funcMode;
|
||||||
|
return SendCmd(text);
|
||||||
|
//return SendCmd("INP:LEV " + level + "\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#if false // 反编译日志
|
||||||
|
缓存中的 23 项
|
||||||
|
------------------
|
||||||
|
解析: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||||
|
找到单个程序集: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||||
|
从以下位置加载: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll"
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,214 @@
|
|||||||
|
#region 程序集 KeysightDMM3458A.Interop, Version=1.0.8622.37453, Culture=neutral, PublicKeyToken=null
|
||||||
|
// C:\Users\testrong\Desktop\EXT_CAL\SW1.2_55_calibration_RZ_0810\selfCalibration\Testrong.User.Program\Debug\KeysightDMM3458A.Interop.dll
|
||||||
|
// Decompiled with ICSharpCode.Decompiler 7.1.0.6543
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using Testrong.User.Program;
|
||||||
|
|
||||||
|
namespace Testrong.User.Program
|
||||||
|
{
|
||||||
|
public class KeysightDMM3458A
|
||||||
|
{
|
||||||
|
public class Globals
|
||||||
|
{
|
||||||
|
public static int videfaultRM;
|
||||||
|
|
||||||
|
public static int vi;
|
||||||
|
|
||||||
|
public static int errorStatus;
|
||||||
|
|
||||||
|
public static bool connected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum KeysightMeasMode
|
||||||
|
{
|
||||||
|
VOLT,
|
||||||
|
CURR,
|
||||||
|
RES,
|
||||||
|
INIT
|
||||||
|
}
|
||||||
|
|
||||||
|
KeysightMeasMode PresentMode;
|
||||||
|
double PresentRange;
|
||||||
|
|
||||||
|
public bool InitDMM(string address)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string text = address.ToUpper();
|
||||||
|
if (text.Length < 5)
|
||||||
|
{
|
||||||
|
Globals.connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Globals.connected)
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viClose(Globals.vi);
|
||||||
|
}
|
||||||
|
|
||||||
|
Globals.errorStatus = visa32.viOpenDefaultRM(out Globals.videfaultRM);
|
||||||
|
Globals.errorStatus = visa32.viOpen(Globals.videfaultRM, text, 0, 0, out Globals.vi);
|
||||||
|
if (Globals.errorStatus < 0)
|
||||||
|
{
|
||||||
|
Globals.connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Globals.errorStatus = visa32.viSetAttribute(Globals.vi, 1073676312, 13);
|
||||||
|
Globals.errorStatus = visa32.viSetAttribute(Globals.vi, 1073676344, 1);
|
||||||
|
Globals.errorStatus = visa32.viSetAttribute(Globals.vi, 1073676314, 2000);
|
||||||
|
SendCmd("ID?");
|
||||||
|
if (GetData().IndexOf("3458A") < 0)
|
||||||
|
{
|
||||||
|
Globals.connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Globals.connected = true;
|
||||||
|
PresentMode = KeysightMeasMode.INIT;
|
||||||
|
PresentRange = 0;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public double GetDmmMeasureData(KeysightMeasMode funcMode, int count = 1, double range = 0)
|
||||||
|
{
|
||||||
|
if (!Globals.connected)
|
||||||
|
{
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Setup(count, funcMode, range))
|
||||||
|
{
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ReturnReadings(funcMode, range);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GlobalSetup = false;
|
||||||
|
|
||||||
|
private bool Setup(int count, KeysightMeasMode funcMode, double range)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (GlobalSetup == false || PresentMode != funcMode || PresentRange != range)
|
||||||
|
{
|
||||||
|
string text = "PRESET NORM;";
|
||||||
|
text = text + "NRDGS" + count + ",AUTO;";
|
||||||
|
text += "MEM LIFO;";
|
||||||
|
text += "MFORMAT DREAL;";
|
||||||
|
text += "OFORMAT ASCII;";
|
||||||
|
text += "MATH STAT;";
|
||||||
|
text += "AZERO OFF;";
|
||||||
|
text += "ARANGE ONCE;";
|
||||||
|
switch (funcMode)
|
||||||
|
{
|
||||||
|
case KeysightMeasMode.VOLT:
|
||||||
|
{
|
||||||
|
text += $"DCV {range:F8};";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case KeysightMeasMode.CURR:
|
||||||
|
{
|
||||||
|
text += $"DCI {range:F8};";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case KeysightMeasMode.RES:
|
||||||
|
{
|
||||||
|
text += $"OHM {range:F8};";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
text += "NPLC 20;";
|
||||||
|
//text += "NPLC 0.05;";
|
||||||
|
text += "TARM AUTO;";
|
||||||
|
text += "TRIG AUTO;";
|
||||||
|
text += "BEEP OFF;";
|
||||||
|
text += "DISP OFF;";
|
||||||
|
GlobalSetup = true;
|
||||||
|
PresentMode = funcMode;
|
||||||
|
PresentRange = range;
|
||||||
|
return SendCmd(text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
private double ReturnReadings(KeysightMeasMode funcMode, double range = 0)
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viSetAttribute(Globals.vi, 1073676314, 2000);
|
||||||
|
Globals.errorStatus = visa32.viScanf(Globals.vi, "%lf", out double arg);//get dmm vaue
|
||||||
|
return arg;
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool SendCmd(string Cmds)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viPrintf(Globals.vi, Cmds + "\n");
|
||||||
|
//Thread.Sleep(5000);
|
||||||
|
if (Globals.errorStatus < 0)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetData()
|
||||||
|
{
|
||||||
|
StringBuilder stringBuilder = new StringBuilder(2048);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Globals.errorStatus = visa32.viScanf(Globals.vi, "%2048t", stringBuilder);
|
||||||
|
if (Globals.errorStatus < 0)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return stringBuilder.ToString().Remove(stringBuilder.ToString().Length - 1, 1);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#if false // 反编译日志
|
||||||
|
缓存中的 23 项
|
||||||
|
------------------
|
||||||
|
解析: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||||
|
找到单个程序集: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||||
|
从以下位置加载: "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\mscorlib.dll"
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,222 @@
|
|||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using NationalInstruments.Visa;
|
||||||
|
using Ivi.Visa;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using Testrong.Core.Primitives.TestrongSystem.Obsolete;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace Testrong.User.Program
|
||||||
|
{
|
||||||
|
public class NiVisaComms
|
||||||
|
{
|
||||||
|
public enum Dmm3458AMeasureMode
|
||||||
|
{
|
||||||
|
VOLT,
|
||||||
|
CURR,
|
||||||
|
RES,
|
||||||
|
INIT,
|
||||||
|
STBY
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private ResourceManager rm;
|
||||||
|
private MessageBasedSession mbs;
|
||||||
|
public string exceptionTrace;
|
||||||
|
private bool connected;
|
||||||
|
private bool isSetup;
|
||||||
|
private Dmm3458AMeasureMode currentMode;
|
||||||
|
public NiVisaComms()
|
||||||
|
{
|
||||||
|
exceptionTrace = string.Empty;
|
||||||
|
connected = false;
|
||||||
|
isSetup = false;
|
||||||
|
currentMode = Dmm3458AMeasureMode.STBY;
|
||||||
|
}
|
||||||
|
public bool Init(string deviceAddress)
|
||||||
|
{
|
||||||
|
ResourceOpenStatus deviceStatus;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
rm = new ResourceManager();
|
||||||
|
mbs = (MessageBasedSession)rm.Open(deviceAddress, AccessModes.None, 1000, out deviceStatus);
|
||||||
|
mbs.TerminationCharacterEnabled = true;
|
||||||
|
currentMode = Dmm3458AMeasureMode.INIT;
|
||||||
|
if (deviceStatus == ResourceOpenStatus.Success)
|
||||||
|
{
|
||||||
|
mbs.FormattedIO.WriteLine("ID?");
|
||||||
|
string deviceID = mbs.FormattedIO.ReadLine();
|
||||||
|
if (deviceID.IndexOf("3458A") < 0)
|
||||||
|
{
|
||||||
|
connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
connected = true;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
exceptionTrace = ex.StackTrace;
|
||||||
|
connected = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public bool Setup(Dmm3458AMeasureMode mode, double range = -1, double nplc = 0.04)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (!connected || currentMode == Dmm3458AMeasureMode.STBY)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (currentMode == Dmm3458AMeasureMode.INIT || currentMode != mode)
|
||||||
|
{
|
||||||
|
string measComm;
|
||||||
|
string nplcSet = $"NPLC {nplc:F2}";
|
||||||
|
switch (mode)
|
||||||
|
{
|
||||||
|
case Dmm3458AMeasureMode.VOLT:
|
||||||
|
{
|
||||||
|
measComm = $"DCV,{range:F2}";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case Dmm3458AMeasureMode.CURR:
|
||||||
|
{
|
||||||
|
measComm = $"DCI,{range:F2}";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case Dmm3458AMeasureMode.RES:
|
||||||
|
{
|
||||||
|
measComm = $"OHM,{range:F2}";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mbs.FormattedIO.WriteLine("PRESET NORM");
|
||||||
|
mbs.FormattedIO.WriteLine("DISP OFF");
|
||||||
|
mbs.FormattedIO.WriteLine("BEEP OFF");
|
||||||
|
mbs.FormattedIO.WriteLine("TARM AUTO");
|
||||||
|
mbs.FormattedIO.WriteLine("TRIG HOLD");
|
||||||
|
mbs.FormattedIO.WriteLine("NRDGS 1,AUTO");
|
||||||
|
mbs.FormattedIO.WriteLine("MFORMAT DREAL");
|
||||||
|
mbs.FormattedIO.WriteLine("OFORMAT DREAL");
|
||||||
|
mbs.FormattedIO.WriteLine("MEM FIFO");
|
||||||
|
//mbs.FormattedIO.WriteLine("NPLC 0.04");
|
||||||
|
mbs.FormattedIO.WriteLine(nplcSet);
|
||||||
|
mbs.FormattedIO.WriteLine(measComm);
|
||||||
|
mbs.FormattedIO.WriteLine("AZERO OFF");
|
||||||
|
mbs.FormattedIO.WriteLine("ARANGE OFF");
|
||||||
|
mbs.FormattedIO.WriteLine("END ALWAYS");
|
||||||
|
}
|
||||||
|
isSetup = true;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
exceptionTrace = e.StackTrace;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public bool TriggerSingleMeasure()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
mbs.FormattedIO.WriteLine("TRIG SGL");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
exceptionTrace = e.StackTrace;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public double SingleRead()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
byte[] readOut = mbs.RawIO.Read(8);
|
||||||
|
Array.Reverse(readOut);
|
||||||
|
double value = BitConverter.ToDouble(readOut, 0);
|
||||||
|
//double value = mbs.FormattedIO.ReadDouble();
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
exceptionTrace = e.StackTrace;
|
||||||
|
return double.MinValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public double[] MultiRead(int count)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
double[] ans = new double[count];
|
||||||
|
mbs.FormattedIO.WriteLine("MCOUNT?");
|
||||||
|
int mCount = int.Parse(mbs.FormattedIO.ReadLine());
|
||||||
|
if (mCount < count)
|
||||||
|
{
|
||||||
|
count = mCount;
|
||||||
|
}
|
||||||
|
TimeSpan readDelay = new TimeSpan(20000); // 1ms
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
//ans[i] = mbs.FormattedIO.ReadDouble();
|
||||||
|
byte[] readOut = mbs.RawIO.Read(8);
|
||||||
|
while (readOut.Length < 8)
|
||||||
|
{
|
||||||
|
int readLength = 8 - readOut.Length;
|
||||||
|
byte[] nextRead = mbs.RawIO.Read(readLength);
|
||||||
|
readOut = readOut.Concat(nextRead).ToArray();
|
||||||
|
}
|
||||||
|
Array.Reverse(readOut);
|
||||||
|
ans[i] = BitConverter.ToDouble(readOut, 0);
|
||||||
|
//Thread.Sleep(1);
|
||||||
|
}
|
||||||
|
return ans;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
exceptionTrace = e.StackTrace;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public bool ClearReadingMemory()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
mbs.FormattedIO.WriteLine("TRIG HOLD");
|
||||||
|
mbs.FormattedIO.WriteLine("MEM FIFO");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
exceptionTrace = e.StackTrace;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public bool ResetInstrument()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
mbs.FormattedIO.WriteLine("RESET");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
exceptionTrace = e.StackTrace;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// 有关程序集的一般信息由以下
|
||||||
|
// 控制。更改这些特性值可修改
|
||||||
|
// 与程序集关联的信息。
|
||||||
|
[assembly: AssemblyTitle("SPI")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("SPI")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||||
|
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||||
|
//请将此类型的 ComVisible 特性设置为 true。
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||||
|
[assembly: Guid("8b7c8372-10f2-4df5-950a-6c1ec9cfb6f3")]
|
||||||
|
|
||||||
|
// 程序集的版本信息由下列四个值组成:
|
||||||
|
//
|
||||||
|
// 主版本
|
||||||
|
// 次版本
|
||||||
|
// 生成号
|
||||||
|
// 修订号
|
||||||
|
//
|
||||||
|
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||||
|
//通过使用 "*",如下所示:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
#region 程序集 KeysightDMM3458A.Interop, Version=1.0.8622.37453, Culture=neutral, PublicKeyToken=null
|
||||||
|
// C:\Users\testrong\Desktop\EXT_CAL\SW1.2_55_calibration_RZ_0810\selfCalibration\Testrong.User.Program\Debug\KeysightDMM3458A.Interop.dll
|
||||||
|
// Decompiled with ICSharpCode.Decompiler 7.1.0.6543
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading;
|
||||||
|
using ExternalCalibration;
|
||||||
|
using ExternalCalibration.Bussines;
|
||||||
|
using Testrong.Core.Communicate.Tftp;
|
||||||
|
|
||||||
|
namespace Testrong.User.Program
|
||||||
|
{
|
||||||
|
public enum ReadType
|
||||||
|
{
|
||||||
|
InitValue
|
||||||
|
}
|
||||||
|
public class ReadTftp
|
||||||
|
{
|
||||||
|
|
||||||
|
public bool DownloadFile(string ip, string downloadpath, ReadType fileType)
|
||||||
|
{
|
||||||
|
string text = "";
|
||||||
|
if (fileType == ReadType.InitValue)
|
||||||
|
{
|
||||||
|
text = "InitValue";
|
||||||
|
}
|
||||||
|
TftpClientChannel val = new TftpClientChannel(ip);
|
||||||
|
val.Download(text, downloadpath, (TftpTransferMode)0, default(CancellationToken));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetDnaNumber(List<byte> data)
|
||||||
|
{
|
||||||
|
if (data == null || data.Count == 0)
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
data.Reverse();
|
||||||
|
return BitConverter.ToUInt64(data.ToArray(), 0).ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
|
||||||
|
<ProjectGuid>{E96B1A19-D109-4F67-B1AA-5BF15E580D77}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Testrong.User.Program</RootNamespace>
|
||||||
|
<AssemblyName>UserProgram</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<LangVersion>7.3</LangVersion>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<LangVersion>7.3</LangVersion>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="ExternalCalibration, Version=1.0.0.0, Culture=neutral, processorArchitecture=AMD64">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>bin\x64\Debug\ExternalCalibration.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Ivi.Visa, Version=7.2.0.0, Culture=neutral, PublicKeyToken=a128c98f1d7717c1, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files\Testrong\ATE_Tester\Ivi.Visa.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="NationalInstruments.Visa, Version=24.5.0.49303, Culture=neutral, PublicKeyToken=2eaa5af0834e221d, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files\Testrong\ATE_Tester\NationalInstruments.Visa.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>bin\x64\Debug\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="Testrong.Core.Common">
|
||||||
|
<HintPath>C:\Program Files\Testrong\ATE_Tester\Testrong.Core.Common.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Testrong.Core.Communicate">
|
||||||
|
<HintPath>C:\Program Files\Testrong\ATE_Tester\Testrong.Core.Communicate.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Testrong.Core.Model">
|
||||||
|
<HintPath>C:\Program Files\Testrong\ATE_Tester\Testrong.Core.Model.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Testrong.Core.Primitives">
|
||||||
|
<HintPath>C:\Program Files\Testrong\ATE_Tester\Testrong.Core.Primitives.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Keysight53220A.cs" />
|
||||||
|
<Compile Include="KeysightDMM3458A.cs" />
|
||||||
|
<Compile Include="NiVisaComms.cs" />
|
||||||
|
<Compile Include="ReadTftp.cs" />
|
||||||
|
<Compile Include="UserProgram.cs" />
|
||||||
|
<Compile Include="Visa32.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<PostBuildEvent>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,720 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
namespace Testrong.User.Program
|
||||||
|
{
|
||||||
|
|
||||||
|
internal sealed class visa32
|
||||||
|
{
|
||||||
|
// --------------------------------------------------------------------------------
|
||||||
|
// Adapted from visa32.bas which was distributed by VXIplug&play Systems Alliance
|
||||||
|
// Distributed By Agilent Technologies, Inc.
|
||||||
|
// --------------------------------------------------------------------------------
|
||||||
|
// Title : visa32.cs
|
||||||
|
// Date : 09-29-2003
|
||||||
|
// Purpose : VISA definitions for C#
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
public const int VI_SPEC_VERSION = 3145728;
|
||||||
|
|
||||||
|
|
||||||
|
#region - Resource Template Functions and Operations ----------------------------
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#141", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viOpenDefaultRM(out int sesn);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#128", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGetDefaultRM(out int sesn);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#129", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viFindRsrc(int sesn, string expr, out int vi, out int retCount, StringBuilder desc);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#130", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viFindNext(int vi, StringBuilder desc);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#146", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viParseRsrc(int sesn, string desc, ref short intfType, ref short intfNum);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#147", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viParseRsrcEx(int sesn, string desc, ref short intfType, ref short intfNum, StringBuilder rsrcClass, StringBuilder expandedUnaliasedName, StringBuilder aliasIfExists);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#131", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viOpen(int sesn, string viDesc, int mode, int timeout, out int vi);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#132", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viClose(int vi);
|
||||||
|
|
||||||
|
#region viGetAttribute Overloads
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#133", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGetAttribute(int vi, int attrName, out byte attrValue);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#133", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGetAttribute(int vi, int attrName, out short attrValue);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#133", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGetAttribute(int vi, int attrName, out int attrValue);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#133", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGetAttribute(int vi, int attrName, StringBuilder attrValue);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region viSetAttribute Overloads
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#134", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viSetAttribute(int vi, int attrName, byte attrValue);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#134", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viSetAttribute(int vi, int attrName, short attrValue);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#134", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viSetAttribute(int vi, int attrName, int attrValue);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#142", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viStatusDesc(int vi, int status, StringBuilder desc);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#143", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viTerminate(int vi, short degree, int jobId);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#144", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viLock(int vi, int lockType, int timeout, string requestedKey, StringBuilder accessKey);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#145", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viUnlock(int vi);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#135", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viEnableEvent(int vi, int eventType, short mechanism, int context);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#136", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viDisableEvent(int vi, int eventType, short mechanism);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#137", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viDiscardEvents(int vi, int eventType, short mechanism);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#138", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viWaitOnEvent(int vi, int inEventType, int timeout, ref int outEventType, ref int outEventContext);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Basic I/O Operations --------------------------------------------------
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#256", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viRead(int vi, byte[] buffer, int count, out int retCount);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#277", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viReadAsync(int vi, byte[] buffer, int count, out int jobId);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#219", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viReadToFile(int vi, string filename, int count, ref int retCount);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#257", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viWrite(int vi, byte[] buffer, int count, out int retCount);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#278", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viWriteAsync(int vi, byte[] buffer, int count, out int jobId);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#218", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viWriteFromFile(int vi, string filename, int count, ref int retCount);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#258", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viAssertTrigger(int vi, short protocol);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#259", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viReadSTB(int vi, ref short status);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#260", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viClear(int vi);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Formatted and Buffered I/O Operations ---------------------------------
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#267", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viSetBuf(int vi, short mask, int bufSize);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#268", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viFlush(int vi, short mask);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#202", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viBufWrite(int vi, byte[] buffer, int count, out int retCount);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#203", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viBufRead(int vi, byte[] buffer, int count, out int retCount);
|
||||||
|
|
||||||
|
#region viPrintf Overloads
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, int[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, short[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, float[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, double[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, byte[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, string arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, int arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, short arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, float arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, double arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#269", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viPrintf(int vi, string writeFmt, byte arg);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region viSPrintf Overloads
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, int[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, short[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, float[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, double[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, byte[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, string arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, int arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, short arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, float arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, double arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#204", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSPrintf(int vi, StringBuilder buffer, string writeFmt, byte arg);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region viScanf Overloads
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, int[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, short[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, float[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, double[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, byte[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, ref int count, int[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, ref int count, short[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, ref int count, float[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, ref int count, double[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, ref int count, byte[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, StringBuilder arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, ref int stringSize, StringBuilder arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, out int arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, out short arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, out float arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, out double arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#271", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viScanf(int vi, string readFmt, out byte arg);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region viSScanf Overloads
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, int[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, short[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, float[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, double[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, byte[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, ref int count, int[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, ref int count, short[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, ref int count, float[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, ref int count, double[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, ref int count, byte[] arr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, StringBuilder arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, ref int stringSize, StringBuilder arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, out int arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, out short arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, out float arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, out double arg);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#206", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int viSScanf(int vi, string buffer, string readFmt, out byte arg);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Memory I/O Operations -------------------------------------------------
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#273", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viIn8(int vi, short accSpace, int offset, out byte val8);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#274", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viOut8(int vi, short accSpace, int offset, byte val8);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#261", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viIn16(int vi, short accSpace, int offset, out short val16);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#262", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viOut16(int vi, short accSpace, int offset, short val16);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#281", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viIn32(int vi, short accSpace, int offset, out int val32);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#282", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viOut32(int vi, short accSpace, int offset, int val32);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#283", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveIn8(int vi, short accSpace, int offset, int length, byte[] buf8);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#284", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveOut8(int vi, short accSpace, int offset, int length, byte[] buf8);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#285", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveIn16(int vi, short accSpace, int offset, int length, short[] buf16);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#286", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveOut16(int vi, short accSpace, int offset, int length, short[] buf16);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#287", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveIn32(int vi, short accSpace, int offset, int length, int[] buf32);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#288", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveOut32(int vi, short accSpace, int offset, int length, int[] buf32);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#200", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMove(int vi, short srcSpace, int srcOffset, short srcWidth, short destSpace, int destOffset, short destWidth, int srcLength);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#201", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMoveAsync(int vi, short srcSpace, int srcOffset, short srcWidth, short destSpace, int destOffset, short destWidth, int srcLength, out int jobId);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#263", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMapAddress(int vi, short mapSpace, int mapOffset, int mapSize, short accMode, int suggested, out int address);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#264", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viUnmapAddress(int vi);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#275", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern void viPeek8(int vi, int address, out byte val8);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#276", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern void viPoke8(int vi, int address, byte val8);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#265", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern void viPeek16(int vi, int address, out short val16);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#266", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern void viPoke16(int vi, int address, short val16);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#289", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern void viPeek32(int vi, int address, out int val32);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#290", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern void viPoke32(int vi, int address, int val32);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Shared Memory Operations ----------------------------------------------
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#291", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMemAlloc(int vi, int memSize, out int offset);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#292", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMemFree(int vi, int offset);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Interface Specific Operations -----------------------------------------
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#208", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGpibControlREN(int vi, short mode);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#210", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGpibControlATN(int vi, short mode);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#211", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGpibSendIFC(int vi);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#212", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGpibCommand(int vi, string buffer, int count, out int retCount);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#213", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viGpibPassControl(int vi, short primAddr, short secAddr);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#209", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viVxiCommandQuery(int vi, short mode, int devCmd, out int devResponse);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#214", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viAssertUtilSignal(int vi, short line);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#215", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viAssertIntrSignal(int vi, short mode, int statusID);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#216", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viMapTrigger(int vi, short trigSrc, short trigDest, short mode);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#217", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viUnmapTrigger(int vi, short trigSrc, short trigDest);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#293", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viUsbControlOut(int vi, short bmRequestType, short bRequest, short wValue, short wIndex, short wLength, byte[] buf);
|
||||||
|
[DllImportAttribute("VISA32.DLL", EntryPoint = "#294", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
|
||||||
|
public static extern int viUsbControlIn(int vi, short bmRequestType, short bRequest, short wValue, short wIndex, short wLength, byte[] buf, out short retCnt);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Constants -------------------------------------------------------------
|
||||||
|
|
||||||
|
#region - Attributes ------------------------------------------------------------
|
||||||
|
public const int VI_ATTR_RSRC_CLASS = -1073807359;
|
||||||
|
public const int VI_ATTR_RSRC_NAME = -1073807358;
|
||||||
|
public const int VI_ATTR_RSRC_IMPL_VERSION = 1073676291;
|
||||||
|
public const int VI_ATTR_RSRC_LOCK_STATE = 1073676292;
|
||||||
|
public const int VI_ATTR_MAX_QUEUE_LENGTH = 1073676293;
|
||||||
|
public const int VI_ATTR_USER_DATA = 1073676295;
|
||||||
|
public const int VI_ATTR_FDC_CHNL = 1073676301;
|
||||||
|
public const int VI_ATTR_FDC_MODE = 1073676303;
|
||||||
|
public const int VI_ATTR_FDC_GEN_SIGNAL_EN = 1073676305;
|
||||||
|
public const int VI_ATTR_FDC_USE_PAIR = 1073676307;
|
||||||
|
public const int VI_ATTR_SEND_END_EN = 1073676310;
|
||||||
|
public const int VI_ATTR_TERMCHAR = 1073676312;
|
||||||
|
public const int VI_ATTR_TMO_VALUE = 1073676314;
|
||||||
|
public const int VI_ATTR_GPIB_READDR_EN = 1073676315;
|
||||||
|
public const int VI_ATTR_IO_PROT = 1073676316;
|
||||||
|
public const int VI_ATTR_DMA_ALLOW_EN = 1073676318;
|
||||||
|
public const int VI_ATTR_ASRL_BAUD = 1073676321;
|
||||||
|
public const int VI_ATTR_ASRL_DATA_BITS = 1073676322;
|
||||||
|
public const int VI_ATTR_ASRL_PARITY = 1073676323;
|
||||||
|
public const int VI_ATTR_ASRL_STOP_BITS = 1073676324;
|
||||||
|
public const int VI_ATTR_ASRL_FLOW_CNTRL = 1073676325;
|
||||||
|
public const int VI_ATTR_RD_BUF_OPER_MODE = 1073676330;
|
||||||
|
public const int VI_ATTR_RD_BUF_SIZE = 1073676331;
|
||||||
|
public const int VI_ATTR_WR_BUF_OPER_MODE = 1073676333;
|
||||||
|
public const int VI_ATTR_WR_BUF_SIZE = 1073676334;
|
||||||
|
public const int VI_ATTR_SUPPRESS_END_EN = 1073676342;
|
||||||
|
public const int VI_ATTR_TERMCHAR_EN = 1073676344;
|
||||||
|
public const int VI_ATTR_DEST_ACCESS_PRIV = 1073676345;
|
||||||
|
public const int VI_ATTR_DEST_BYTE_ORDER = 1073676346;
|
||||||
|
public const int VI_ATTR_SRC_ACCESS_PRIV = 1073676348;
|
||||||
|
public const int VI_ATTR_SRC_BYTE_ORDER = 1073676349;
|
||||||
|
public const int VI_ATTR_SRC_INCREMENT = 1073676352;
|
||||||
|
public const int VI_ATTR_DEST_INCREMENT = 1073676353;
|
||||||
|
public const int VI_ATTR_WIN_ACCESS_PRIV = 1073676357;
|
||||||
|
public const int VI_ATTR_WIN_BYTE_ORDER = 1073676359;
|
||||||
|
public const int VI_ATTR_GPIB_ATN_STATE = 1073676375;
|
||||||
|
public const int VI_ATTR_GPIB_ADDR_STATE = 1073676380;
|
||||||
|
public const int VI_ATTR_GPIB_CIC_STATE = 1073676382;
|
||||||
|
public const int VI_ATTR_GPIB_NDAC_STATE = 1073676386;
|
||||||
|
public const int VI_ATTR_GPIB_SRQ_STATE = 1073676391;
|
||||||
|
public const int VI_ATTR_GPIB_SYS_CNTRL_STATE = 1073676392;
|
||||||
|
public const int VI_ATTR_GPIB_HS488_CBL_LEN = 1073676393;
|
||||||
|
public const int VI_ATTR_CMDR_LA = 1073676395;
|
||||||
|
public const int VI_ATTR_VXI_DEV_CLASS = 1073676396;
|
||||||
|
public const int VI_ATTR_MAINFRAME_LA = 1073676400;
|
||||||
|
public const int VI_ATTR_MANF_NAME = -1073807246;
|
||||||
|
public const int VI_ATTR_MODEL_NAME = -1073807241;
|
||||||
|
public const int VI_ATTR_VXI_VME_INTR_STATUS = 1073676427;
|
||||||
|
public const int VI_ATTR_VXI_TRIG_STATUS = 1073676429;
|
||||||
|
public const int VI_ATTR_VXI_VME_SYSFAIL_STATE = 1073676436;
|
||||||
|
public const int VI_ATTR_WIN_BASE_ADDR = 1073676440;
|
||||||
|
public const int VI_ATTR_WIN_SIZE = 1073676442;
|
||||||
|
public const int VI_ATTR_ASRL_AVAIL_NUM = 1073676460;
|
||||||
|
public const int VI_ATTR_MEM_BASE = 1073676461;
|
||||||
|
public const int VI_ATTR_ASRL_CTS_STATE = 1073676462;
|
||||||
|
public const int VI_ATTR_ASRL_DCD_STATE = 1073676463;
|
||||||
|
public const int VI_ATTR_ASRL_DSR_STATE = 1073676465;
|
||||||
|
public const int VI_ATTR_ASRL_DTR_STATE = 1073676466;
|
||||||
|
public const int VI_ATTR_ASRL_END_IN = 1073676467;
|
||||||
|
public const int VI_ATTR_ASRL_END_OUT = 1073676468;
|
||||||
|
public const int VI_ATTR_ASRL_REPLACE_CHAR = 1073676478;
|
||||||
|
public const int VI_ATTR_ASRL_RI_STATE = 1073676479;
|
||||||
|
public const int VI_ATTR_ASRL_RTS_STATE = 1073676480;
|
||||||
|
public const int VI_ATTR_ASRL_XON_CHAR = 1073676481;
|
||||||
|
public const int VI_ATTR_ASRL_XOFF_CHAR = 1073676482;
|
||||||
|
public const int VI_ATTR_WIN_ACCESS = 1073676483;
|
||||||
|
public const int VI_ATTR_RM_SESSION = 1073676484;
|
||||||
|
public const int VI_ATTR_VXI_LA = 1073676501;
|
||||||
|
public const int VI_ATTR_MANF_ID = 1073676505;
|
||||||
|
public const int VI_ATTR_MEM_SIZE = 1073676509;
|
||||||
|
public const int VI_ATTR_MEM_SPACE = 1073676510;
|
||||||
|
public const int VI_ATTR_MODEL_CODE = 1073676511;
|
||||||
|
public const int VI_ATTR_SLOT = 1073676520;
|
||||||
|
public const int VI_ATTR_INTF_INST_NAME = -1073807127;
|
||||||
|
public const int VI_ATTR_IMMEDIATE_SERV = 1073676544;
|
||||||
|
public const int VI_ATTR_INTF_PARENT_NUM = 1073676545;
|
||||||
|
public const int VI_ATTR_RSRC_SPEC_VERSION = 1073676656;
|
||||||
|
public const int VI_ATTR_INTF_TYPE = 1073676657;
|
||||||
|
public const int VI_ATTR_GPIB_PRIMARY_ADDR = 1073676658;
|
||||||
|
public const int VI_ATTR_GPIB_SECONDARY_ADDR = 1073676659;
|
||||||
|
public const int VI_ATTR_RSRC_MANF_NAME = -1073806988;
|
||||||
|
public const int VI_ATTR_RSRC_MANF_ID = 1073676661;
|
||||||
|
public const int VI_ATTR_INTF_NUM = 1073676662;
|
||||||
|
public const int VI_ATTR_TRIG_ID = 1073676663;
|
||||||
|
public const int VI_ATTR_GPIB_REN_STATE = 1073676673;
|
||||||
|
public const int VI_ATTR_GPIB_UNADDR_EN = 1073676676;
|
||||||
|
public const int VI_ATTR_DEV_STATUS_BYTE = 1073676681;
|
||||||
|
public const int VI_ATTR_FILE_APPEND_EN = 1073676690;
|
||||||
|
public const int VI_ATTR_VXI_TRIG_SUPPORT = 1073676692;
|
||||||
|
public const int VI_ATTR_TCPIP_ADDR = -1073806955;
|
||||||
|
public const int VI_ATTR_TCPIP_HOSTNAME = -1073806954;
|
||||||
|
public const int VI_ATTR_TCPIP_PORT = 1073676695;
|
||||||
|
public const int VI_ATTR_TCPIP_DEVICE_NAME = -1073806951;
|
||||||
|
public const int VI_ATTR_TCPIP_NODELAY = 1073676698;
|
||||||
|
public const int VI_ATTR_TCPIP_KEEPALIVE = 1073676699;
|
||||||
|
public const int VI_ATTR_4882_COMPLIANT = 1073676703;
|
||||||
|
public const int VI_ATTR_USB_SERIAL_NUM = -1073806944;
|
||||||
|
public const int VI_ATTR_USB_INTFC_NUM = 1073676705;
|
||||||
|
public const int VI_ATTR_USB_PROTOCOL = 1073676711;
|
||||||
|
public const int VI_ATTR_USB_MAX_INTR_SIZE = 1073676719;
|
||||||
|
public const int VI_ATTR_JOB_ID = 1073692678;
|
||||||
|
public const int VI_ATTR_EVENT_TYPE = 1073692688;
|
||||||
|
public const int VI_ATTR_SIGP_STATUS_ID = 1073692689;
|
||||||
|
public const int VI_ATTR_RECV_TRIG_ID = 1073692690;
|
||||||
|
public const int VI_ATTR_INTR_STATUS_ID = 1073692707;
|
||||||
|
public const int VI_ATTR_STATUS = 1073692709;
|
||||||
|
public const int VI_ATTR_RET_COUNT = 1073692710;
|
||||||
|
public const int VI_ATTR_BUFFER = 1073692711;
|
||||||
|
public const int VI_ATTR_RECV_INTR_LEVEL = 1073692737;
|
||||||
|
public const int VI_ATTR_OPER_NAME = -1073790910;
|
||||||
|
public const int VI_ATTR_GPIB_RECV_CIC_STATE = 1073693075;
|
||||||
|
public const int VI_ATTR_RECV_TCPIP_ADDR = -1073790568;
|
||||||
|
public const int VI_ATTR_USB_RECV_INTR_SIZE = 1073693104;
|
||||||
|
public const int VI_ATTR_USB_RECV_INTR_DATA = -1073790543;
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Event Types -----------------------------------------------------------
|
||||||
|
public const int VI_EVENT_IO_COMPLETION = 1073684489;
|
||||||
|
public const int VI_EVENT_TRIG = -1073799158;
|
||||||
|
public const int VI_EVENT_SERVICE_REQ = 1073684491;
|
||||||
|
public const int VI_EVENT_CLEAR = 1073684493;
|
||||||
|
public const int VI_EVENT_EXCEPTION = -1073799154;
|
||||||
|
public const int VI_EVENT_GPIB_CIC = 1073684498;
|
||||||
|
public const int VI_EVENT_GPIB_TALK = 1073684499;
|
||||||
|
public const int VI_EVENT_GPIB_LISTEN = 1073684500;
|
||||||
|
public const int VI_EVENT_VXI_VME_SYSFAIL = 1073684509;
|
||||||
|
public const int VI_EVENT_VXI_VME_SYSRESET = 1073684510;
|
||||||
|
public const int VI_EVENT_VXI_SIGP = 1073684512;
|
||||||
|
public const int VI_EVENT_VXI_VME_INTR = -1073799135;
|
||||||
|
public const int VI_EVENT_TCPIP_CONNECT = 1073684534;
|
||||||
|
public const int VI_EVENT_USB_INTR = 1073684535;
|
||||||
|
public const int VI_ALL_ENABLED_EVENTS = 1073709055;
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Completion and Error Codes --------------------------------------------
|
||||||
|
public const int VI_SUCCESS = 0;
|
||||||
|
public const int VI_SUCCESS_EVENT_EN = 1073676290;
|
||||||
|
public const int VI_SUCCESS_EVENT_DIS = 1073676291;
|
||||||
|
public const int VI_SUCCESS_QUEUE_EMPTY = 1073676292;
|
||||||
|
public const int VI_SUCCESS_TERM_CHAR = 1073676293;
|
||||||
|
public const int VI_SUCCESS_MAX_CNT = 1073676294;
|
||||||
|
public const int VI_SUCCESS_DEV_NPRESENT = 1073676413;
|
||||||
|
public const int VI_SUCCESS_TRIG_MAPPED = 1073676414;
|
||||||
|
public const int VI_SUCCESS_QUEUE_NEMPTY = 1073676416;
|
||||||
|
public const int VI_SUCCESS_NCHAIN = 1073676440;
|
||||||
|
public const int VI_SUCCESS_NESTED_SHARED = 1073676441;
|
||||||
|
public const int VI_SUCCESS_NESTED_EXCLUSIVE = 1073676442;
|
||||||
|
public const int VI_SUCCESS_SYNC = 1073676443;
|
||||||
|
public const int VI_WARN_QUEUE_OVERFLOW = 1073676300;
|
||||||
|
public const int VI_WARN_CONFIG_NLOADED = 1073676407;
|
||||||
|
public const int VI_WARN_NULL_OBJECT = 1073676418;
|
||||||
|
public const int VI_WARN_NSUP_ATTR_STATE = 1073676420;
|
||||||
|
public const int VI_WARN_UNKNOWN_STATUS = 1073676421;
|
||||||
|
public const int VI_WARN_NSUP_BUF = 1073676424;
|
||||||
|
public const int VI_WARN_EXT_FUNC_NIMPL = 1073676457;
|
||||||
|
public const int VI_ERROR_SYSTEM_ERROR = -1073807360;
|
||||||
|
public const int VI_ERROR_INV_OBJECT = -1073807346;
|
||||||
|
public const int VI_ERROR_RSRC_LOCKED = -1073807345;
|
||||||
|
public const int VI_ERROR_INV_EXPR = -1073807344;
|
||||||
|
public const int VI_ERROR_RSRC_NFOUND = -1073807343;
|
||||||
|
public const int VI_ERROR_INV_RSRC_NAME = -1073807342;
|
||||||
|
public const int VI_ERROR_INV_ACC_MODE = -1073807341;
|
||||||
|
public const int VI_ERROR_TMO = -1073807339;
|
||||||
|
public const int VI_ERROR_CLOSING_FAILED = -1073807338;
|
||||||
|
public const int VI_ERROR_INV_DEGREE = -1073807333;
|
||||||
|
public const int VI_ERROR_INV_JOB_ID = -1073807332;
|
||||||
|
public const int VI_ERROR_NSUP_ATTR = -1073807331;
|
||||||
|
public const int VI_ERROR_NSUP_ATTR_STATE = -1073807330;
|
||||||
|
public const int VI_ERROR_ATTR_READONLY = -1073807329;
|
||||||
|
public const int VI_ERROR_INV_LOCK_TYPE = -1073807328;
|
||||||
|
public const int VI_ERROR_INV_ACCESS_KEY = -1073807327;
|
||||||
|
public const int VI_ERROR_INV_EVENT = -1073807322;
|
||||||
|
public const int VI_ERROR_INV_MECH = -1073807321;
|
||||||
|
public const int VI_ERROR_HNDLR_NINSTALLED = -1073807320;
|
||||||
|
public const int VI_ERROR_INV_HNDLR_REF = -1073807319;
|
||||||
|
public const int VI_ERROR_INV_CONTEXT = -1073807318;
|
||||||
|
public const int VI_ERROR_NENABLED = -1073807313;
|
||||||
|
public const int VI_ERROR_ABORT = -1073807312;
|
||||||
|
public const int VI_ERROR_RAW_WR_PROT_VIOL = -1073807308;
|
||||||
|
public const int VI_ERROR_RAW_RD_PROT_VIOL = -1073807307;
|
||||||
|
public const int VI_ERROR_OUTP_PROT_VIOL = -1073807306;
|
||||||
|
public const int VI_ERROR_INP_PROT_VIOL = -1073807305;
|
||||||
|
public const int VI_ERROR_BERR = -1073807304;
|
||||||
|
public const int VI_ERROR_IN_PROGRESS = -1073807303;
|
||||||
|
public const int VI_ERROR_INV_SETUP = -1073807302;
|
||||||
|
public const int VI_ERROR_QUEUE_ERROR = -1073807301;
|
||||||
|
public const int VI_ERROR_ALLOC = -1073807300;
|
||||||
|
public const int VI_ERROR_INV_MASK = -1073807299;
|
||||||
|
public const int VI_ERROR_IO = -1073807298;
|
||||||
|
public const int VI_ERROR_INV_FMT = -1073807297;
|
||||||
|
public const int VI_ERROR_NSUP_FMT = -1073807295;
|
||||||
|
public const int VI_ERROR_LINE_IN_USE = -1073807294;
|
||||||
|
public const int VI_ERROR_NSUP_MODE = -1073807290;
|
||||||
|
public const int VI_ERROR_SRQ_NOCCURRED = -1073807286;
|
||||||
|
public const int VI_ERROR_INV_SPACE = -1073807282;
|
||||||
|
public const int VI_ERROR_INV_OFFSET = -1073807279;
|
||||||
|
public const int VI_ERROR_INV_WIDTH = -1073807278;
|
||||||
|
public const int VI_ERROR_NSUP_OFFSET = -1073807276;
|
||||||
|
public const int VI_ERROR_NSUP_VAR_WIDTH = -1073807275;
|
||||||
|
public const int VI_ERROR_WINDOW_NMAPPED = -1073807273;
|
||||||
|
public const int VI_ERROR_RESP_PENDING = -1073807271;
|
||||||
|
public const int VI_ERROR_NLISTENERS = -1073807265;
|
||||||
|
public const int VI_ERROR_NCIC = -1073807264;
|
||||||
|
public const int VI_ERROR_NSYS_CNTLR = -1073807263;
|
||||||
|
public const int VI_ERROR_NSUP_OPER = -1073807257;
|
||||||
|
public const int VI_ERROR_INTR_PENDING = -1073807256;
|
||||||
|
public const int VI_ERROR_ASRL_PARITY = -1073807254;
|
||||||
|
public const int VI_ERROR_ASRL_FRAMING = -1073807253;
|
||||||
|
public const int VI_ERROR_ASRL_OVERRUN = -1073807252;
|
||||||
|
public const int VI_ERROR_TRIG_NMAPPED = -1073807250;
|
||||||
|
public const int VI_ERROR_NSUP_ALIGN_OFFSET = -1073807248;
|
||||||
|
public const int VI_ERROR_USER_BUF = -1073807247;
|
||||||
|
public const int VI_ERROR_RSRC_BUSY = -1073807246;
|
||||||
|
public const int VI_ERROR_NSUP_WIDTH = -1073807242;
|
||||||
|
public const int VI_ERROR_INV_PARAMETER = -1073807240;
|
||||||
|
public const int VI_ERROR_INV_PROT = -1073807239;
|
||||||
|
public const int VI_ERROR_INV_SIZE = -1073807237;
|
||||||
|
public const int VI_ERROR_WINDOW_MAPPED = -1073807232;
|
||||||
|
public const int VI_ERROR_NIMPL_OPER = -1073807231;
|
||||||
|
public const int VI_ERROR_INV_LENGTH = -1073807229;
|
||||||
|
public const int VI_ERROR_INV_MODE = -1073807215;
|
||||||
|
public const int VI_ERROR_SESN_NLOCKED = -1073807204;
|
||||||
|
public const int VI_ERROR_MEM_NSHARED = -1073807203;
|
||||||
|
public const int VI_ERROR_LIBRARY_NFOUND = -1073807202;
|
||||||
|
public const int VI_ERROR_NSUP_INTR = -1073807201;
|
||||||
|
public const int VI_ERROR_INV_LINE = -1073807200;
|
||||||
|
public const int VI_ERROR_FILE_ACCESS = -1073807199;
|
||||||
|
public const int VI_ERROR_FILE_IO = -1073807198;
|
||||||
|
public const int VI_ERROR_NSUP_LINE = -1073807197;
|
||||||
|
public const int VI_ERROR_NSUP_MECH = -1073807196;
|
||||||
|
public const int VI_ERROR_INTF_NUM_NCONFIG = -1073807195;
|
||||||
|
public const int VI_ERROR_CONN_LOST = -1073807194;
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Other VISA Definitions ------------------------------------------------
|
||||||
|
public const short VI_FIND_BUFLEN = 256;
|
||||||
|
public const short VI_NULL = 0;
|
||||||
|
public const short VI_TRUE = 1;
|
||||||
|
public const short VI_FALSE = 0;
|
||||||
|
public const short VI_INTF_GPIB = 1;
|
||||||
|
public const short VI_INTF_VXI = 2;
|
||||||
|
public const short VI_INTF_GPIB_VXI = 3;
|
||||||
|
public const short VI_INTF_ASRL = 4;
|
||||||
|
public const short VI_INTF_TCPIP = 6;
|
||||||
|
public const short VI_INTF_USB = 7;
|
||||||
|
public const short VI_PROT_NORMAL = 1;
|
||||||
|
public const short VI_PROT_FDC = 2;
|
||||||
|
public const short VI_PROT_HS488 = 3;
|
||||||
|
public const short VI_PROT_4882_STRS = 4;
|
||||||
|
public const short VI_PROT_USBTMC_VENDOR = 5;
|
||||||
|
public const short VI_FDC_NORMAL = 1;
|
||||||
|
public const short VI_FDC_STREAM = 2;
|
||||||
|
public const short VI_LOCAL_SPACE = 0;
|
||||||
|
public const short VI_A16_SPACE = 1;
|
||||||
|
public const short VI_A24_SPACE = 2;
|
||||||
|
public const short VI_A32_SPACE = 3;
|
||||||
|
public const short VI_OPAQUE_SPACE = -1;
|
||||||
|
public const short VI_UNKNOWN_LA = -1;
|
||||||
|
public const short VI_UNKNOWN_SLOT = -1;
|
||||||
|
public const short VI_UNKNOWN_LEVEL = -1;
|
||||||
|
public const short VI_QUEUE = 1;
|
||||||
|
public const short VI_ALL_MECH = -1;
|
||||||
|
public const short VI_TRIG_ALL = -2;
|
||||||
|
public const short VI_TRIG_SW = -1;
|
||||||
|
public const short VI_TRIG_TTL0 = 0;
|
||||||
|
public const short VI_TRIG_TTL1 = 1;
|
||||||
|
public const short VI_TRIG_TTL2 = 2;
|
||||||
|
public const short VI_TRIG_TTL3 = 3;
|
||||||
|
public const short VI_TRIG_TTL4 = 4;
|
||||||
|
public const short VI_TRIG_TTL5 = 5;
|
||||||
|
public const short VI_TRIG_TTL6 = 6;
|
||||||
|
public const short VI_TRIG_TTL7 = 7;
|
||||||
|
public const short VI_TRIG_ECL0 = 8;
|
||||||
|
public const short VI_TRIG_ECL1 = 9;
|
||||||
|
public const short VI_TRIG_PANEL_IN = 27;
|
||||||
|
public const short VI_TRIG_PANEL_OUT = 28;
|
||||||
|
public const short VI_TRIG_PROT_DEFAULT = 0;
|
||||||
|
public const short VI_TRIG_PROT_ON = 1;
|
||||||
|
public const short VI_TRIG_PROT_OFF = 2;
|
||||||
|
public const short VI_TRIG_PROT_SYNC = 5;
|
||||||
|
public const short VI_READ_BUF = 1;
|
||||||
|
public const short VI_WRITE_BUF = 2;
|
||||||
|
public const short VI_READ_BUF_DISCARD = 4;
|
||||||
|
public const short VI_WRITE_BUF_DISCARD = 8;
|
||||||
|
public const short VI_IO_IN_BUF = 16;
|
||||||
|
public const short VI_IO_OUT_BUF = 32;
|
||||||
|
public const short VI_IO_IN_BUF_DISCARD = 64;
|
||||||
|
public const short VI_IO_OUT_BUF_DISCARD = 128;
|
||||||
|
public const short VI_FLUSH_ON_ACCESS = 1;
|
||||||
|
public const short VI_FLUSH_WHEN_FULL = 2;
|
||||||
|
public const short VI_FLUSH_DISABLE = 3;
|
||||||
|
public const short VI_NMAPPED = 1;
|
||||||
|
public const short VI_USE_OPERS = 2;
|
||||||
|
public const short VI_DEREF_ADDR = 3;
|
||||||
|
public const int VI_TMO_IMMEDIATE = 0;
|
||||||
|
public const int VI_TMO_INFINITE = -1;
|
||||||
|
public const short VI_NO_LOCK = 0;
|
||||||
|
public const short VI_EXCLUSIVE_LOCK = 1;
|
||||||
|
public const short VI_SHARED_LOCK = 2;
|
||||||
|
public const short VI_LOAD_CONFIG = 4;
|
||||||
|
public const short VI_NO_SEC_ADDR = -1;
|
||||||
|
public const short VI_ASRL_PAR_NONE = 0;
|
||||||
|
public const short VI_ASRL_PAR_ODD = 1;
|
||||||
|
public const short VI_ASRL_PAR_EVEN = 2;
|
||||||
|
public const short VI_ASRL_PAR_MARK = 3;
|
||||||
|
public const short VI_ASRL_PAR_SPACE = 4;
|
||||||
|
public const short VI_ASRL_STOP_ONE = 10;
|
||||||
|
public const short VI_ASRL_STOP_ONE5 = 15;
|
||||||
|
public const short VI_ASRL_STOP_TWO = 20;
|
||||||
|
public const short VI_ASRL_FLOW_NONE = 0;
|
||||||
|
public const short VI_ASRL_FLOW_XON_XOFF = 1;
|
||||||
|
public const short VI_ASRL_FLOW_RTS_CTS = 2;
|
||||||
|
public const short VI_ASRL_FLOW_DTR_DSR = 4;
|
||||||
|
public const short VI_ASRL_END_NONE = 0;
|
||||||
|
public const short VI_ASRL_END_LAST_BIT = 1;
|
||||||
|
public const short VI_ASRL_END_TERMCHAR = 2;
|
||||||
|
public const short VI_ASRL_END_BREAK = 3;
|
||||||
|
public const short VI_STATE_ASSERTED = 1;
|
||||||
|
public const short VI_STATE_UNASSERTED = 0;
|
||||||
|
public const short VI_STATE_UNKNOWN = -1;
|
||||||
|
public const short VI_BIG_ENDIAN = 0;
|
||||||
|
public const short VI_LITTLE_ENDIAN = 1;
|
||||||
|
public const short VI_DATA_PRIV = 0;
|
||||||
|
public const short VI_DATA_NPRIV = 1;
|
||||||
|
public const short VI_PROG_PRIV = 2;
|
||||||
|
public const short VI_PROG_NPRIV = 3;
|
||||||
|
public const short VI_BLCK_PRIV = 4;
|
||||||
|
public const short VI_BLCK_NPRIV = 5;
|
||||||
|
public const short VI_D64_PRIV = 6;
|
||||||
|
public const short VI_D64_NPRIV = 7;
|
||||||
|
public const short VI_WIDTH_8 = 1;
|
||||||
|
public const short VI_WIDTH_16 = 2;
|
||||||
|
public const short VI_WIDTH_32 = 4;
|
||||||
|
public const short VI_GPIB_REN_DEASSERT = 0;
|
||||||
|
public const short VI_GPIB_REN_ASSERT = 1;
|
||||||
|
public const short VI_GPIB_REN_DEASSERT_GTL = 2;
|
||||||
|
public const short VI_GPIB_REN_ASSERT_ADDRESS = 3;
|
||||||
|
public const short VI_GPIB_REN_ASSERT_LLO = 4;
|
||||||
|
public const short VI_GPIB_REN_ASSERT_ADDRESS_LLO = 5;
|
||||||
|
public const short VI_GPIB_REN_ADDRESS_GTL = 6;
|
||||||
|
public const short VI_GPIB_ATN_DEASSERT = 0;
|
||||||
|
public const short VI_GPIB_ATN_ASSERT = 1;
|
||||||
|
public const short VI_GPIB_ATN_DEASSERT_HANDSHAKE = 2;
|
||||||
|
public const short VI_GPIB_ATN_ASSERT_IMMEDIATE = 3;
|
||||||
|
public const short VI_GPIB_HS488_DISABLED = 0;
|
||||||
|
public const short VI_GPIB_HS488_NIMPL = -1;
|
||||||
|
public const short VI_GPIB_UNADDRESSED = 0;
|
||||||
|
public const short VI_GPIB_TALKER = 1;
|
||||||
|
public const short VI_GPIB_LISTENER = 2;
|
||||||
|
public const short VI_VXI_CMD16 = 512;
|
||||||
|
public const short VI_VXI_CMD16_RESP16 = 514;
|
||||||
|
public const short VI_VXI_RESP16 = 2;
|
||||||
|
public const short VI_VXI_CMD32 = 1024;
|
||||||
|
public const short VI_VXI_CMD32_RESP16 = 1026;
|
||||||
|
public const short VI_VXI_CMD32_RESP32 = 1028;
|
||||||
|
public const short VI_VXI_RESP32 = 4;
|
||||||
|
public const short VI_ASSERT_SIGNAL = -1;
|
||||||
|
public const short VI_ASSERT_USE_ASSIGNED = 0;
|
||||||
|
public const short VI_ASSERT_IRQ1 = 1;
|
||||||
|
public const short VI_ASSERT_IRQ2 = 2;
|
||||||
|
public const short VI_ASSERT_IRQ3 = 3;
|
||||||
|
public const short VI_ASSERT_IRQ4 = 4;
|
||||||
|
public const short VI_ASSERT_IRQ5 = 5;
|
||||||
|
public const short VI_ASSERT_IRQ6 = 6;
|
||||||
|
public const short VI_ASSERT_IRQ7 = 7;
|
||||||
|
public const short VI_UTIL_ASSERT_SYSRESET = 1;
|
||||||
|
public const short VI_UTIL_ASSERT_SYSFAIL = 2;
|
||||||
|
public const short VI_UTIL_DEASSERT_SYSFAIL = 3;
|
||||||
|
public const short VI_VXI_CLASS_MEMORY = 0;
|
||||||
|
public const short VI_VXI_CLASS_EXTENDED = 1;
|
||||||
|
public const short VI_VXI_CLASS_MESSAGE = 2;
|
||||||
|
public const short VI_VXI_CLASS_REGISTER = 3;
|
||||||
|
public const short VI_VXI_CLASS_OTHER = 4;
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region - Backward Compatibility Macros -----------------------------------------
|
||||||
|
public const int VI_ERROR_INV_SESSION = -1073807346;
|
||||||
|
public const int VI_INFINITE = -1;
|
||||||
|
public const short VI_NORMAL = 1;
|
||||||
|
public const short VI_FDC = 2;
|
||||||
|
public const short VI_HS488 = 3;
|
||||||
|
public const short VI_ASRL488 = 4;
|
||||||
|
public const short VI_ASRL_IN_BUF = 16;
|
||||||
|
public const short VI_ASRL_OUT_BUF = 32;
|
||||||
|
public const short VI_ASRL_IN_BUF_DISCARD = 64;
|
||||||
|
public const short VI_ASRL_OUT_BUF_DISCARD = 128;
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,646 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>DotNetty.Codecs</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="F:DotNetty.Codecs.Base64.Base64Dialect.STANDARD">
|
||||||
|
<summary>
|
||||||
|
http://www.faqs.org/rfcs/rfc3548.html
|
||||||
|
Table 1: The Base 64 Alphabet
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.Base64.Base64Dialect.URL_SAFE">
|
||||||
|
<summary>
|
||||||
|
http://www.faqs.org/rfcs/rfc3548.html
|
||||||
|
Table 2: The "URL and Filename safe" Base 64 Alphabet
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.ByteToMessageDecoder.MergeCumulator">
|
||||||
|
<summary>
|
||||||
|
Cumulates instances of <see cref="T:DotNetty.Buffers.IByteBuffer" /> by merging them into one <see cref="T:DotNetty.Buffers.IByteBuffer" />, using memory
|
||||||
|
copies.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.ByteToMessageDecoder.CompositionCumulation">
|
||||||
|
<summary>
|
||||||
|
Cumulate instances of <see cref="T:DotNetty.Buffers.IByteBuffer" /> by add them to a <see cref="T:DotNetty.Buffers.CompositeByteBuffer" /> and therefore
|
||||||
|
avoiding memory copy when possible.
|
||||||
|
</summary>
|
||||||
|
<remarks>
|
||||||
|
Be aware that <see cref="T:DotNetty.Buffers.CompositeByteBuffer" /> use a more complex indexing implementation so depending on your
|
||||||
|
use-case
|
||||||
|
and the decoder implementation this may be slower then just use the <see cref="F:DotNetty.Codecs.ByteToMessageDecoder.MergeCumulator" />.
|
||||||
|
</remarks>
|
||||||
|
</member>
|
||||||
|
<member name="P:DotNetty.Codecs.ByteToMessageDecoder.SingleDecode">
|
||||||
|
<summary>
|
||||||
|
Determines whether only one message should be decoded per <see cref="M:DotNetty.Codecs.ByteToMessageDecoder.ChannelRead(DotNetty.Transport.Channels.IChannelHandlerContext,System.Object)" /> call.
|
||||||
|
Default is <code>false</code> as this has performance impacts.
|
||||||
|
</summary>
|
||||||
|
<remarks>Is particularly useful in support of protocol upgrade scenarios.</remarks>
|
||||||
|
</member>
|
||||||
|
<member name="P:DotNetty.Codecs.ByteToMessageDecoder.ActualReadableBytes">
|
||||||
|
<summary>
|
||||||
|
Returns the actual number of readable bytes in the internal cumulative
|
||||||
|
buffer of this decoder. You usually do not need to rely on this value
|
||||||
|
to write a decoder. Use it only when you must use it at your own risk.
|
||||||
|
This method is a shortcut to <see cref="P:DotNetty.Buffers.IByteBuffer.ReadableBytes" /> of <see cref="P:DotNetty.Codecs.ByteToMessageDecoder.InternalBuffer" />.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.CodecException">
|
||||||
|
<summary>
|
||||||
|
An <see cref="T:System.Exception" /> which is thrown by a codec.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.Adler32">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/Adler32.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.CRC32">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/CRC32.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.Deflate">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/Deflate.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.Deflater">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/Deflater.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.GZIPException">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/GZIPException.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.GZIPHeader">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/GZIPHeader.java
|
||||||
|
|
||||||
|
http://www.ietf.org/rfc/rfc1952.txt
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.InfBlocks">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/InfBlocks.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.InfCodes">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/InfCodes.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.Inflate">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/Inflate.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.Inflater">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/Inflater.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.InfTree">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/InfTree.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.JZlib">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/JZlib.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.Compression.JZlibEncoder.#ctor(DotNetty.Codecs.Compression.ZlibWrapper,System.Int32,System.Int32,System.Int32)">
|
||||||
|
Creates a new zlib encoder with the specified {@code compressionLevel},
|
||||||
|
the specified {@code windowBits}, the specified {@code memLevel}, and
|
||||||
|
the specified wrapper.
|
||||||
|
|
||||||
|
@param compressionLevel
|
||||||
|
{@code 1} yields the fastest compression and {@code 9} yields the
|
||||||
|
best compression. {@code 0} means no compression. The default
|
||||||
|
compression level is {@code 6}.
|
||||||
|
@param windowBits
|
||||||
|
The base two logarithm of the size of the history buffer. The
|
||||||
|
value should be in the range {@code 9} to {@code 15} inclusive.
|
||||||
|
Larger values result in better compression at the expense of
|
||||||
|
memory usage. The default value is {@code 15}.
|
||||||
|
@param memLevel
|
||||||
|
How much memory should be allocated for the internal compression
|
||||||
|
state. {@code 1} uses minimum memory and {@code 9} uses maximum
|
||||||
|
memory. Larger values result in better and faster compression
|
||||||
|
at the expense of memory usage. The default value is {@code 8}
|
||||||
|
|
||||||
|
@throws CompressionException if failed to initialize zlib
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.StaticTree">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/StaticTree.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.Tree">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/Tree.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.Compression.ZlibEncoder.CloseAsync">
|
||||||
|
Close this {@link ZlibEncoder} and so finish the encoding.
|
||||||
|
|
||||||
|
The returned {@link ChannelFuture} will be notified once the
|
||||||
|
operation completes.
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.ZlibWrapper">
|
||||||
|
The container file formats that wrap the stream compressed by the DEFLATE
|
||||||
|
algorithm.
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.Compression.ZlibWrapper.Zlib">
|
||||||
|
The ZLIB wrapper as specified in <a href="http://tools.ietf.org/html/rfc1950">RFC 1950</a>.
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.Compression.ZlibWrapper.Gzip">
|
||||||
|
The GZIP wrapper as specified in <a href="http://tools.ietf.org/html/rfc1952">RFC 1952</a>.
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.Compression.ZlibWrapper.None">
|
||||||
|
Raw DEFLATE stream only (no header and no footer).
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.Compression.ZlibWrapper.ZlibOrNone">
|
||||||
|
Try {@link #ZLIB} first and then {@link #NONE} if the first attempt fails.
|
||||||
|
Please note that you can specify this wrapper type only when decompressing.
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Compression.ZStream">
|
||||||
|
<summary>
|
||||||
|
https://github.com/ymnk/jzlib/blob/master/src/main/java/com/jcraft/jzlib/ZStream.java
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.Compression.ZStream.End">
|
||||||
|
Those methods are expected to be override by Inflater and Deflater.
|
||||||
|
In the future, they will become abstract methods.
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.CorruptedFrameException">
|
||||||
|
<summary>
|
||||||
|
A <see cref="T:DotNetty.Codecs.DecoderException" /> which is thrown when the received frame data could not
|
||||||
|
be decoded by an inbound handler.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.DelimiterBasedFrameDecoder">
|
||||||
|
<summary>
|
||||||
|
A decoder that splits the received <see cref="T:DotNetty.Buffers.IByteBuffer" /> by one or more
|
||||||
|
delimiters.It is particularly useful for decoding the frames which ends
|
||||||
|
with a delimiter such as <see cref="M:DotNetty.Codecs.Delimiters.NullDelimiter" /> or
|
||||||
|
<see cref="M:DotNetty.Codecs.Delimiters.LineDelimiter" />
|
||||||
|
<h3>Specifying more than one delimiter </h3>
|
||||||
|
<see cref="M:DotNetty.Codecs.Delimiters.NullDelimiter" /> allows you to specify more than one
|
||||||
|
delimiter. If more than one delimiter is found in the buffer, it chooses
|
||||||
|
the delimiter which produces the shortest frame. For example, if you have
|
||||||
|
the following data in the buffer:
|
||||||
|
+--------------+
|
||||||
|
| ABC\nDEF\r\n |
|
||||||
|
+--------------+
|
||||||
|
a <see cref="M:DotNetty.Codecs.Delimiters.LineDelimiter" /> will choose '\n' as the first delimiter and produce two
|
||||||
|
frames:
|
||||||
|
+-----+-----+
|
||||||
|
| ABC | DEF |
|
||||||
|
+-----+-----+
|
||||||
|
rather than incorrectly choosing '\r\n' as the first delimiter:
|
||||||
|
+----------+
|
||||||
|
| ABC\nDEF |
|
||||||
|
+----------+
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.DelimiterBasedFrameDecoder.#ctor(System.Int32,System.Boolean,System.Boolean,DotNetty.Buffers.IByteBuffer[])">
|
||||||
|
<summary>Common constructor</summary>
|
||||||
|
<param name="maxFrameLength">
|
||||||
|
The maximum length of the decoded frame
|
||||||
|
NOTE: A see <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is thrown if the length of the frame exceeds this
|
||||||
|
value.
|
||||||
|
</param>
|
||||||
|
<param name="stripDelimiter">whether the decoded frame should strip out the delimiter or not</param>
|
||||||
|
<param name="failFast">
|
||||||
|
If true, a <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is
|
||||||
|
thrown as soon as the decoder notices the length of the
|
||||||
|
frame will exceed<tt>maxFrameLength</tt> regardless of
|
||||||
|
whether the entire frame has been read.
|
||||||
|
If false, a <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is
|
||||||
|
thrown after the entire frame that exceeds maxFrameLength has been read.
|
||||||
|
</param>
|
||||||
|
<param name="delimiters">delimiters</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.DelimiterBasedFrameDecoder.IsLineBased(DotNetty.Buffers.IByteBuffer[])">
|
||||||
|
<summary>Returns true if the delimiters are "\n" and "\r\n"</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.DelimiterBasedFrameDecoder.IsSubclass">
|
||||||
|
<summary>ReturnsReturn true if the current instance is a subclass of DelimiterBasedFrameDecoder</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.DelimiterBasedFrameDecoder.Decode(DotNetty.Transport.Channels.IChannelHandlerContext,DotNetty.Buffers.IByteBuffer)">
|
||||||
|
<summary>Create a frame out of the <see cref="T:DotNetty.Buffers.IByteBuffer" /> and return it</summary>
|
||||||
|
<param name="ctx">
|
||||||
|
the <see cref="T:DotNetty.Transport.Channels.IChannelHandlerContext" /> which this
|
||||||
|
<see cref="T:DotNetty.Codecs.ByteToMessageDecoder" /> belongs to
|
||||||
|
</param>
|
||||||
|
<param name="buffer">the <see cref="T:DotNetty.Buffers.IByteBuffer" /> from which to read data</param>
|
||||||
|
<returns>
|
||||||
|
the <see cref="T:DotNetty.Buffers.IByteBuffer" /> which represent the frame or null if no frame could be
|
||||||
|
created.
|
||||||
|
</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.DelimiterBasedFrameDecoder.IndexOf(DotNetty.Buffers.IByteBuffer,DotNetty.Buffers.IByteBuffer)">
|
||||||
|
Returns the number of bytes between the readerIndex of the haystack and
|
||||||
|
the first needle found in the haystack. -1 is returned if no needle is
|
||||||
|
found in the haystack.
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.Delimiters.NullDelimiter">
|
||||||
|
<summary>Returns a null (0x00) delimiter, which could be used for Flash XML socket or any similar protocols</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.Delimiters.LineDelimiter">
|
||||||
|
<summary>
|
||||||
|
Returns {@code CR ('\r')} and {@code LF ('\n')} delimiters, which could
|
||||||
|
be used for text-based line protocols.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Json.JsonObjectDecoder">
|
||||||
|
<summary>
|
||||||
|
Splits a byte stream of JSON objects and arrays into individual objects/arrays and passes them up the
|
||||||
|
<see cref="T:DotNetty.Transport.Channels.IChannelPipeline" />.
|
||||||
|
This class does not do any real parsing or validation. A sequence of bytes is considered a JSON object/array
|
||||||
|
if it contains a matching number of opening and closing braces/brackets. It's up to a subsequent
|
||||||
|
<see cref="T:DotNetty.Transport.Channels.IChannelHandler" />
|
||||||
|
to parse the JSON text into a more usable form i.e.a POCO.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<!-- Badly formed XML comment ignored for member "T:DotNetty.Codecs.LengthFieldBasedFrameDecoder" -->
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldBasedFrameDecoder.#ctor(System.Int32,System.Int32,System.Int32)">
|
||||||
|
<summary>
|
||||||
|
Create a new instance.
|
||||||
|
</summary>
|
||||||
|
<param name="maxFrameLength">
|
||||||
|
The maximum length of the frame. If the length of the frame is
|
||||||
|
greater than this value then <see cref="T:DotNetty.Codecs.TooLongFrameException" /> will be thrown.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldOffset">The offset of the length field.</param>
|
||||||
|
<param name="lengthFieldLength">The length of the length field.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldBasedFrameDecoder.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
|
||||||
|
<summary>
|
||||||
|
Create a new instance.
|
||||||
|
</summary>
|
||||||
|
<param name="maxFrameLength">
|
||||||
|
The maximum length of the frame. If the length of the frame is
|
||||||
|
greater than this value then <see cref="T:DotNetty.Codecs.TooLongFrameException" /> will be thrown.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldOffset">The offset of the length field.</param>
|
||||||
|
<param name="lengthFieldLength">The length of the length field.</param>
|
||||||
|
<param name="lengthAdjustment">The compensation value to add to the value of the length field.</param>
|
||||||
|
<param name="initialBytesToStrip">the number of first bytes to strip out from the decoded frame.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldBasedFrameDecoder.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Create a new instance.
|
||||||
|
</summary>
|
||||||
|
<param name="maxFrameLength">
|
||||||
|
The maximum length of the frame. If the length of the frame is
|
||||||
|
greater than this value then <see cref="T:DotNetty.Codecs.TooLongFrameException" /> will be thrown.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldOffset">The offset of the length field.</param>
|
||||||
|
<param name="lengthFieldLength">The length of the length field.</param>
|
||||||
|
<param name="lengthAdjustment">The compensation value to add to the value of the length field.</param>
|
||||||
|
<param name="initialBytesToStrip">the number of first bytes to strip out from the decoded frame.</param>
|
||||||
|
<param name="failFast">
|
||||||
|
If <c>true</c>, a <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is thrown as soon as the decoder notices the length
|
||||||
|
of the frame will exceeed <see cref="F:DotNetty.Codecs.LengthFieldBasedFrameDecoder.maxFrameLength" /> regardless of whether the entire frame has been
|
||||||
|
read. If <c>false</c>, a <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is thrown after the entire frame that exceeds
|
||||||
|
<see cref="F:DotNetty.Codecs.LengthFieldBasedFrameDecoder.maxFrameLength" /> has been read.
|
||||||
|
Defaults to <c>true</c> in other overloads.
|
||||||
|
</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldBasedFrameDecoder.#ctor(DotNetty.Buffers.ByteOrder,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Create a new instance.
|
||||||
|
</summary>
|
||||||
|
<param name="byteOrder">The <see cref="T:DotNetty.Buffers.ByteOrder" /> of the lenght field.</param>
|
||||||
|
<param name="maxFrameLength">
|
||||||
|
The maximum length of the frame. If the length of the frame is
|
||||||
|
greater than this value then <see cref="T:DotNetty.Codecs.TooLongFrameException" /> will be thrown.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldOffset">The offset of the length field.</param>
|
||||||
|
<param name="lengthFieldLength">The length of the length field.</param>
|
||||||
|
<param name="lengthAdjustment">The compensation value to add to the value of the length field.</param>
|
||||||
|
<param name="initialBytesToStrip">the number of first bytes to strip out from the decoded frame.</param>
|
||||||
|
<param name="failFast">
|
||||||
|
If <c>true</c>, a <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is thrown as soon as the decoder notices the length
|
||||||
|
of the frame will exceeed <see cref="F:DotNetty.Codecs.LengthFieldBasedFrameDecoder.maxFrameLength" /> regardless of whether the entire frame has been
|
||||||
|
read. If <c>false</c>, a <see cref="T:DotNetty.Codecs.TooLongFrameException" /> is thrown after the entire frame that exceeds
|
||||||
|
<see cref="F:DotNetty.Codecs.LengthFieldBasedFrameDecoder.maxFrameLength" /> has been read.
|
||||||
|
Defaults to <c>true</c> in other overloads.
|
||||||
|
</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldBasedFrameDecoder.Decode(DotNetty.Transport.Channels.IChannelHandlerContext,DotNetty.Buffers.IByteBuffer)">
|
||||||
|
<summary>
|
||||||
|
Create a frame out of the <see cref="T:DotNetty.Buffers.IByteBuffer" /> and return it.
|
||||||
|
</summary>
|
||||||
|
<param name="context">
|
||||||
|
The <see cref="T:DotNetty.Transport.Channels.IChannelHandlerContext" /> which this <see cref="T:DotNetty.Codecs.ByteToMessageDecoder" /> belongs
|
||||||
|
to.
|
||||||
|
</param>
|
||||||
|
<param name="input">The <see cref="T:DotNetty.Buffers.IByteBuffer" /> from which to read data.</param>
|
||||||
|
<returns>The <see cref="T:DotNetty.Buffers.IByteBuffer" /> which represents the frame or <c>null</c> if no frame could be created.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldBasedFrameDecoder.GetUnadjustedFrameLength(DotNetty.Buffers.IByteBuffer,System.Int32,System.Int32,DotNetty.Buffers.ByteOrder)">
|
||||||
|
<summary>
|
||||||
|
Decodes the specified region of the buffer into an unadjusted frame length. The default implementation is
|
||||||
|
capable of decoding the specified region into an unsigned 8/16/24/32/64 bit integer. Override this method to
|
||||||
|
decode the length field encoded differently.
|
||||||
|
Note that this method must not modify the state of the specified buffer (e.g.
|
||||||
|
<see cref="P:DotNetty.Buffers.IByteBuffer.ReaderIndex" />,
|
||||||
|
<see cref="P:DotNetty.Buffers.IByteBuffer.WriterIndex" />, and the content of the buffer.)
|
||||||
|
</summary>
|
||||||
|
<param name="buffer">The buffer we'll be extracting the frame length from.</param>
|
||||||
|
<param name="offset">The offset from the absolute <see cref="P:DotNetty.Buffers.IByteBuffer.ReaderIndex" />.</param>
|
||||||
|
<param name="length">The length of the framelenght field. Expected: 1, 2, 3, 4, or 8.</param>
|
||||||
|
<param name="order">The preferred <see cref="T:DotNetty.Buffers.ByteOrder" /> of buffer.</param>
|
||||||
|
<returns>A long integer that represents the unadjusted length of the next frame.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.LengthFieldPrepender">
|
||||||
|
<summary>
|
||||||
|
An encoder that prepends the length of the message. The length value is
|
||||||
|
prepended as a binary form.
|
||||||
|
<p />
|
||||||
|
For example, <tt>{@link LengthFieldPrepender}(2)</tt> will encode the
|
||||||
|
following 12-bytes string:
|
||||||
|
<pre>
|
||||||
|
+----------------+
|
||||||
|
| "HELLO, WORLD" |
|
||||||
|
+----------------+
|
||||||
|
</pre>
|
||||||
|
into the following:
|
||||||
|
<pre>
|
||||||
|
+--------+----------------+
|
||||||
|
+ 0x000C | "HELLO, WORLD" |
|
||||||
|
+--------+----------------+
|
||||||
|
</pre>
|
||||||
|
If you turned on the {@code lengthIncludesLengthFieldLength} flag in the
|
||||||
|
constructor, the encoded data would look like the following
|
||||||
|
(12 (original data) + 2 (prepended data) = 14 (0xE)):
|
||||||
|
<pre>
|
||||||
|
+--------+----------------+
|
||||||
|
+ 0x000E | "HELLO, WORLD" |
|
||||||
|
+--------+----------------+
|
||||||
|
</pre>
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldPrepender.#ctor(System.Int32)">
|
||||||
|
<summary>
|
||||||
|
Creates a new <see cref="T:DotNetty.Codecs.LengthFieldPrepender" /> instance.
|
||||||
|
</summary>
|
||||||
|
<param name="lengthFieldLength">
|
||||||
|
The length of the prepended length field.
|
||||||
|
Only 1, 2, 3, 4, and 8 are allowed.
|
||||||
|
</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldPrepender.#ctor(System.Int32,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Creates a new <see cref="T:DotNetty.Codecs.LengthFieldPrepender" /> instance.
|
||||||
|
</summary>
|
||||||
|
<param name="lengthFieldLength">
|
||||||
|
The length of the prepended length field.
|
||||||
|
Only 1, 2, 3, 4, and 8 are allowed.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldIncludesLengthFieldLength">
|
||||||
|
If <c>true</c>, the length of the prepended length field is added
|
||||||
|
to the value of the prepended length field.
|
||||||
|
</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldPrepender.#ctor(System.Int32,System.Int32)">
|
||||||
|
<summary>
|
||||||
|
Creates a new <see cref="T:DotNetty.Codecs.LengthFieldPrepender" /> instance.
|
||||||
|
</summary>
|
||||||
|
<param name="lengthFieldLength">
|
||||||
|
The length of the prepended length field.
|
||||||
|
Only 1, 2, 3, 4, and 8 are allowed.
|
||||||
|
</param>
|
||||||
|
<param name="lengthAdjustment">The compensation value to add to the value of the length field.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldPrepender.#ctor(System.Int32,System.Int32,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Creates a new <see cref="T:DotNetty.Codecs.LengthFieldPrepender" /> instance.
|
||||||
|
</summary>
|
||||||
|
<param name="lengthFieldLength">
|
||||||
|
The length of the prepended length field.
|
||||||
|
Only 1, 2, 3, 4, and 8 are allowed.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldIncludesLengthFieldLength">
|
||||||
|
If <c>true</c>, the length of the prepended length field is added
|
||||||
|
to the value of the prepended length field.
|
||||||
|
</param>
|
||||||
|
<param name="lengthAdjustment">The compensation value to add to the value of the length field.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LengthFieldPrepender.#ctor(DotNetty.Buffers.ByteOrder,System.Int32,System.Int32,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Creates a new <see cref="T:DotNetty.Codecs.LengthFieldPrepender" /> instance.
|
||||||
|
</summary>
|
||||||
|
<param name="byteOrder">The <see cref="T:DotNetty.Buffers.ByteOrder" /> of the length field.</param>
|
||||||
|
<param name="lengthFieldLength">
|
||||||
|
The length of the prepended length field.
|
||||||
|
Only 1, 2, 3, 4, and 8 are allowed.
|
||||||
|
</param>
|
||||||
|
<param name="lengthFieldIncludesLengthFieldLength">
|
||||||
|
If <c>true</c>, the length of the prepended length field is added
|
||||||
|
to the value of the prepended length field.
|
||||||
|
</param>
|
||||||
|
<param name="lengthAdjustment">The compensation value to add to the value of the length field.</param>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.LineBasedFrameDecoder">
|
||||||
|
<summary>
|
||||||
|
A decoder that splits the received {@link ByteBuf}s on line endings.
|
||||||
|
Both {@code "\n"} and {@code "\r\n"} are handled.
|
||||||
|
For a more general delimiter-based decoder, see {@link DelimiterBasedFrameDecoder}.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.LineBasedFrameDecoder.maxLength">
|
||||||
|
Maximum length of a frame we're willing to decode.
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.LineBasedFrameDecoder.failFast">
|
||||||
|
Whether or not to throw an exception as soon as we exceed maxLength.
|
||||||
|
</member>
|
||||||
|
<member name="F:DotNetty.Codecs.LineBasedFrameDecoder.discarding">
|
||||||
|
True if we're discarding input because we're already over maxLength.
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LineBasedFrameDecoder.#ctor(System.Int32)">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:DotNetty.Codecs.LineBasedFrameDecoder" /> class.
|
||||||
|
</summary>
|
||||||
|
<param name="maxLength">
|
||||||
|
the maximum length of the decoded frame.
|
||||||
|
A {@link TooLongFrameException} is thrown if
|
||||||
|
the length of the frame exceeds this value.
|
||||||
|
</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LineBasedFrameDecoder.#ctor(System.Int32,System.Boolean,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:DotNetty.Codecs.LineBasedFrameDecoder" /> class.
|
||||||
|
</summary>
|
||||||
|
<param name="maxLength">
|
||||||
|
the maximum length of the decoded frame.
|
||||||
|
A {@link TooLongFrameException} is thrown if
|
||||||
|
the length of the frame exceeds this value.
|
||||||
|
</param>
|
||||||
|
<param name="stripDelimiter">
|
||||||
|
whether the decoded frame should strip out the
|
||||||
|
delimiter or not
|
||||||
|
</param>
|
||||||
|
<param name="failFast">
|
||||||
|
If <tt>true</tt>, a {@link TooLongFrameException} is
|
||||||
|
thrown as soon as the decoder notices the length of the
|
||||||
|
frame will exceed <tt>maxFrameLength</tt> regardless of
|
||||||
|
whether the entire frame has been read.
|
||||||
|
If <tt>false</tt>, a {@link TooLongFrameException} is
|
||||||
|
thrown after the entire frame that exceeds
|
||||||
|
<tt>maxFrameLength</tt> has been read.
|
||||||
|
</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.LineBasedFrameDecoder.Decode(DotNetty.Transport.Channels.IChannelHandlerContext,DotNetty.Buffers.IByteBuffer)">
|
||||||
|
<summary>
|
||||||
|
Create a frame out of the {@link ByteBuf} and return it.
|
||||||
|
</summary>
|
||||||
|
<param name="ctx">the {@link ChannelHandlerContext} which this {@link ByteToMessageDecoder} belongs to</param>
|
||||||
|
<param name="buffer">the {@link ByteBuf} from which to read data</param>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.MessageAggregator`4">
|
||||||
|
<inheritdoc />
|
||||||
|
<summary>
|
||||||
|
An abstract <see cref="T:DotNetty.Transport.Channels.IChannelHandler" /> that aggregates a series of message objects
|
||||||
|
into a single aggregated message.
|
||||||
|
'A series of messages' is composed of the following:
|
||||||
|
a single start message which optionally contains the first part of the content, and
|
||||||
|
1 or more content messages. The content of the aggregated message will be the merged
|
||||||
|
content of the start message and its following content messages. If this aggregator
|
||||||
|
encounters a content message where { @link #isLastContentMessage(ByteBufHolder)}
|
||||||
|
return true for, the aggregator will finish the aggregation and produce the aggregated
|
||||||
|
message and expect another start message.
|
||||||
|
</summary>
|
||||||
|
<typeparam name="TMessage">The type that covers both start message and content message</typeparam>
|
||||||
|
<typeparam name="TStart">The type of the start message</typeparam>
|
||||||
|
<typeparam name="TContent">The type of the content message</typeparam>
|
||||||
|
<typeparam name="TOutput">The type of the aggregated message</typeparam>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.MessageToMessageDecoder`1">
|
||||||
|
<summary>
|
||||||
|
Message to message decoder.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.MessageToMessageDecoder`1.Decode(DotNetty.Transport.Channels.IChannelHandlerContext,`0,System.Collections.Generic.List{System.Object})">
|
||||||
|
<summary>
|
||||||
|
Decode from one message to an other. This method will be called for each written message that can be handled
|
||||||
|
by this encoder.
|
||||||
|
</summary>
|
||||||
|
<param name="context">the {@link ChannelHandlerContext} which this {@link MessageToMessageDecoder} belongs to</param>
|
||||||
|
<param name="message">the message to decode to an other one</param>
|
||||||
|
<param name="output">the {@link List} to which decoded messages should be added</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.MessageToMessageEncoder`1.AcceptOutboundMessage(System.Object)">
|
||||||
|
<summary>
|
||||||
|
Returns {@code true} if the given message should be handled. If {@code false} it will be passed to the next
|
||||||
|
{@link ChannelHandler} in the {@link ChannelPipeline}.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.MessageToMessageEncoder`1.Encode(DotNetty.Transport.Channels.IChannelHandlerContext,`0,System.Collections.Generic.List{System.Object})">
|
||||||
|
<summary>
|
||||||
|
Encode from one message to an other. This method will be called for each written message that can be handled
|
||||||
|
by this encoder.
|
||||||
|
@param context the {@link ChannelHandlerContext} which this {@link MessageToMessageEncoder} belongs to
|
||||||
|
@param message the message to encode to an other one
|
||||||
|
@param output the {@link List} into which the encoded message should be added
|
||||||
|
needs to do some kind of aggragation
|
||||||
|
@throws Exception is thrown if an error accour
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Protobuf.ProtobufVarint32FrameDecoder">
|
||||||
|
|
||||||
|
A decoder that splits the received {@link ByteBuf}s dynamically by the
|
||||||
|
value of the Google Protocol Buffers
|
||||||
|
http://code.google.com/apis/protocolbuffers/docs/encoding.html#varints
|
||||||
|
Base 128 Varints integer length field in the message.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
BEFORE DECODE (302 bytes) AFTER DECODE (300 bytes)
|
||||||
|
+--------+---------------+ +---------------+
|
||||||
|
| Length | Protobuf Data |----->| Protobuf Data |
|
||||||
|
| 0xAC02 | (300 bytes) | | (300 bytes) |
|
||||||
|
+--------+---------------+ +---------------+
|
||||||
|
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.Protobuf.ProtobufVarint32LengthFieldPrepender">
|
||||||
|
|
||||||
|
An encoder that prepends the the Google Protocol Buffers
|
||||||
|
http://code.google.com/apis/protocolbuffers/docs/encoding.html#varints
|
||||||
|
Base 128 Varints integer length field.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
BEFORE ENCODE (300 bytes) AFTER ENCODE (302 bytes)
|
||||||
|
+---------------+ +--------+---------------+
|
||||||
|
| Protobuf Data |-------------->| Length | Protobuf Data |
|
||||||
|
| (300 bytes) | | 0xAC02 | (300 bytes) |
|
||||||
|
+---------------+ +--------+---------------+
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.StringDecoder.#ctor">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:DotNetty.Codecs.StringDecoder" /> class with the current system
|
||||||
|
character set.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.StringDecoder.#ctor(System.Text.Encoding)">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:DotNetty.Codecs.StringDecoder" /> class with the specified character
|
||||||
|
set..
|
||||||
|
</summary>
|
||||||
|
<param name="encoding">Encoding.</param>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.StringEncoder">
|
||||||
|
Encodes the requested {@link String} into a {@link ByteBuf}.
|
||||||
|
A typical setup for a text-based line protocol in a TCP/IP socket would be:
|
||||||
|
<pre>
|
||||||
|
{@link ChannelPipeline} pipeline = ...;
|
||||||
|
|
||||||
|
// Decoders
|
||||||
|
pipeline.addLast("frameDecoder", new {@link LineBasedFrameDecoder}(80));
|
||||||
|
pipeline.addLast("stringDecoder", new {@link StringDecoder}(CharsetUtil.UTF_8));
|
||||||
|
|
||||||
|
// Encoder
|
||||||
|
pipeline.addLast("stringEncoder", new {@link StringEncoder}(CharsetUtil.UTF_8));
|
||||||
|
</pre>
|
||||||
|
and then you can use a {@link String} instead of a {@link ByteBuf}
|
||||||
|
as a message:
|
||||||
|
<pre>
|
||||||
|
void channelRead({@link ChannelHandlerContext} ctx, {@link String} msg) {
|
||||||
|
ch.write("Did you say '" + msg + "'?\n");
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.StringEncoder.#ctor">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:DotNetty.Codecs.StringEncoder" /> class with the current system
|
||||||
|
character set.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:DotNetty.Codecs.StringEncoder.#ctor(System.Text.Encoding)">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:DotNetty.Codecs.StringEncoder" /> class with the specified character
|
||||||
|
set..
|
||||||
|
</summary>
|
||||||
|
<param name="encoding">Encoding.</param>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.TooLongFrameException">
|
||||||
|
<summary>
|
||||||
|
A <see cref="T:DotNetty.Codecs.DecoderException" /> which is thrown when the length of the frame
|
||||||
|
decoded is greater than the allowed maximum.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:DotNetty.Codecs.UnsupportedMessageTypeException">
|
||||||
|
<summary>
|
||||||
|
Thrown if an unsupported message is received by an codec.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
|||||||
|
6294ce1c6de551d5f3754fa8d57d8f6d1fe0c8f0
|
||||||
+2415
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
obj\x64\Debug\\_IsIncrementalBuild
|
||||||
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user