If you are using the interval to schedule a sample with manually entered measurements, you can add event.setScheduleStart(start date) to your script. This will create a sample with no measurements that will appear in the sample list with a due date and time as specified by the start date parameter. Or another way to look at it is it will schedule a sample with a start time in the future.
If you are the interval to automatically record sample measurements from Ignition tags, then it will create the sample if you include event.setCreateSample(1) in your script.
Make sure the coming due minutes are at least 1440 (one day), else it will not appear correctly in the sample list component. The appearance problem is fixed and will be included in the next release.
from java.util import Calendar
#Get the last time a sample was scheduled
secSinceLastScheduled = event.getSecSinceLastSampleScheduled()
#If a sample has not been scheduled for the next schedule time, schedule a new sample
if secSinceLastScheduled == None or secSinceLastScheduled >= 300:
#Calc the start time to schedule the next sample
#getInterval() must be between 1 and 24
hour = int(event.getInterval())
start = Calendar.getInstance()
#Calc the finish time of the sample by adding the duration to the start time
duration = int(event.getDuration() * 60)
finish = Calendar.getInstance()
#Create new sample - no values are recorded