Delay an output by one sec.
Hi, i'm new with labview and stuck with a problem. I need to buffer a signal output by one second in order to add it to the total sum of this signal output. I'm calculating the kWh where I have to add up all the power together by one second interval.
You could use a while loop, running during one second. Calculate de sum of all the power inputs, using a shift register, and divide by the loop indes (+1). See the attached vi to find how to program a one second integration period. Remember that software timing is strongly dependent on Windows...
CC
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left...
Attachments:
OneSecondAverage.vi 25 KB
Similar Messages
-
How to create a multiple PDF-form outputs into one PDF?
Hi,
I`d like to create a PDF document with a few pages in it, build from different PDF-forms using many form-function calls. Where each PDF-form can use its own interface.
I`ve made a simple programme, but as the result I have a few separated documents with scrolling tab instead of one document with all pages in it.
What am I doing wrong?
*& Report ZZ_TEST_PDF_MULTY
REPORT zz_test_pdf_multy.
PARAMETERS:
p_page TYPE i DEFAULT 2,
p_row TYPE i DEFAULT 4.
END-OF-SELECTION.
DATA:
tb_itf TYPE tsftext,
s_itf TYPE tline.
DATA:
c_fmname TYPE rs38l_fnam,
s_outputparams TYPE sfpoutputparams,
s_docparams TYPE sfpdocparams,
s_formoutput TYPE fpformoutput,
s_sfpjoboutput TYPE sfpjoboutput,
c_page TYPE string,
c_row TYPE string.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'FP_TEST_00'
IMPORTING
e_funcname = c_fmname.
s_outputparams-nodialog = 'X'.
s_outputparams-device = 'PRINTER'.
s_outputparams-preview = 'X'.
s_outputparams-dest = 'PDF'.
s_outputparams-getpdf = ' '.
s_outputparams-title = sy-title.
* s_outputparams-bumode = 'M'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = s_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
s_docparams-langu = 'R'.
s_docparams-country = 'RU'.
DO p_page TIMES.
MOVE sy-index TO c_page.
REFRESH tb_itf.
DO p_row TIMES.
MOVE sy-index TO c_row.
c_row = sy-index.
CONCATENATE
'page' c_page 'row' c_row
INTO s_itf-tdline SEPARATED BY space.
APPEND s_itf TO tb_itf.
ENDDO.
CALL FUNCTION c_fmname
EXPORTING
/1bcdwb/docparams = s_docparams
textlines = tb_itf
IMPORTING
/1bcdwb/formoutput = s_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDDO.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = s_sfpjoboutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.Sorry, but making single PDF from many smartforms is not what I want to achieve. I wold like to know how to get one PDF document made by ALC-forms.
In my example I have many PDF documents. So, how to get (or put) them all in one PDF?
ps: the way to get one PDF from smartforms is also here:
"Combining Multiple Smartform Outputs Into One PDF file"
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450 -
In BI Publisher Report of excel output for one column is filled with spaces
Hello,
We have issue in BI Publisher report of excel output.
In Excel output for one column few records are displaying as left alignment
and few record are displaying as right alignment.
If you are having any xml tag or any syntax for removing spaces for left side
Please help on this issue.
Thanks in Advance.
Regards,
SwarajPlease post the details of the application release, database version and OS along with BI Publisher.
Is the issue with all reports or specific one(s) only?
Do you have the patches in the following docs applied?
Overview of Available Update Patches for Oracle BI Publisher Enterprise 10g [ID 797057.1]
Overview of Available Update Patches for Oracle BI Publisher Enterprise 11g [ID 1276869.1]
Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]
BI Publisher 10g RTF Template Changes Alignment Settings for Numbered Lists [ID 1418504.1]
Thanks,
Hussein -
In RoboHelp 11 Responsive HTML5, is it possible to have 2 different language outputs in one generated output file, similar to WebHelp where the use can select the language from a drop-down list? In Webhelp output you could create multiple Content categories. Is there something similar with the responsive output, or am I forced to have a completely separate set of output files for each language (for example, English, Japanese, Chinese, Korean, and Arabic)?
As Rick, mentions, there's no default way.
Having said that, there's nothing stopping you from doing it yourself. You can add a kind of language selector to the layout and set that for every html5 output. With some JavaScript, you can have the user switch between your outputs. It would look like content categories, but you'll have build it yourself. -
Is there a way to create multiple BQY output to one of the Job File ?
Hello,
I am using EPM11.1.2.3.501 version.
BQY report due to the large amount of data, it is difficult to use a WebClient.
So will share on a quarterly basis.
However,
If modifications are to occur,There are difficulties must modify each file.
For example,
Register 2014 1Q, 2014 2Q, 2014 3Q, 2014 4Q BQY Job file.
When you run the job, the output of the job file is created.
If the job file is changed, you must modify all four files.
This will be only grow ations.
Is there a way to create multiple BQY output to one of the Job File ??
Please help me.
ThanksIt is not possible to have multiple BQY outpu into a job file.
Thanks,
KK -
Trying to connect my new Apple TV to my Samsung flatscreen TV with a Belkin HDMI cable. Screen is blinking menu is there and can be accesed with the remote, but can be seen for one sec.
Changed the cable and its working.
-
Analog Input and Output in One Single VI
I need help in setting both analog input and output in one single VI. How do I assign channels to be either input or output? How do I simultaneously uses both in one single VI with a while loop structure?? Which AO am I suppose to use to obtain signal from the function generator I have built to feed into the DAQCard-1200?? Help!!
Attachments:
Test1.vi 48 KBOne thing you'll need to be aware of is that you will need to DMA lines: one for AI and one for AO. If you don't, then you can configure the DAQCard to do without DMA using the Config VI. But you certainly can do this.
As far as your function generator, you will want to do a buffered analog output. You will write your buffer of points to the buffer, and then tell NI-DAQ how fast to update your analog output channel with these values.
So, you can be reading from AI and checking the AO process in the same while loop. Just make sure you handle the while loop execution (the wait it exits) correctly. This can get tricky when you're doing two types of measurements.
J.R. Allen -
Output of one report is input to another report?
Hi Expert's,
Is it possible to use output of one report as an input to another report.I mean to say fields which are avialble in the first report is used as a input for another report.
Thanks,
vasu.Hi,
Yes, you can do that.
You can run a first report having characteristics as output. You can then use the returned cahracteristic values as input variable for a second query.
You can achieve this by creating a replacement path (based upon your first query) variable in the second report.
Another option would be to use the report to report interface (RRI).
hope this helps,
Olivier. -
Output of One Query is input to other Query??
Hi All,
How to make output of one query as input to other Query and what are the points to be takeb care of to do it?
regards,
murali.
Message was edited by: MuraliHallo
You got a second query where you also have 0date. Based on the selection on the second query, you get some value for 0date. this values are then passed in background to the first query which will show you the output based on the input date of the first query. You can also have othe variable in the query.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
I hope everything is fine.
Mike -
How to send output of one Bapi to another Bapi??
dear all,
I am having two BAPIs. From one Bapi I am getting value(Output) in one dropdown box.
Now my problem is how to give output of first BAPI(in drop down box) as input to second BAPI which should display in second drop down.
Am I clear???
I have two drop down boxes and two BAPIs. I am able to get output of first BAPI into first drop down box. Now i have to use the data in first drop down box as input to second BAPI(second drop down box).
The second BAPI takes first BAPI output as its Input.
As I am new to Web Dynpro please help me in this regard detailly.Hi Pradeep,
Consider you have dropdown1 displays all the countryNames which is output of BAPI1..
Now you want to input this to BAPI2.Am i right ?
If so
1. create model instance of BAPI2 as you did for BAPI1.
2. get the value from outputnode of BAPI1 by
wdCOntext.outputNode().getXXX()
and set this value to the input model instance of BAPI2 and call execute method on the model.
Regards, ANilkumar -
How to use output of one query as an input for another
Hi Gurus,
can you give me any links on how to use an output of one query as an input for another (preferably if this can be done in a dynamic/on the fly way)?
thanksYou can use Replacement Path Variable for this purpose. See this detailed documentation.
http://help.sap.com/saphelp_nw04s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
Abhijit
Edited by: ABHIJIT TEMBHEKAR on Nov 19, 2008 9:48 AM -
Hi all,
I have a table T of the kind:
N
a
a
a
b
b
b
c
c
I want the result as:
a b c
3 3 2
For that i have writtena query
select decode(n,'a',count)a,decode(n,'b',count)b,decode(n,'c',count)c
from(select n,count(*)count from t group by n);
But it is giving the output as:
a b c
3
3
2 How can i get the output in one line?
ThanksDimaCit has given a good solution for when you know how many different values you have in advance. If you do not know this, you can code for a number that is higher than you expect or use generated sql to product the desired output. Also I allow for values that are not valid column names.
SQL> host type tmp.sql
set feedback off
set termout off
create table t (N varchar2(4));
insert into t values ('A');
insert into t values ('A');
insert into t values ('A');
insert into t values ('B');
insert into t values ('b');
insert into t values ('b');
insert into t values ('c');
insert into t values ('c');
insert into t values ('c');
insert into t values ('c');
insert into t values ('c');
insert into t values ('6');
insert into t values ('6');
insert into t values ('6');
set pagesize 0
set linesize 32767
set trimspool on
column nl newline
spool tmp.ufi
prompt select
select
' count(decode(n,'''||n||
''',1, null)) "'||n||
decode(rv,1,'"','",') nl
from
(select
n,
row_number() over (order by n) rn,
row_number() over (order by n desc) rv,
sum(1) over() tot from (select distinct n from t)
order by rn
prompt from t;;
spool off
set pagesize 50000
set termout on
@tmp.ufi
drop table t;
SQL> @tmp
6 A B b c
3 3 1 2 5
SQL> Edited by: Old DBA on Feb 5, 2009 8:32 PM
Formatting -
Allform outputs under one spool request?
hai,
iam executing the smart form for 10 customers(for sales orders).
how can i get all these 10 outputs under one spool request?
and if i execute the smart form ,i should not get the PRINT dailog screen.Directly , it should go to spool....how?
regards,
vrlreddyHi,
When calling your smartform FM, pass value 'X' for parameter user_settings as below.
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = 'X'
This means standard user setting is used instead of asking for print parameter through PRINT dailog screen.
Regards,
Teddy -
Bursting - OUTPUT sends one big report, instead of multiple individual ones
Bursting - OUTPUT sends one big report, instead of multiple individual ones:
Data File below - shows report has the proper tags for the PP_NUMBER; which should split the job into individula files to be email, instead it creates one large file and emails it to the last email account
Please help!
<BCG_PPINVOICE_UK_ALL>
- <LIST_G_PP_NUMBER>
- <G_PP_NUMBER>
<PP_NUMBER>PP100</PP_NUMBER>
+ <LIST_G_INVOICE>
<PP_TOTAL>-1965</PP_TOTAL>
<AMOUNT_BEFORE_START>0</AMOUNT_BEFORE_START>
<PP_INVOICE_CONTACT>HPA - Michael Palmer</PP_INVOICE_CONTACT>
<ADDRESS1>Porton Down</ADDRESS1>
<ADDRESS2 />
<ADDRESS3 />
<ADDRESS4 />
<CITY>Salisbury</CITY>
<COUNTRY>United Kingdom</COUNTRY>
<EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
</G_PP_NUMBER>
- <G_PP_NUMBER>
<PP_NUMBER>PP101</PP_NUMBER>
+ <LIST_G_INVOICE>
<PP_TOTAL>0</PP_TOTAL>
<AMOUNT_BEFORE_START>0</AMOUNT_BEFORE_START>
<PP_INVOICE_CONTACT>Imperial College - Prof Wells</PP_INVOICE_CONTACT>
<ADDRESS1>Level 3</ADDRESS1>
<ADDRESS2>Sherfield Building</ADDRESS2>
<ADDRESS3 />
<ADDRESS4 />
<CITY>London</CITY>
<COUNTRY>United Kingdom</COUNTRY>
<EMAIL_ADDRESS>[email protected]</EMAIL_ADDRESS>
</G_PP_NUMBER>
- <G_PP_NUMBER>
<PP_NUMBER>PP102</PP_NUMBER>This is EBusiness - XML Publiser (Not Enterprise)
My Control file is as follows:
<xapi:requestset type="bursting">
<xapi:request select="/BCG_PPINVOICE_UKB_ALL/LIST_G_PP_NUMBER/G_PP_NUMBER/PP_NUMBER">
<xapi:delivery>
<xapi:email id="/G_PP_NUMBER/${PP_NUMBER}" server="localhost" port="25" from="[email protected]" reply-to="[email protected]">
<xapi:message id="/G_PP_NUMBER/${PP_NUMBER}" to="${EMAIL_ADDRESS}" attachment="true" subject="Becmanc Coulter Genomics - Prepaid Account Balance ">Dear Prepaid Account holder Please find attached the current statement of your account. If you have any queries regarding the statement, or wish to make a top up of the account please e-mail me directly at [email protected] Kind regards UK Finance Team</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="output="PP_STATEMENT_${PP_NUMBER}"" output-type="pdf" delivery="/G_PP_NUMBER/${PP_NUMBER}">
<xapi:template type="rtf" locale="" location="xdo://XBOL.BCG_PPINVOICE_UKB.en.US/?getSource=true"/>
</xapi:document>
</xapi:request>
</xapi:requestset>
Edited by: user9015277 on Sep 3, 2010 10:29 AM -
Configuration EDI output - Delaying the output by specific amount of time
Hi,
I am trying to delay EDI output when it is generated by 1 min exactly before the IDOC leaves SAP to go to Business Connector. I would like some notes or step by step guide on how to do it. Which program requires change?
We tried to change NACE, output type definitions and we changed ZFNDTIM accommodate but it didn't work.
Thanks heaps,
Robin/Annawhat about to generate it scheduling the program RSNAST00 every minute with the idoc message condition type ?
reward if helpful
regards
Roberto
Maybe you are looking for
-
Can we change the date/ime of report while uploading in Enterprise?
Hi, We are on BOXI R2 SP3 using IIS as web app servers on windows server 2003. We are using .NET SDK to integrate BOXI with custom application. We store report in custom application and don't load in BOXI until someone tries to run it. During run we
-
Get the values from datatable?
hi, my form having some textinputs with validators. and datatable. my datatable i am displaying data with boolean check box. when select check boxes , and click on remove button I am getting values in managed bean if no form validations for text inpu
-
Mac won't print to my hp c4750 printer
I have my MacBook Pro cabled to my HP printer C4750. I gave up trying to configure it wireless. That isn't my issue today. My issue is that I have been able to print this way up until today. I currently have 16 items pending print. I have been a
-
Create a new portlet in Deployed Portal in production environment
are there any ways to import or create a new portlet in Deployed Portal in production environment? Edited by: user8322798 on May 1, 2011 7:26 AM
-
[SOLVED]fbpanel-dwm fails to build
Hey guys, seems I'm in another predicament. I usually install AUR packages using: makepkg -s pacman -U aurpackage.tar.xz However, I can't seem to make it work for fbpanel-dwm. I've tried building it several times as well. Here's what I did: [reki@ws2