03-05-2020 09:53 AM
I have a chart with 8 plots. I want to generate a table of Y values for each plot at a specific X value. I have tried using event search, but cant figure out how to spit out what I need.
03-05-2020 11:00 AM - edited 03-05-2020 11:01 AM
Please show us your VI, or a simplified version of it. (actual VI, not a picture).
Is it a chart or a graph? What's the datatype?
("Event search" and "spit" are not typical unambiguous technical terms. No idea what they mean here)
03-06-2020 08:27 AM
By "event search" I'm referring to the DIAdem function of "Event Search". I'm not sure how much less ambiguous I can be.
I'm working within a table and graph. Datatype is all numerical, no waveform.
I am just trying to say for X = 0.143, y = "?"
03-06-2020 09:47 AM
Is the data sorted in x and do you want interpolation if the exact x does not exist?
03-06-2020 11:09 AM
What is your function to generate the y channel (I can show example code)? This sounds like a task for the "channel calculator" located on the top toolbar as a calculator icon
03-11-2020 07:32 AM
The Y channel is not generated. Its brought in from a .txt file.
I was actually able to figure this out using Event Search (Free Formula), not just the regular Event Search.
I was needing Y values, for all X values equaling 0.255. My encoders are accurate to +/- 0.00001 which means I had a whole bunch of data points starting with 0.255xx.
I used A = (X channel)
(A>.254)^(A<.256). This got me everything that started with .255.
For result storage, my "condition fulfilled" was to use value from channel, which I selected as my Y channel.
Then I was able to select Mean, StDev, Max/Min from Characteristic Values and output new channels.
From there I just wrote a script that output those 4 channels from each of my 45 different data sets into Excel and made a chart there (as I couldnt get a pretty chart in DIAdem).
Hopefully this helps someone in the future.
Thanks
03-24-2020 02:28 PM
Hi Jacob,
Consider using the "Row = PNo(Xchannel, Xvalue)" function to return the "row number" for each curve that is closest to the Xvalue you specify. Then you can request the "Yvalue = Ychannel(Row)".
Brad Turpin
Senior Technical Support Engineer
National Instruments