DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Mismatch time/block in timeslice, although all set to match

Solved!
Go to solution

Hi, I want to control an actuator on a valve with either a manually adjusted potentiometer, or automatically in a PID loop.  I see we can select the signal using the "time slice" module, such as in the "WaveFormGenerator" example.

 

However, I get a "mismatched time info or block length..." error.  I've matched all signals to run with "global" block size and "driver" time sync.  And now I'm stuck.  I'm burning time, where is this error coming from?  I'm attaching both a screen shot and the chunk of sample code.  Thanks for any ideas.

 

P.S. - I'm using DASYlab 9.0

 

Download All
0 Kudos
Message 1 of 8
(8,094 Views)

For this one, you need to use the signal adaptation with the method "Linear interpolation" before the time slice.

 

This will make sure you will syncronize all the channels with the same time and block size.

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
Message 2 of 8
(8,090 Views)
Solution
Accepted by topic author Steve the EIT

It loaded and ran okay on V11. What's your driver? How is it configured?

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 3 of 8
(8,085 Views)

Thanks for your quick response.  Tom and cj.  I wish I had a better response, but it's working now, and with nothing more than a reboot as far as I can tell.

 

I do appreciate you drawing my attention to the signal adaptation and the driver though, as I can see where I'm going to need to be familiar with these in the very near future.

 

Thanks agian, Steve

0 Kudos
Message 4 of 8
(8,057 Views)

I'm delighted that it works now.

 

Personally, I dislike the Adapt module.It can create as many problems as it fixes.

 

Remember to try all synchronization options before resorting the Signal Adaptation module.

 

When using software controls, such as the Switch or Slider, they allow you to both choose another Timebase (they default to Driver), or, you can create a timing input on them ("With Input"). This seems to work well when trying to work with averaged, separated, or relayed data where the original timing has been changed.

 

Another frequent error can be resolved by verifying that the AVERAGE module is configured the same way for each channel.

 

When using Signal Adapt, the faster channel should be connected to the Channel 0 of the module. That's the pacer, and other channels are interpolated up to the higher speed.

 

And finally, don't put Adapt modules in series. If the timing is really that problematic, then you may need to step back and review the application logic to figure out a different approach.

 

When I have to resort to using a Signal Adapt module, I usually turn on the View -> Animation-> FIFO Status (FIFO Filling Level) to monitor the data flow in the worksheet. Over the years, I've seen too many worksheets crawl to a stop because of very small timing changes.

 

In summary, I really dislike the Signal Adapt module. It's a last resort for me. I try to figure out the problem and work around it. I have some worksheets where the data gets stored in Global Variables using the Write Variable module, and read back using Read Variable, simply to fix a timing problem.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 5 of 8
(8,030 Views)

Hi CJ.

If you modify the slider to accomodate an input signal in order to sync the data streams, what do you put on the input side? I am also getting a mismatched time error. In my case it is in a formula modual that calculates an output voltage based on an analogue input value and the value set on a slider.

 

I have tried all of the time base variables, as you suggest, but cannot seem to work around the issue.

-Roy

0 Kudos
Message 6 of 8
(7,502 Views)

The sync signal should be the same as the other ones you are using with the analog input so that the sliders will use the same timebase

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 7 of 8
(7,500 Views)

Thanks, Tom.

 

Have routed my analog input signal to both my slider and switch (input) and am now free of the time base error.

 

Appreciate the input.

 

Roy

0 Kudos
Message 8 of 8
(7,497 Views)