Author Topic: Oscillator Min Period? [Resolved]  (Read 3124 times)

Offline PatrickS

  • PLUS+1 Developer
  • ***
  • Posts: 14
  • Karma: +0/-0
Oscillator Min Period? [Resolved]
« on: February 02, 2021, 03:16:37 PM »
I was working on setting up some counters to count up to 1000 over a given time. I'm trying to accomplish this be hooking up oscillators with 1ms on and a given period into a Loop Counter.
I noticed that all my counters were finishing at the same time even if their input oscillators had different periods. Trying to look into it further, I put a Measure Period on each of my oscillators and they all report 50 ms, instead of the expected 2ms, 5ms, and 10ms.
I see in the manual it says that an Oscillator has minimum period of 2 x loop time, but shouldn't the loop time be less than 25 ms? I thought loop time would be 1/72MHz.
« Last Edit: February 08, 2021, 04:55:57 PM by PatrickS »

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 191
  • Karma: +35/-1
Re: Oscillator Min Period?
« Reply #1 on: February 03, 2021, 12:35:56 PM »
Check the value set for ExecTimeOut (Inputs-OS).

You can check the actual loop time in the Service Tool by adding a standard log for OS.ExecTime

I think the minimum loop time will depend on the complexity of the software and how many instructions the processor has it execute each loop.


Offline PatrickS

  • PLUS+1 Developer
  • ***
  • Posts: 14
  • Karma: +0/-0
Re: Oscillator Min Period?
« Reply #2 on: February 03, 2021, 04:47:19 PM »
Oh ok, thanks.
I would like to check my loop time but not sure how to do so. Are you saying that i can just put a checkpoint on OS.ExecTime and the output of that is my loop time?

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 191
  • Karma: +35/-1
Re: Oscillator Min Period?
« Reply #3 on: February 03, 2021, 05:26:29 PM »

You should not need to add a Checkpoint. Connect with the Service Tool and add a standard log, select the ECU and scroll down through the available signals, you should find OS.ExecTime which is your loop time.