취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Add Product Information using LabVIEW API

해결 완료!
솔루션으로 이동

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 포인트
1/5 메시지
2,575 조회수

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 포인트
2/5 메시지
2,551 조회수

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 포인트
3/5 메시지
2,539 조회수
솔루션
주제 작성자 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 포인트
4/5 메시지
2,537 조회수

Got it. 

 

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

Kenny

0 포인트
5/5 메시지
2,528 조회수