Skip to content

Commit 165fedf

Browse files
nevstopnevstopCopilotCopilot
authored
Dev 202603 (#6)
* add "API: LInk Sync Engine" * update lvcsm * docs: Move 开源说明 to LICENSE file and add FileSync functional description (#7) * Initial plan * Update README with module API docs and FileSync/FileSyncWindow relationship Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com> * Add functional description to FileSync module interface section Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com> * docs: move 开源说明 to LICENSE file, reference it from README Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com> * docs: replace informal LICENSE with MIT License text, update README reference Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nevstop <8196752+nevstop@users.noreply.github.com> * 整理代码位置,为了当作submodule 使用 * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * refactor: 删除废弃的FileSync配置文件 移除不再使用的FileSync.lvcsm配置文件,该文件包含已废弃的状态机和VI引用配置信息 * update doc --------- Co-authored-by: nevstop <nevstop@NEVSTOP-LAB> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 7889f4f commit 165fedf

137 files changed

Lines changed: 462 additions & 430 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/*.lvlps
33
_build/*
44
*.drawio.bkp
5+
*.lvcsm
6+
*.lvlibp
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
77
<Property Name="NI.SortType" Type="Int">3</Property>
88
<Item Name="Support" Type="Folder">
9-
<Property Name="NI.LibItem.Scope" Type="Int">2</Property>
10-
<Item Name="Prepare Status Table.vi" Type="VI" URL="../_fileSyncWnd_Support/Prepare Status Table.vi"/>
9+
<Property Name="NI.LibItem.Scope" Type="Int">1</Property>
10+
<Item Name="Prepare Status Table.vi" Type="VI" URL="../_support/Prepare Status Table.vi"/>
1111
</Item>
12-
<Item Name="ExternalAPI" Type="Folder">
13-
<Property Name="NI.SortType" Type="Int">3</Property>
14-
<Item Name="Config LocalSync.vi" Type="VI" URL="../ExternalAPI/Config LocalSync.vi"/>
15-
<Item Name="Config FTPSync.vi" Type="VI" URL="../ExternalAPI/Config FTPSync.vi"/>
16-
<Item Name="Exit Module.vi" Type="VI" URL="../ExternalAPI/Exit Module.vi"/>
17-
<Item Name="Link UI.vi" Type="VI" URL="../ExternalAPI/Link UI.vi"/>
12+
<Item Name="Protocol" Type="Folder">
13+
<Item Name="FTPProtocol.lvclass" Type="LVClass" URL="../Protocol/FTP/FTPProtocol.lvclass"/>
14+
<Item Name="Protocol.lvclass" Type="LVClass" URL="../Protocol/Base/Protocol.lvclass"/>
1815
</Item>
1916
<Item Name="CSM-FileSync.vi" Type="VI" URL="../CSM-FileSync.vi"/>
2017
<Item Name="CSM-FileSyncWindow.vi" Type="VI" URL="../CSM-FileSyncWindow.vi"/>

CSM-FileSync.vi

320 KB
Binary file not shown.

CSM-FileSyncWindow.vi

205 KB
Binary file not shown.

FileSync.lvcsm

Lines changed: 0 additions & 74 deletions
This file was deleted.

FileSync.lvproj

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,10 @@
1212
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
1313
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
1414
<Property Name="specify.custom.address" Type="Bool">false</Property>
15-
<Item Name="src" Type="Folder">
16-
<Item Name="_example" Type="Folder">
17-
<Item Name="App - FileSync Example.vi" Type="VI" URL="../src/_example/App - FileSync Example.vi"/>
18-
</Item>
19-
<Item Name="Prootocol" Type="Folder">
20-
<Item Name="FileSync -- Base.lvlib" Type="Library" URL="../src/_fileSync_Support/Base/FileSync -- Base.lvlib"/>
21-
<Item Name="FileSync -- FTP.lvlib" Type="Library" URL="../src/_fileSync_Support/FTP/FileSync -- FTP.lvlib"/>
22-
</Item>
23-
<Item Name="CSM-FileSync.lvlib" Type="Library" URL="../src/CSM-FileSync.lvlib"/>
15+
<Item Name="_example" Type="Folder">
16+
<Item Name="App - FileSync Example.vi" Type="VI" URL="../_example/App - FileSync Example.vi"/>
2417
</Item>
18+
<Item Name="CSM-FileSync.lvlib" Type="Library" URL="../CSM-FileSync.lvlib"/>
2519
<Item Name="Dependencies" Type="Dependencies">
2620
<Item Name="user.lib" Type="Folder">
2721
<Item Name="API String Arguments Support.lvlib" Type="Library" URL="/&lt;userlib&gt;/_NEVSTOP/Communicable State Machine(CSM)/addons/API-String-Arugments-Support/API String Arguments Support.lvlib"/>
@@ -33,13 +27,12 @@
3327
<Item Name="CSM MassData Parameter Support.lvlib" Type="Library" URL="/&lt;userlib&gt;/_NEVSTOP/Communicable State Machine(CSM)/addons/MassData-Parameter/CSM MassData Parameter Support.lvlib"/>
3428
<Item Name="CSM Shared.lvlib" Type="Library" URL="/&lt;userlib&gt;/_NEVSTOP/Communicable State Machine(CSM)/_Shared/CSM Shared.lvlib"/>
3529
<Item Name="Def-MassData Status Indicator(Vertical).ctl" Type="VI" URL="/&lt;userlib&gt;/_NEVSTOP/Communicable State Machine(CSM)/addons/MassData-Parameter/Utility/Def-MassData Status Indicator(Vertical).ctl"/>
36-
<Item Name="Delete Elements from Array-VIM.vim" Type="VI" URL="/&lt;userlib&gt;/_Hooovahh/Array VIMs/OpenG/Delete Elements from Array-VIM.vim"/>
37-
<Item Name="Enum - Order Ascending Descending.ctl" Type="VI" URL="/&lt;userlib&gt;/_Hooovahh/Array VIMs/Controls/Enum - Order Ascending Descending.ctl"/>
38-
<Item Name="Filter 1D Array-VIM.vim" Type="VI" URL="/&lt;userlib&gt;/_Hooovahh/Array VIMs/OpenG/Filter 1D Array-VIM.vim"/>
30+
<Item Name="Delete Elements from 1D Array_nevstop.vim" Type="VI" URL="/&lt;userlib&gt;/NEVSTOP-Programming-Palette/Array/Delete Elements from 1D Array_nevstop.vim"/>
31+
<Item Name="Filter 1D Array_nevstop.vim" Type="VI" URL="/&lt;userlib&gt;/NEVSTOP-Programming-Palette/Array/Filter 1D Array_nevstop.vim"/>
3932
<Item Name="MGI Wrap String to Pixel Width.vi" Type="VI" URL="/&lt;userlib&gt;/_MGI/Picture &amp; Image/MGI Wrap String to Pixel Width.vi"/>
4033
<Item Name="MGI Wrap Word to Pixel Width.vi" Type="VI" URL="/&lt;userlib&gt;/_MGI/Picture &amp; Image/MGI Wrap Word to Pixel Width.vi"/>
41-
<Item Name="Sort 1D Array-VIM.vim" Type="VI" URL="/&lt;userlib&gt;/_Hooovahh/Array VIMs/OpenG/Sort 1D Array-VIM.vim"/>
42-
<Item Name="Two-Way Comparison Versus Array Element No Class.vim" Type="VI" URL="/&lt;userlib&gt;/_Hooovahh/Array VIMs/Sorted Search Support/Two-Way Comparison Versus Array Element No Class.vim"/>
34+
<Item Name="Remove Duplicates from 1D Array_nevstop.vim" Type="VI" URL="/&lt;userlib&gt;/NEVSTOP-Programming-Palette/Array/Remove Duplicates from 1D Array_nevstop.vim"/>
35+
<Item Name="Search 1D Array_nevstop.vim" Type="VI" URL="/&lt;userlib&gt;/NEVSTOP-Programming-Palette/Array/Search 1D Array_nevstop.vim"/>
4336
</Item>
4437
<Item Name="vi.lib" Type="Folder">
4538
<Item Name="Add State(s) to Queue__JKI_lib_State_Machine.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_JKI Toolkits/State Machine/_JKI_lib_State_Machine.llb/Add State(s) to Queue__JKI_lib_State_Machine.vi"/>
@@ -93,7 +86,7 @@
9386
<Item Name="Unset Busy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Unset Busy.vi"/>
9487
<Item Name="whitespace.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/whitespace.ctl"/>
9588
</Item>
96-
<Item Name="FTP.lvlib" Type="Library" URL="../src/_fileSync_Support/FTP/_support/FTP Toolkit/FTP.lvlib"/>
89+
<Item Name="FTP.lvlib" Type="Library" URL="../Protocol/FTP/FTP Toolkit/FTP.lvlib"/>
9790
<Item Name="System" Type="VI" URL="System">
9891
<Property Name="NI.PreserveRelativePath" Type="Bool">true</Property>
9992
</Item>
@@ -109,7 +102,7 @@
109102
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
110103
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
111104
<Property Name="Bld_previewCacheID" Type="Str">{5710C2B7-F67F-47D0-B56B-3594DF110073}</Property>
112-
<Property Name="Bld_version.build" Type="Int">4</Property>
105+
<Property Name="Bld_version.build" Type="Int">6</Property>
113106
<Property Name="Bld_version.major" Type="Int">1</Property>
114107
<Property Name="Destination[0].destName" Type="Str">CSM-FileSync.lvlibp</Property>
115108
<Property Name="Destination[0].path" Type="Path">../_build/CSM-FileSync.lvlibp</Property>
@@ -121,10 +114,10 @@
121114
<Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property>
122115
<Property Name="DestinationCount" Type="Int">2</Property>
123116
<Property Name="PackedLib_callersAdapt" Type="Bool">true</Property>
124-
<Property Name="Source[0].itemID" Type="Str">{B86FBEB9-0865-465C-ABD4-550DDD45F8FE}</Property>
117+
<Property Name="Source[0].itemID" Type="Str">{A991D821-D546-4E3D-96A0-7546C42C6E19}</Property>
125118
<Property Name="Source[0].type" Type="Str">Container</Property>
126119
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
127-
<Property Name="Source[1].itemID" Type="Ref">/My Computer/src/CSM-FileSync.lvlib</Property>
120+
<Property Name="Source[1].itemID" Type="Ref">/My Computer/CSM-FileSync.lvlib</Property>
128121
<Property Name="Source[1].Library.allowMissingMembers" Type="Bool">true</Property>
129122
<Property Name="Source[1].Library.atomicCopy" Type="Bool">true</Property>
130123
<Property Name="Source[1].Library.LVLIBPtopLevel" Type="Bool">true</Property>

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 The Project Authors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/_fileSync_Support/Base/Protocol/Check.vi renamed to Protocol/Base/Check.vi

7.96 KB
Binary file not shown.

src/_fileSync_Support/Base/Protocol/Cleanup.vi renamed to Protocol/Base/Cleanup.vi

8.19 KB
Binary file not shown.

Protocol/Base/Config LocalSync.vi

17.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)