DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't search Maximum or Minimum, but they show up in base properties in the data portal

If I load data into the data portal, I can see the base properties of Maximum and Minimum are populated with values, and they are grayed out. When I search for channels though, that same channel shows NOVALUE for the maximum and minimum. I've looked through this

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000001De0uSAC&l=en-US

and adjusted some settings but it didn't change anything. Can anyone help me figure out how to search by maximum?

Thanks!

0 Kudos
Message 1 of 6
(3,325 Views)

Hi SamHH1,

 

When this has happened to me in past, When DIAdem loads data into portal it calculates the min and max.  But if I am making the file in LabVIEW, I need to calculate minimum and maximum and then save properties so that it can then have values to search when using Datafinder.

 

Another option would be to scan through all files in DIAdem then saving them back out, that should get the max and min calculated and in the files (assuming that they are Tdms)

 

Paul

0 Kudos
Message 2 of 6
(3,264 Views)

Good to know, the data I am looking at was written through LabVIEW. I will try saving those properties and also saving the files back out to see if the max and min get calculated.

Thanks!

0 Kudos
Message 3 of 6
(3,249 Views)

You can automate that task using DataFinder Server's Data Preprozessor:

https://www.ni.com/en/shop/electronic-test-instrumentation/application-software-for-electronic-test-...

 

0 Kudos
Message 4 of 6
(3,231 Views)

You could run

Call ChnCharacterAll()

, although it could take some time if you have a ton of data.

https://www.ni.com/docs/en-US/bundle/diadem/page/comoff/chncharacterall.htm

 

0 Kudos
Message 5 of 6
(3,195 Views)

VeriStand does not calculate these parameters so post-processing in DIAdem is required.  

 

Here is a great solution from Savvy DIAdem solutions - http://www.savvydiademsolutions.com/navigator.php?topic=max-min-data-file-channel-update

 

This script will calculate Min/Max values on all channels in a DIAdem Navigator search and save the files with this new metadata:  

 

Call LogFileDel
Dim sFilePath, oGrp, oChn, sChn, oChnGrpDic, iChn, oSearchResults, oSearchResult
Set oSearchResults = Navigator.Display.CurrDataFinder.ResultsList.ResultsElements
If oSearchResults.Count = 0 Then Call Err.Raise(65535,,"No Navigator search results to process!")
For Each oSearchResult In oSearchResults
'Load the data file from the search results..
Call LogFileWrite(oSearchResult.Properties("folder").Value & "\" & oSearchResult.Properties("filename").Value)
sFilePath = oSearchResult.Properties("folder").Value & "\" & oSearchResult.Properties("filename").Value
Call Data.Root.Clear
Call DataFileLoad(sFilePath, "TDMS", "Load|ChnXYRelation")
Call Portal.Refresh
' Update the maximum & minimum values for all channels loaded in the Data Portal.
Call ChnCharacterAll()
' Save the updated data.
Call DataFileSave(sFilePath, "TDMS", True)
Next

0 Kudos
Message 6 of 6
(2,499 Views)