Skip to content

Commit 805da51

Browse files
committed
Initial Commit of basic API Framework
The connection is proven with Get All Units endpoint.
1 parent 0af6a11 commit 805da51

15 files changed

+477
-2
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Libraries
2+
*.lvlibp
3+
*.llb
4+
5+
# Shared objects (inc. Windows DLLs)
6+
*.dll
7+
*.so
8+
*.so.*
9+
*.dylib
10+
11+
# Executables
12+
*.exe
13+
14+
# Metadata
15+
*.aliases
16+
*.lvlps
17+
.cache/
18+
19+
# Developer Tools
20+
#.token is a file which can be used to store a the developer's token without the risk of it being added to SCC!
21+
.token

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# labview-client
2-
Streaming data to Nominal from LabVIEW
1+
# LabVIEW Client for Nominal IO
2+
Streaming data to Nominal from LabVIEW.
3+
4+
5+
## Notes for developers
6+
### LabVIEW Version
7+
The sourcecode is written in **LabVIEW 2020 SP1** _32-bit or 64-bit_.
8+
9+
### Installing Dependencies
10+
In the `lv_src` directory there is a `*.vipc` file. Apply this file using **VIPM**.
11+
12+
### Adding a development API Token
13+
For development purposes, you can add a `.token` file to the `lv_src` directory of the repository containing your API token. LabVIEW will recognize this file for testing. The `.token` file is excluded from source control, allowing you to securely test your code without embedding your API token directly into the source code.
14+
15+
### Building the reuse package
16+
In the `lv_src` directory there is a `*.vipb` file. This file is the build specification for **VIPM**.

lv_src/.vipb

Lines changed: 268 additions & 0 deletions
Large diffs are not rendered by default.

lv_src/.vipc

13.1 KB
Binary file not shown.
11 KB
Binary file not shown.

lv_src/Nominal Client.lvproj

Lines changed: 67 additions & 0 deletions
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="20008000">
3+
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
4+
<Property Name="NI.Project.Description" Type="Str"></Property>
5+
<Item Name="My Computer" Type="My Computer">
6+
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
7+
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
8+
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
9+
<Property Name="server.tcp.port" Type="Int">0</Property>
10+
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
11+
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
12+
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
13+
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
14+
<Property Name="specify.custom.address" Type="Bool">false</Property>
15+
<Item Name="Nominal Client.lvclass" Type="LVClass" URL="../Nominal Client/Nominal Client.lvclass"/>
16+
<Item Name="Simple - Get All Units.vi" Type="VI" URL="../Examples/Simple - Get All Units.vi"/>
17+
<Item Name="Dependencies" Type="Dependencies">
18+
<Item Name="vi.lib" Type="Folder">
19+
<Item Name="Application Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Application Directory.vi"/>
20+
<Item Name="BuildHelpPath.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/BuildHelpPath.vi"/>
21+
<Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/>
22+
<Item Name="Check Special Tags.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Check Special Tags.vi"/>
23+
<Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/>
24+
<Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Convert property node font to graphics font.vi"/>
25+
<Item Name="Details Display Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Details Display Dialog.vi"/>
26+
<Item Name="DialogType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogType.ctl"/>
27+
<Item Name="DialogTypeEnum.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogTypeEnum.ctl"/>
28+
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/>
29+
<Item Name="Error Code Database.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Code Database.vi"/>
30+
<Item Name="ErrWarn.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/ErrWarn.ctl"/>
31+
<Item Name="eventvkey.ctl" Type="VI" URL="/&lt;vilib&gt;/event_ctls.llb/eventvkey.ctl"/>
32+
<Item Name="Find Tag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find Tag.vi"/>
33+
<Item Name="Format Message String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Format Message String.vi"/>
34+
<Item Name="General Error Handler Core CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler Core CORE.vi"/>
35+
<Item Name="General Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler.vi"/>
36+
<Item Name="Get String Text Bounds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Get String Text Bounds.vi"/>
37+
<Item Name="Get Text Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Get Text Rect.vi"/>
38+
<Item Name="GetHelpDir.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetHelpDir.vi"/>
39+
<Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetRTHostConnectedProp.vi"/>
40+
<Item Name="Is Path and Not Empty.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Is Path and Not Empty.vi"/>
41+
<Item Name="JDP Utility.lvlib" Type="Library" URL="/&lt;vilib&gt;/JDP Science/JDP Science Common Utilities/JDP Utility.lvlib"/>
42+
<Item Name="JSONtext.lvlib" Type="Library" URL="/&lt;vilib&gt;/JDP Science/JSONtext/JSONtext.lvlib"/>
43+
<Item Name="LabVIEWHTTPClient.lvlib" Type="Library" URL="/&lt;vilib&gt;/httpClient/LabVIEWHTTPClient.lvlib"/>
44+
<Item Name="lib_NI_Advanced HTTP Client.lvlib" Type="Library" URL="/&lt;vilib&gt;/NI/Advanced HTTP Client/lib_NI_Advanced HTTP Client.lvlib"/>
45+
<Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Longest Line Length in Pixels.vi"/>
46+
<Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/>
47+
<Item Name="LVRectTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVRectTypeDef.ctl"/>
48+
<Item Name="lvwebclient_64.dll" Type="Document" URL="/&lt;vilib&gt;/NI/Advanced HTTP Client/lvwebclient_64.dll"/>
49+
<Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/>
50+
<Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/>
51+
<Item Name="Not Found Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Not Found Dialog.vi"/>
52+
<Item Name="REST Client.lvlib" Type="Library" URL="/&lt;vilib&gt;/addons/_JKI.lib/REST Client/REST Client.lvlib"/>
53+
<Item Name="Search and Replace Pattern.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Search and Replace Pattern.vi"/>
54+
<Item Name="Set Bold Text.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set Bold Text.vi"/>
55+
<Item Name="Set String Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set String Value.vi"/>
56+
<Item Name="Simple Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Simple Error Handler.vi"/>
57+
<Item Name="Space Constant.vi" Type="VI" URL="/&lt;vilib&gt;/dlg_ctls.llb/Space Constant.vi"/>
58+
<Item Name="TagReturnType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/TagReturnType.ctl"/>
59+
<Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog CORE.vi"/>
60+
<Item Name="Three Button Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog.vi"/>
61+
<Item Name="Trim Whitespace.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Trim Whitespace.vi"/>
62+
<Item Name="whitespace.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/whitespace.ctl"/>
63+
</Item>
64+
</Item>
65+
<Item Name="Build Specifications" Type="Build"/>
66+
</Item>
67+
</Project>

lv_src/Nominal Client/Nominal Client.lvclass

Lines changed: 105 additions & 0 deletions
Large diffs are not rendered by default.
20.1 KB
Binary file not shown.
22.8 KB
Binary file not shown.

lv_src/Nominal Client/create.vi

26.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)