01-21-2016 06:00 AM
Hello,
The setup of my testbend is shown on Fig.1, Fig.2.
Here are its features:
Playing with thist testbend I've observed 2 strange phenomenas:
Any comments welcome.
Thanks in advance
Pavel
Fig.1
Fig.2
Solved! Go to Solution.
01-21-2016 06:14 AM
01-21-2016 06:41 AM
Denis,
First, thanks for feedback.
"Calculate" probably isn't proper word.
But, Ok ... I proceed this way:
Regards
Pavel
01-21-2016 06:50 AM
Pavel_47 wrote: Certify that waveform on osciloscope changes about 15sec. later
Now that just opens up another can of worms. What oscilloscope? What settings are you using for the oscilloscope (timebase, display mode, trigger settings, etc)?
My suspicion is that you are using a setting that the scope does not show the waveform until is has been fully captured and you have a really large timebase so that it takes 15 seconds for a waveform to display on the scope.
01-21-2016 07:50 AM
01-21-2016 09:13 AM
Dennis,
Here is my code (in attachment).
I've sligthly modified my setup - on Fig.1 and Fig.2 - the snapshots of the Block Diagram and running Front Panel.
I've also change oscillscope: before it was very old HP 150MHz 4-channel, now it's Tektronix TDS 2004C.
Just before changing it seems that HP didn't work at all, so probably Crossrulz had reason.
Now the visual oscilloscope reaction is much better ... at least it's less than 15sec, but still isn't instant.
Also waveform deformation persists - it isn't perfect Sawtooth as it's supposed to be ... especially at low frequencies.
I will further investigate is it the problem of synchronization.
Can you, please, just check if the timing parameters in 3 "players" ("Simulate Signal" and 2 "DAQ Assistant") are coherent.
Also is it possibly to display on WaveForm graph more than 1 period of waveforms.
When I set X-axis to "Autoscale", only 1 period of waveform is displayed.
When I uncheck "Autoscale" and set maximum to 1 sec (with Autoscale it's 0.1 sec), axis scale indeed rises to 1sec, but waveforms remain displayed until 0.1 sec.
Thanks in advance
Pavel
P.S. In the post that will follow I'll also send the table where I resume timing parametrs of different blocks (due to message lengt limitation)
Fig.1
Fig.2
01-21-2016 09:20 AM
In the attached .pdf - timing parameters of "Simulate Signal" and 2 DAC assistants.
Regards
Pavel
01-21-2016 09:25 AM
01-21-2016 09:36 AM
I'm not sure how a USB 6521 works, mainly because I can't find it on NI's website anywhere. As far as I know, two express VIs can't run at the same time on the same device and you have no dependency between the two VIs to guarantee the order of operation.
01-22-2016 08:59 AM
It seems to be Ok.
I succeed to have both signals (output from "Simulate Signal" and from Analog Input) to have the same scale on WaveGraph (i.e. 5 periods of 5Hz-Sawtooth on 1-sec X-scale)
The only combination of the timing parameters where it was Ok were all timing parameters in 3 blocks were equal to 100k.
In this case all ratios are 1. In other case, where all ratios are equal to 10, both signals have also the same scale, but on 0.1 X-scale, so only half-period of 5Hz-Sawtooth is displayed).
When ratios aren't equal, either both signals have different scales, either VI doesn't run and outputs error.
Simulate Signal |
Analog Output |
Analog Input |
||||||
Samples per second |
Number of samples |
ratio |
Samples to Write |
Rate [Hz] |
ratio |
Samples to Read |
Rate [Hz] |
ratio |
100k |
100k |
1 |
100k |
100k |
1 |
100k |
100k |
1 |
The time of reaction to parameter change seems to be correct ... at least less than 1 sec, difficult to estimate more precisely using only visual control.
In the case where only half-period is displayed it's quite difficult to estimate reactivity even visually, that's why I searched for correct parametrizing.
Thanks a lot to all participants.
Best Regards
Pavel