Randall

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Randall

  1. I was wanting to do the smooth before it went into the graph so I can use the data shown in the graph for reference points for a high/low, pass/fail setup.
  2. how do I call the data up and modify it? I wanted to smooth it and put it in a graph once it has been smoothed, After i have stopped the stream.
  3. I was told it was easier to create an event channel and have the streamed data stored there and then clean it up and do my max and min test off of that, and then if im right i can clear the channel at the start of the next test. I am reading through the help file but can't find where i would save my stream data to the event channel. right now it is just being used in the testdata command. global endtime = systime() global testdata = Sensor[starttime + .5,endtime] beginSeq(StopStream) if ((min(testdata) < 4) || (max(testData) > 6)) OutofRange = 1 endif
  4. global endtime = systime() global testdata = Sensor[starttime,endtime] global smoothedData = smooth(testData,12) beginSeq(StopStream) if ((min(testdata) < 4.81) || (max(testData) > 5.11)) OutofRange = 1 endif i was wanting to smooth the raw data as it came in but another Azeotech told me it's really hard so since in am testing the (testdata) i tried to smooth it before it was processed, but i am still having a hard time getting the good part to pass inside the numbers i set. They are the ones from the graph that is set to with the same smooth command smooth(Sensor,12) as my Y expression. Also the first half second of the signal is a high spike, how to i keep that out of the testdata?
  5. I am trying to read an analog signal coming in that I am streaming from a Labjack, I was trying to figure out how to smooth the sign wave before it was picked up on my graph. I ended up smoothing it in the graph. The only problem with that is I am using high and low peaks to tell whether the part that its reading is bad. If I set the numbers to the information that has been smoothed on the graph it fails every part. Is there a way to smooth it as it comes in or do I have to do it in the graph? If I need to upload my sequence I can, I am just trying to figure out how to use the smoothed info to set my high and low limit.