Skip to content

Commit 34da4b0

Browse files
authored
Add a LabVIEW plugin example (#24)
* Example which includes source distribution of the Plugin SDK .lvlib. The example builds against this. * Update .gitignore to include LV stuff * Remove files that shouldn't be submitted * Remove builds files * Go back to LV 2021 version * Save back to LV2021
1 parent c7e0333 commit 34da4b0

32 files changed

+396
-0
lines changed

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
###############################################################################
2+
# Use cg-diff to diff CG files
3+
###############################################################################
4+
*.vi diff=cg-diff
5+
*.vim diff=cg-diff
6+
*.vit diff=cg-diff
7+
*.ctt diff=cg-diff
8+
*.ctl diff=cg-diff

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,37 @@ build/
2424
bld/
2525
[Bb]in/
2626
[Oo]bj/
27+
28+
################################################################
29+
##
30+
## General LabVIEW
31+
##
32+
################################################################
33+
34+
35+
# Libraries
36+
*.llb
37+
38+
# Shared objects (inc. Windows DLLs)
39+
*.dll
40+
*.so
41+
*.so.*
42+
*.dylib
43+
44+
# Executables
45+
*.exe
46+
47+
# Metadata
48+
*.aliases
49+
*.lvlps
50+
.cache/
51+
.vs/
52+
53+
# Builds
54+
/Build Output/
55+
BuiltUI/
56+
57+
# Byte-compiled / optimized / DLL files
58+
__pycache__/
59+
*.py[cod]
60+
*$py.class
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<GPluginMetadata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ni.com/InstrumentStudio/GPluginMetadata">
3+
<Plugins>
4+
<PluginData
5+
UniqueName="National Instruments|Example G Plugin"
6+
DisplayName="Example InstrumentStudio 2021"
7+
PanelType="Examples"
8+
GroupName="NI Example Plugins"
9+
VIPath="ExamplePlugin.lvlibp\ExamplePlugin.lvlib\ExamplePlugin.vi"
10+
SupportedPanelSizes="LargeAndSmall"
11+
ApplicationContext="Unique" />
12+
</Plugins>
13+
</GPluginMetadata>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Library LVVersion="21008000">
3+
<Property Name="NI.Lib.Icon" Type="Bin">)1#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!(]!!!*Q(C=\&gt;8"=&gt;MQ%!8143;(8.6"2CVM#WJ",7Q,SN&amp;(N&lt;!NK!7VM#WI"&lt;8A0$%94UZ2$P%E"Y.?G@I%A7=11U&gt;M\7P%FXB^VL\`NHV=@X&lt;^39O0^N(_&lt;8NZOEH@@=^_CM?,3)VK63LD-&gt;8LS%=_]J'0@/1N&lt;XH,7^\SFJ?]Z#5P?=F,HP+5JTTF+5`Z&gt;MB$(P+1)YX*RU2DU$(![)Q3YW.YBG&gt;YBM@8'*\B':\B'2Z&gt;9HC':XC':XD=&amp;M-T0--T0-.DK%USWS(H'2\$2`-U4`-U4`/9-JKH!&gt;JE&lt;?!W#%;UC_WE?:KH?:R']T20]T20]\A=T&gt;-]T&gt;-]T?/7&lt;66[UTQ//9^BIHC+JXC+JXA-(=640-640-6DOCC?YCG)-G%:(#(+4;6$_6)]R?.8&amp;%`R&amp;%`R&amp;)^,WR/K&lt;75?GM=BZUG?Z%G?Z%E?1U4S*%`S*%`S'$;3*XG3*XG3RV320-G40!G3*D6^J-(3D;F4#J,(T\:&lt;=HN+P5FS/S,7ZIWV+7.NNFC&lt;+.&lt;GC0819TX-7!]JVO,(7N29CR6L%7,^=&lt;(1M4#R*IFV][.DX(X?V&amp;6&gt;V&amp;G&gt;V&amp;%&gt;V&amp;\N(L@_Z9\X_TVONVN=L^?Y8#ZR0J`D&gt;$L&amp;]8C-Q_%1_`U_&gt;LP&gt;WWPAG_0NB@$TP@4C`%`KH@[8`A@PRPA=PYZLD8Y!#/7SO!!!!!!</Property>
4+
<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property>
5+
<Property Name="NI.LV.All.SaveVersion" Type="Str">21.0</Property>
6+
<Property Name="NI.LV.All.SourceOnly" Type="Bool">false</Property>
7+
<Item Name="ExamplePlugin.gplugindata" Type="Document" URL="../ExamplePlugin.gplugindata"/>
8+
<Item Name="ExamplePlugin.vi" Type="VI" URL="../ExamplePlugin.vi"/>
9+
</Library>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Project Type="Project" LVVersion="21008000">
3+
<Property Name="NI.LV.All.SaveVersion" Type="Str">21.0</Property>
4+
<Property Name="NI.LV.All.SourceOnly" Type="Bool">false</Property>
5+
<Property Name="NI.Project.Description" Type="Str"></Property>
6+
<Item Name="My Computer" Type="My Computer">
7+
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
8+
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
9+
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
10+
<Property Name="server.tcp.port" Type="Int">0</Property>
11+
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
12+
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
13+
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
14+
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
15+
<Property Name="specify.custom.address" Type="Bool">false</Property>
16+
<Item Name="Documentation" Type="Folder"/>
17+
<Item Name="ExamplePlugin.lvlib" Type="Library" URL="../ExamplePlugin.lvlib/ExamplePlugin.lvlib"/>
18+
<Item Name="Dependencies" Type="Dependencies">
19+
<Item Name="InstrumentStudio Plugin SDK.lvlib" Type="Library" URL="../Plugin SDK/InstrumentStudio Plugin SDK.lvlib"/>
20+
</Item>
21+
<Item Name="Build Specifications" Type="Build">
22+
<Item Name="Plugin Packed Library" Type="Packed Library">
23+
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
24+
<Property Name="Bld_buildCacheID" Type="Str">{3D28E8C5-785F-4CA5-B7DC-8F661785E925}</Property>
25+
<Property Name="Bld_buildSpecName" Type="Str">Plugin Packed Library</Property>
26+
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
27+
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
28+
<Property Name="Bld_localDestDir" Type="Path">../builds</Property>
29+
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
30+
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
31+
<Property Name="Bld_previewCacheID" Type="Str">{05547330-7608-4C70-A459-D72560977C4B}</Property>
32+
<Property Name="Bld_version.build" Type="Int">2</Property>
33+
<Property Name="Bld_version.major" Type="Int">1</Property>
34+
<Property Name="Destination[0].destName" Type="Str">ExamplePlugin.lvlibp</Property>
35+
<Property Name="Destination[0].path" Type="Path">../builds/NI_AB_PROJECTNAME.lvlibp</Property>
36+
<Property Name="Destination[0].path.type" Type="Str">relativeToProject</Property>
37+
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
38+
<Property Name="Destination[0].type" Type="Str">App</Property>
39+
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
40+
<Property Name="Destination[1].path" Type="Path">../builds</Property>
41+
<Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property>
42+
<Property Name="DestinationCount" Type="Int">2</Property>
43+
<Property Name="PackedLib_callersAdapt" Type="Bool">true</Property>
44+
<Property Name="Source[0].itemID" Type="Str">{8F85B5B4-34DC-4389-9B6D-335957CE22BB}</Property>
45+
<Property Name="Source[0].type" Type="Str">Container</Property>
46+
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
47+
<Property Name="Source[1].itemID" Type="Ref">/My Computer/ExamplePlugin.lvlib</Property>
48+
<Property Name="Source[1].Library.allowMissingMembers" Type="Bool">true</Property>
49+
<Property Name="Source[1].Library.atomicCopy" Type="Bool">true</Property>
50+
<Property Name="Source[1].Library.LVLIBPtopLevel" Type="Bool">true</Property>
51+
<Property Name="Source[1].preventRename" Type="Bool">true</Property>
52+
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
53+
<Property Name="Source[1].type" Type="Str">Library</Property>
54+
<Property Name="SourceCount" Type="Int">2</Property>
55+
<Property Name="TgtF_companyName" Type="Str">National Instruments</Property>
56+
<Property Name="TgtF_enableDebugging" Type="Bool">true</Property>
57+
<Property Name="TgtF_fileDescription" Type="Str">Plugin Packed Library</Property>
58+
<Property Name="TgtF_internalName" Type="Str">Plugin Packed Library</Property>
59+
<Property Name="TgtF_legalCopyright" Type="Str">Copyright © 2021 National Instruments</Property>
60+
<Property Name="TgtF_productName" Type="Str">Plugin Packed Library</Property>
61+
<Property Name="TgtF_targetfileGUID" Type="Str">{F7659C57-F4CE-491C-8E27-3332458AFB6A}</Property>
62+
<Property Name="TgtF_targetfileName" Type="Str">ExamplePlugin.lvlibp</Property>
63+
<Property Name="TgtF_versionIndependent" Type="Bool">true</Property>
64+
</Item>
65+
</Item>
66+
</Item>
67+
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

labview/examples/example-plugin/Plugin SDK/InstrumentStudio Plugin SDK.lvlib

+18
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

labview/examples/example-plugin/Plugin SDK/Plugin Session.lvclass

+247
Large diffs are not rendered by default.
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.

0 commit comments

Comments
 (0)