09-22-2010 05:32 AM
Hi All,
Is there any way to compare two tests and see the result in any visual format( Graph, or something)
If yes, How can i go for that.?? both manually and in scripting, which ever is possible...
Thank u
Rash
Solved! Go to Solution.
09-22-2010 01:31 PM
Hi Rash.patel,
Sure, we can compare two tests on the same graph in DIAdem. What would you like to see? The simplest approach is to load both tests and graph both tests on the same graph in VIEW or REPORT. You could also subtract ChannelA in Test2 from ChannelA in Test1 and plot Diff_ChannelA on the graph, etc.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-23-2010 02:53 AM
Hi Brad,
I have a problem with acceleration script. even thought i run any dat file always it displays graph for the same file which is mentioned in the script.
If i delete that row, next line chndifferentiate shows error.
How do i make it generic for any dat file to plot the graph?? plz help..
09-23-2010 04:20 AM
Hi Rash.patel,
I modified your script only in some miner points and used some more commands of the DATA-API. I hope it answers (more or less) to your question.
Greetings
Walter
09-24-2010 12:13 AM
Hi Walter,
Its great.. Thank you very much. I have same problem with another script. I tried to code it according to what you have done. But not getting executed properly.
What ever the file i load, the same graph will be loaded which is mentioned in the script( in attachment)
Rdgs,
Rash
09-24-2010 01:24 AM
Hello Rash.patel,
There are no data files in the attachment and I'm not quite sure whether I fully understand your question.
You are referring in the 2D axis to certain channels. If the channel names different in all the files you load, then you need to adapt the channel reference in the axis system.
In the script this looks like:
Call GraphObjOpen("2DAxis1") '------------------- Curve list ------------------------------- Call GraphObjOpen("2DAxis1_Curve1") D2CChnXName = <X-Channel name> D2CChnYName = <Y-Channel name> Call GraphObjClose("2DAxis1_Curve1") Call GraphObjOpen("2DAxis1_Curve2") D2CChnXName = <X-Channel name> D2CChnYName = <Y-Channel name> Call GraphObjClose("2DAxis1_Curve2") Call GraphObjClose("2DAxis1")
You can get this command by using CTRL-A in the open 2D-axis system. (All commands you don't need can be deleted.)
If this doesn't solve the problem please post some more information.
Greetings
Walter
<Y-Channel name>
09-24-2010 01:53 AM
Hi Walter,
Am not getting what you are saying. AM trying to fix my test dat file between two available curves which is in tuv.tdr.
There was a series of discussion happened on the same, which you can find in this link.
http://forums.ni.com/t5/DIAdem/Formula-for-finding-channel-value/td-p/1234321
The script in the acceleration_envelope2 attachment is working BUT, only same graph is displayed for any data file loaded. The middle red curve is not changing at all for any data file loaded.
How can i make this curve to respond for any other data file. Hope this gives you full information.
07-18-2023 01:47 AM
Hi Brad,
i need to compare between more than two tests. when loading another tdms file (why the default is tdm files...?) it doesnt arrange them in the tree by their logs headlines... only log1 log2 etc. ...
how can i arrange each log with its head line(date hour etc in bold...) in clear list in the tree? so when i pop down each one and see its mearuments under it. this way i can compare, (and know what i'm comparing!) between different tests-logs?
please advise,
lior