07-23-2019 04:58 PM
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!
07-24-2019 10:58 AM
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
07-24-2019 12:15 PM
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!
07-25-2019
09:24 AM
- last edited on
08-28-2025
02:05 PM
by
Content Cleaner
You can automate that task using DataFinder Server's Data Preprozessor:
07-29-2019
01:16 PM
- last edited on
08-28-2025
02:08 PM
by
Content Cleaner
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
03-02-2021 08:33 AM
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