SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

Add Product Information using LabVIEW API

Solved!
Go to solution

I am trying to figure out how to add the Product in the Test Monitor.

 

I see this page, but I must have missed where they explain how to update the Product.  https://forums.ni.com/t5/SystemLink/Adding-Product-and-Serial-Number-Info-to-Results/m-p/4201085

 

All the examples seem to have the Product and Part number the same.

 

I found this page: https://www.ni.com/docs/en-US/bundle/systemlink/page/systemlink-properties.html

 

The property seems to be have two options: 

Product nitmProduct Type of device under test Test Monitor cRIO-9030

 

 

Both options provide the same result.

Kenny_K_0-1653704329295.png

 

Test Monitor Results:

 

Kenny_K_1-1653704386984.png

 

 

Kenny

0 Kudos
Message 1 of 5
(1,701 Views)

Doing some more reading on the forum, I guess I cannot use the Product field as I intended.

 

According to this, the Product field is filled in automatically by systemlink, based on the part number: https://forums.ni.com/t5/SystemLink/Filling-correctly-the-Test-Result-Header-Test-Monitor-Tab/m-p/40...

 

Kenny_K_0-1653760445153.png

 

 

I was planning to use the Product as a "family" of part numbers.

 

For example, we might have a family of Widgets, which have part numbers 12345-001, 12345-002

 

And another family of Gadgets, which have part numbers 11111-001, 11111-002.

I was thinking that I could specify the Product to equal Widgets.

I think instead, I will need to create a custom property "Family", and use the value of either Widgets or Gadgets.

Kenny

0 Kudos
Message 2 of 5
(1,677 Views)

While we don't have a native LabVIEW API for adding and updating Products, you can use the HTTP primitives in LabVIEW to call the /nitestmonitor/v2/products API to specify the name, family, and custom properties for a part number.

 

You can find more information about the additional SystemLink HTTP APIs by clicking on the ? on the top right hand of any SystemLink web page and selecting HTTP API. It will default to showing you the main API for that page, but you can use the drop-down to select other APIs.

 

Screen Shot 2022-05-31 at 8.23.38 AM.png

0 Kudos
Message 3 of 5
(1,665 Views)
Solution
Accepted by topic author Kenny_K

Here is a link to a LabVIEW example that uses the LV HTTP primitives to make calls to the SystemLink HTTPs for querying assets. You should be able to do something similar for the Test Monitor Products API.

 

https://github.com/ni/systemlink-labview-examples/tree/master/Asset%20Management

0 Kudos
Message 4 of 5
(1,663 Views)

Got it. 

 

I was able to update the products via this method, thank you.

Kenny

0 Kudos
Message 5 of 5
(1,654 Views)