DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate table of Y values at Specific X value

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.

0 Kudos
Message 1 of 7
(3,139 Views)

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)

0 Kudos
Message 2 of 7
(3,125 Views)

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 = "?"

0 Kudos
Message 3 of 7
(3,085 Views)

Is the data sorted in x and do you want interpolation if the exact x does not exist?

0 Kudos
Message 4 of 7
(3,081 Views)

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

0 Kudos
Message 5 of 7
(3,076 Views)

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

 

 

Message 6 of 7
(3,043 Views)

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

0 Kudos
Message 7 of 7
(3,000 Views)