[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disp messages not shown during execution...
From: |
Juan Pablo Carbajal |
Subject: |
Re: disp messages not shown during execution... |
Date: |
Tue, 23 Jul 2013 00:50:24 +0200 |
On Mon, Jul 22, 2013 at 9:13 PM, martine1212
<address@hidden> wrote:
> Hello:
> Strange problem over here....
>
> I have some disp ('message to user') functions that do not show up until
> after the script has finished executing.
> When I am debugging (step by step using a GUI) the messages show up as
> expected.
> But when I am running directly from the octave command line.... the messages
> notifying the user about the progress of the measurement do not show up
> until after everything is done.
>
> HP8510C data collection V1.0
> Configuration to be loaded
> CAL SET 1 will be recalled
> Full two port 1.85mm calibration
> 0.045 GHz to 50.000 GHz, step MODE, 801 points
> Averaging= 1, Smoothing= 1.00
> Source1 at -30.00 dBm, 0.30 dB/GHz slope
> Port1 extension = 0.00 ns and Port2 extension = 0.00 ns
> Port1 attenuator= 10 dB, Port2 attenuator= 10 dB
>
> Is this the required configuration (y/n)?? (Enter => y):
>
> After hitting "y" there are supposed to be some extra messages...
>
> Configuring 8510C.....
>
> Configuration done, starting measurement....
>
> But as I said they do not show up at all until everything is done.... which
> is not the intended use.
> I put some pauses but that does not help...
>
> Any ideas??
>
>
> Sample code
>
> Configuration_string=sprintf(['\n\nHP8510C data collection V1.0 \n', ...
> 'Configuration to be loaded \n', ...
> 'CAL SET %2.0f will be recalled \n', ...
> 'Full two port calibration \n', ...
> '%2.3f GHz to %2.3f GHz, %s MODE, %d points \n', ...
> 'Averaging= %d, Smoothing= %2.2f \n', ...
> 'Source1 at %3.2f dBm, %3.2f dB/GHz slope \n', ...
> 'Port1 extension = %2.2f ns and Port2 extension = %2.2f ns \n', ...
> 'Port1 attenuator= %d dB, Port2 attenuator= %d dB \n'], ...
> Calset, F_start/1e9, F_stop/1e9, Sweep_mode, N_points, Averaging_factor,
> Smoothing_factor, ...
> Power_source1, Power_slope, Port_extension1, Port_extension2,
> Port1_attenuator, Port2_attenuator);
> disp('Make sure the calset matches the provided configuration');
> disp('Some parameters are overwritten when a CALSET is re-called');
> disp(Configuration_string);
> Cans=input("Is this the required configuration (y/n)?? (Enter => y):
> ",'s');
> endwhile
> pause(0.5);
> fprintf('\n');
> #End of configuration input
> disp('Configuring 8510C.....');
> pause(0.5);
>
>
>
>
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/disp-messages-not-shown-during-execution-tp4655909.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
you need to flush standard output (disp should have this on its body)
fflush(stdout)