Can you split the 4 xy point for your envelope int two envelopes:
Upper Limit 0,0 3,6 9,9
Lower Limit 3,0 9,9 (or maybe 0,0 3,0 9,9 if you need to start at x=0)
Then in your limit check connect both upper and lower envelopes.
Have a look at the attached vi, it's not very tidy and there may be a problem with the number of samples in the various arrays, it may give you some ideas to try.