How to send data at large IQ rate, at regular intervals and avoid buffer underflow?
Hello,
I am using 2921's and I have a Tx that generates payload only once, feeds it to a loop and the loop sends the same packet over and over again at a high rate. Please see attachment for VI screen snapshot. I want to have transmissions at regular intervals of my choice, but it does not work. I tried introducing a wait [ms] module into the loop (not shown in the attached figure), but I am facing the underflow problem.
Can someone please advise me on how to achieve this? Right now, the packet transmission interval is decided by the USRP, as soon as it sends a packet it sends another one, and if I try to control the transmission interval by using wait [ms] model, I have underflow.
Here are some details that could help you help me:
*30, 60, 90 or 120 bytes of payload
*8/16 bits sample width
*8 samples per symbol
*IQ rate of 8 MS/s
I would like to send every 10 ms, whereas sending 30,60,90,120 bytes takes about 1,2,3,4 ms, respectively.
Thanks!
Filip
Attachments:
snapshot.jpg 178 KB
Here are some general tips to increase your Tx streaming throughput:
0) Don't use a continuous generation at all. For many applications you don't need to stream continuously- a finite transmission (and you can loop a finite transmission) will do and you will basically not underflow in that case if you provide all the data up front.
1) As you can see from the chart, the bigger the data buffer you provide in each Write call, the faster you can stream.
2) Write sizes in multiples of the maximum packet size seem to work well. That number is 363for the USRP-292x series (although that may change in future driver releases). Try sending bursts of 10890 samples.
3) If your application allows it, set a Start Trigger Time a little in the future. Then start writing data before the device starts transmitting. For example, set the Start Trigger Time to the (current device time + 1 second). Then start writing data and you will have a second to pre-fill the on-device buffers. This will substantially reduce the number of underflows.
4) Be sure to do your data processing out of your write loop, to keep the write loop filling the pipleline as quickly as possible.
For your specific application, a finite, timed generation may be the write pattern.
Similar Messages
-
IDOC :: how to send data from Custom Infotype in SAP HR to third party
Hi,
I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
Please help me in doing it.
I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
ZTALENT Talent Management
5 E1PLOGI Header for an HR Object (Master Data or Organizational Data)
5 E1PITYP HR: Transported Infotypes and Subtypes for an Object
ZPUSER User base Data File
ZPERSON Personal Information File Segment
ZPOST Position File
ZOPE Overall Performance
ZPWORK Outside Work Experience
ZPEDUC Education Details of Employee
E1P0000 HR: HR Master Record Infotype 0000 (Actions)
E1P0001 HR: HR Master Record Infotype 0001 (Org. Assignment)
E1P0002 HR: HR Master Record Infotype 0002 (Personal Data)
E1P0016 HR Master Record: Infotype 0016 (Contract Elements)
E1P0022 HR Master Record: Infotype 0022 (Education)
E1P0023 HR Master Record: Infotype 0023 (Other/Previous Employers)
E1P0041 HR Master Record: Infotype 0041 (Date Specifications)
E1P0105 HR: HR Master Record Infotype 0105 (Communications)
ZE1P9020
ZPLANG Language Details
ZACTION Actions Changes
Regards,
KrishnaHello Shankar,
Technically TEMSE files are read by calling the following 3 function modules in sequence,
1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
2) RSTS_READ : read the object
3) RSTS_CLOSE: close the object
Regards,
Rajesh -
How to send data from internal table to the shared folder in ABAP
Hi experts,
My requirement is to transfer data from a file to shared folder. i just did reading data from a file to a internal table. Now i want to send this internal table data into a shared folder which is "
xxx\y\z....".
I do not have any idea on how to send data from internal table to the shared folder path.
can anybody please help me out how to do this?
Thanks & Regards
Sireesha.Where that folder is located, its on presentation server i.e. desktop or application server.
If its on presentation server, use FM GUI_UPLOAD.
If its on application server, then use DATASET functions. Have a look at below link.
[File Handling in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm]
I hope it helps.
Thanks,
Vibha
Please mark all the useful answers -
How to send data to RFC Destination(RFC SENDER Adapter)
Hi ,
Scenario: R/3 Backendà RFC Sender Adapterà XIàsome other system.
I have configured the RFC destination (of the type TCP/IP) at R/3 System and have registered the Program ID (specified in the RFC destination) in the XI server and using it in the configuration parameters of the RFC Sender Adapter.
Problem: I do not know how I can send data to the RFC destination. (Should I use a report program/ ABAP Function Module?) Can anybody provide me with a sample code of Report Program/Function module (whichever is required), how to send data to the RFC Destination, so that it may be picked up by my RFC Sender Adapter.
Thanks and Regards,
Siva MarananiI have one query for you that
I am trying to develop a scenario in SAP XI
SAP R/3 ( RFC function module) sends a synchronous request to the XI and SAP XI will send this request to a third party web application using HTTP receiver adapter.
I am able to send the data/message and it is successfully received at the third party web application.
But I am facing one issue that I am unable to receive any message/data in my RFC module back.i have seen in sxmb_moni that the two messages are displayed in successfuly processed but in SAP R/3 side nothing get happedned
Can you tell me how to use some waiting mechanism in function module to wait for the response from SAP XI.
Regards
Gopesh -
How to send data to bam data object through java code
how to send data to bam data object through java code
I've made a suggestion in other thread: https://forums.oracle.com/thread/2560276
You can invoke BAM Webservices (Using Oracle BAM Web Services) or use JMS integration using Enterprise Message Sources (http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bam_ent_msg_sources.htm)
Regards
Luis Fernando Heckler -
How to send data back to publishing stream
Hi,
Environment: ActionScript3.0, FMS, Flash Project created in Flash Develop
How to send data back to publishing stream? I need to send data back to publishing stream.
Using NetStream.send() we can send data to subscribers but is it possible to send data from subscriber back to publisher using any NetStream method.
One other solution to this is remoteSharedObject, but if it is possible with NetStream class then let me know.
ThanksThere are a number of ways to extract data from CRM On Demand including:
* Export - manual process, generate CSV file containing CRM On Demand data
* List/Analytics - manual process, export the contents of a report of list to a CSV
* Web Services - programmatic, develop an application that queries for data within CRMOD
* Integration Events - programmatic, use workflow to trigger event creation and then poll for events to know when an operation occurs on a record (i.e. Insert of new Account record)
As for getting that data into another system, that will depend on the system and the methods available for inserting data that it makes available.
Hope this helps.
Thanks,
Sean -
How to send a text message to a group of people and save the list for next time?
how to send a text message to a group of people and save the list for next time from an iphone 4s?
Hey there ipremacha,
It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
Connect your iPhone, iPad, iPod touch, and Mac using Continuity
Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
Thank you for using Apple Support Communities.
Regards,
Sterling -
How to send data from a web dypro application using workflow
Hi All,
I am working on a web dynpro application where the user will enter the header and item details for a FI document to be posted. Once the user enters the data the workflow should initiate and should also send the data across to the approver to approve. To initiate the workflow I am using the function module 'SAP_WAPI_START_WORKFLOW' and it's working fine and generating a uniquw workflow item id. Now my main concern is how to send the data across from web dynpro application through the workflow. I have my data in three internal tables: 1. header table. 2. G/L table and 3. Currency table, I am capturing all this data from the web dypro screen entered by the user. Right now I have the following code in my web dypro application.
METHOD execute_bapi_acc_document_post .
DATA: return TYPE TABLE OF bapiret2.
DATA: wa_return LIKE LINE OF return.
DATA lo_bapi_acc_document_po TYPE REF TO if_wd_context_node.
DATA lo_changing TYPE REF TO if_wd_context_node.
DATA lo_accountgl TYPE REF TO if_wd_context_node.
DATA lo_currencyamount TYPE REF TO if_wd_context_node.
DATA lo_importing TYPE REF TO if_wd_context_node.
DATA lo_documentheader TYPE REF TO if_wd_context_node.
DATA lo_element TYPE REF TO if_wd_context_element.
DATA lt_elements TYPE wdr_context_element_set.
DATA ls_c_documentheader TYPE if_componentcontroller=>element_documentheader.
DATA lt_c_accountgl TYPE if_componentcontroller=>elements_accountgl.
DATA ls_c_accountgl LIKE LINE OF lt_c_accountgl.
DATA lt_c_accountgl_cp TYPE if_componentcontroller=>elements_accountgl.
DATA lt_c_currencyamount TYPE if_componentcontroller=>elements_currencyamount.
DATA ls_c_currencyamount LIKE LINE OF lt_c_currencyamount.
DATA lt_c_currencyamount_cp TYPE if_componentcontroller=>elements_currencyamount.
DATA wa_c_currencyamount type bapiaccr09.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
TASK = 'TSXXXXXXXXXX'
USER = sy-uname
IMPORTING
RETURN_CODE = L_RETURN_CODE
WORKITEM_ID = LV_WIID
TABLES
* INPUT_CONTAINER = lt_input_container
MESSAGE_LINES = lt_message_lines
AGENTS = ls_agents
lo_bapi_acc_document_po = wd_context->get_child_node( wd_this->wdctx_bapi_acc_document_po ).
lo_changing = lo_bapi_acc_document_po->get_child_node( wd_this->wdctx_changing ).
lo_accountgl = lo_changing->get_child_node( wd_this->wdctx_accountgl ).
lo_currencyamount = lo_changing->get_child_node( wd_this->wdctx_currencyamount ).
lo_importing = lo_bapi_acc_document_po->get_child_node( wd_this->wdctx_importing ).
lo_documentheader = lo_importing->get_child_node( wd_this->wdctx_documentheader ).
lo_element = lo_documentheader->get_element( ).
lo_element->get_static_attributes(
IMPORTING static_attributes = ls_c_documentheader ).
lt_elements = lo_accountgl->get_elements( ).
LOOP AT lt_elements[] INTO lo_element.
lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_accountgl ).
INSERT ls_c_accountgl INTO TABLE lt_c_accountgl[].
ENDLOOP.
lt_c_accountgl_cp = lt_c_accountgl[].
lt_elements = lo_currencyamount->get_elements( ).
LOOP AT lt_elements[] INTO lo_element.
lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_currencyamount ).
INSERT ls_c_currencyamount INTO TABLE lt_c_currencyamount[].
ENDLOOP.
lt_c_currencyamount_cp = lt_c_currencyamount[].
READ TABLE lt_c_currencyamount INTO ls_c_currencyamount INDEX 2.
ls_c_currencyamount-amt_doccur = ls_c_currencyamount-amt_doccur * '-1.0000'.
MODIFY lt_c_currencyamount FROM ls_c_currencyamount INDEX 2.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = ls_c_documentheader
TABLES
accountgl = lt_c_accountgl
currencyamount = lt_c_currencyamount
return = return.
ENDMETHOD.
Please suggest.
Thanks,
Rajat
I am not sure if this falls in webdynpro or workflow threads.. so I am posting it here also
Edited by: rajatg on Jun 23, 2010 9:28 PMDear Colleague,
You have different method to send parameters to Workflow.
1. Method
Container Set Element
DEFINE SWC_SET_ELEMENT.
CALL FUNCTION 'SWC_ELEMENT_SET'
EXPORTING
ELEMENT = &2
FIELD = &3
TABLES
CONTAINER = &1
EXCEPTIONS
OTHERS = 1.
END-OF-DEFINITION.
Set the data into Workflow container
SWC_SET_ELEMENT IT_CONTAINER 'parameter1' lv_parameter1.
Start the Workflow
CALL FUNCTION 'EWW_WORKFLOW_START'
EXPORTING
X_TASK = 'WS90000001' " your wf
IMPORTING
Y_WORKFLOW_ID = WF_ID " your workitem id
TABLES
X_CONTAINER = IT_CONTAINER
EXCEPTIONS
INVALID_TASK = 1
NO_ACTIVE_PLVAR = 2
START_FAILED = 3
GENERAL_ERROR = 4
OTHERS = 5.
2. Method,
You can also add your parameters direly to a container,
DATA: lt_simple_container TYPE TABLE OF swr_cont,
ls_simple_container TYPE swr_cont.
ls_simple_container-element = 'parameter1'.
ls_simple_container-value = lv_parameter1.
APPEND ls_simple_container TO lt_simple_container.
CALL FUNCTION 'SAP_WAPI_WRITE_CONTAINER'
EXPORTING
workitem_id = WF_ID " your workitem id
do_commit = 'X'
TABLES
simple_container = lt_simple_container.
Bulent. -
How to send data from WEBI HYPERLINK to SAP R/3
Can someone please help in sending the data from WEBI to R/3 system.
We created a universe on top of a BEX Query and on Top of that we created a web intelligence report.
Now our requirement is when we click on any record in BO web ntelligence report that data should get populated in SAP R/3 system FAGLL03 screen . How to send the data from WEBI to R/3 system.
Edited by: SAP BPS on Feb 5, 2010 6:23 AMHerry,
You can refer the below docs for reference. Instead of receiver JDBC , you have to use Receiver as R/3.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
I hope it helps.
Best regards,
raj. -
Re: How to send data to Application Server
HI Experts,
Can anyone tell me how to send alv report ouput data to the application server.
Regards,
p11272Hi,
You can use Open dataset to transfer internal tables to application server.
Given below is the Simple code that will help you to extend.
Parameters to enter the path
PARAMETERS FILENAME(128) DEFAULT '/usr/tmp/testfile.dat'
LOWER CASE.
Table Declaration
TABLES VBAK.
Data Declaration
DATA D_MSG_TEXT(50).
Get data for file transfer
DATA INT_VBAK LIKE VBAK OCCURS 100
WITH HEADER LINE.
SELECT * FROM VBAK INTO TABLE INT_VBAK.
SORT INT_VBAK BY VBELN.
LOOP AT INT_VBAK.
WRITE: / INT_VBAK-VBELN,
INT_VBAK-KUNNR.
ENDLOOP.
Opening the File
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
MESSAGE D_MSG_TEXT.
IF SY-SUBRC NE 0.
WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
EXIT.
ENDIF.
Transferring Data
LOOP AT INT_VBAK.
TRANSFER INT_VBAK-VBELN TO FILENAME.
ENDLOOP.
Closing the File
CLOSE DATASET FILENAME.
Thanks
shankar -
How to send data from HR system to PI system
Hi All,
I need to write a program that pulls the data from HR system and pushes it to PI system.I pretty much have the logic to pull the HR data but I would like to know the steps involved in pusing the data to PI system and how much time does it take approximately
Thanks
Bala DuvvuriHi Bala,
Proxies are used to send data to the PI system.
Hence you will have to create ABAP Proxies which will extract the data and send it to the PI System.
Regards,
Samreen. -
EPM add-in for Excel question : How to send data from local member?
Dear experts,
for EPM add-in for excel, how do I send data from local member?
best regards,
Evans.Hello Evans,
Could you please explain what is your requisite? What is the formula on your local member?
You can also apply formulas to formatting sheet. This way you can reference the cells in your formatting sheet formulas and save the values in the report area.
Please check this blog:
How to use Excel formulas in BPC Input Schedules
Thank you
Best regards,
Raquel Oliveira -
How to send data back to the server
i create a program to send data back to ther server using j2me.
its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
here is sample code which is run well on emulator but not on mobile.
what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
Pls reply asap.
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
* An example MIDlet to invoke a CGI script.
public class ThirdExample extends MIDlet {
private Display display;
// String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
public ThirdExample() {
display = Display.getDisplay(this);
* Initialization. Invoked when we activate the MIDlet.
public void startApp() {
try {
getGrade(url);
} catch (IOException e) {
System.out.println("IOException " + e);
e.printStackTrace();
* Pause, discontinue ....
public void pauseApp() {
* Destroy must cleanup everything.
public void destroyApp(boolean unconditional) {
* Retrieve a grade....
void getGrade(String url) throws IOException {
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
StringBuffer b = new StringBuffer();
TextBox t = null;
int x = 5, y =7;
try {
c = (HttpConnection)Connector.open(url);
c.setRequestMethod(HttpConnection.GET);
c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-CA");
os = c.openOutputStream();
String str = "?idnum=182016";
byte postmsg[] = str.getBytes();
for(int i=0;i<postmsg.length;i++) {
os.writeByte(postmsg);
os.flush();
is = c.openDataInputStream();
int ch;
while ((ch = is.read()) != -1) {
b.append((char) ch);
System.out.println((char)ch);
t = new TextBox("Final Grades", b.toString(), 1024, 0);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(c != null) {
c.close();
display.setCurrent(t);
}>i create a program to send data back to ther server using j2me.
its work well on emulator but when i install the application on sony ericsssin p910i or k700i or nokia 7710 then its not working and simply hang.
here is sample code which is run well on emulator but not on mobile.
what is the problem in that or how can this code run in mobile is there any mobile specific setting or internet setting.
Pls reply asap.
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
* An example MIDlet to invoke a CGI script.
public class ThirdExample extends MIDlet {
private Display display;
// String url = "http://www.javacourses.com/cgi-bin/getgrade.cgi?idnum=182016";
String url = "http://sampler.infopro.stpn.soft.net/midletdata.asp?name=name";
public ThirdExample() {
display = Display.getDisplay(this);
* Initialization. Invoked when we activate the MIDlet.
public void startApp() {
try {
getGrade(url);
} catch (IOException e) {
System.out.println("IOException " + e);
e.printStackTrace();
* Pause, discontinue ....
public void pauseApp() {
* Destroy must cleanup everything.
public void destroyApp(boolean unconditional) {
* Retrieve a grade....
void getGrade(String url) throws IOException {
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
StringBuffer b = new StringBuffer();
TextBox t = null;
int x = 5, y =7;
try {
c = (HttpConnection)Connector.open(url);
c.setRequestMethod(HttpConnection.GET);
c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-CA");
os = c.openOutputStream();
String str = "?idnum=182016";
byte postmsg[] = str.getBytes();
for(int i=0;i<postmsg.length;i++) {
os.writeByte(postmsg);
os.flush();
is = c.openDataInputStream();
int ch;
while ((ch = is.read()) != -1) {
b.append((char) ch);
System.out.println((char)ch);
t = new TextBox("Final Grades", b.toString(), 1024, 0);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(c != null) {
c.close();
display.setCurrent(t);
}> -
How to send data using serial Communication
I want to make serial communication using RXTXcomm.jar file.I was written the code.From this I got the list of serial ports avilable on pc but then after when I was tring to send command to machine which is attached to port it didn't gave any reply.
Tell me that how to send command to port?This is how I do it:// open port, get ownership
SerialPort serialPort= (SerialPort)portId.open(APPLICATIONNAME, timeout);
// no framing and no threshold
serialPort.disableReceiveFraming();
serialPort.disableReceiveThreshold();
// communication speed, parity, stopbits and databits
serialPort.setSerialPortParams(BAUDRATE, SerialPort.DATABITS_8,
SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
// no handshaking or other flow control
serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);
// timer on any read of the serial port
serialPort.enableReceiveTimeout(TIMEOUT);
// open streams for reading and writing
InputStream is= serialPort.getInputStream();
OutputStream os= serialPort.getOutputStream();... then you use the 'os' stream for writing and the 'is' stream for reading.
kind regards,
Jos -
How to send data one row at a time from xml to flex
I want to setTimerEvent while sending data from xml to flex, one row at a time.
I have attached the xml.
Thanks in advance.Hi Greg,
Thanks for the reply. You must have seen the xml which i have attached.Here is the .mxml code which i have written:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="accountData.send()">
<mx:Script>
<![CDATA[
import mx.controls.*;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var AccountInformation:ArrayCollection;
private function AccountHandler(evt:ResultEvent):void
AccountInformation = evt.result.xml.AccInfo;
private function faultHandler(evt:FaultEvent):void
var faultMessage:String = "Could not connect with XML file";
Alert.show(faultMessage, "Error opening file");
]]>
</mx:Script>
<mx:HTTPService id="accountData" url="pgm1.xml" result="AccountHandler(event)" fault="faultHandler(event)" />
<mx:DataGrid x="20" y="24" width="950" dataProvider="{AccountInformation}" />
</mx:Application>
This reads and displays all the rows. But I want to display single row at a time with sometime time gap between the display of two consecutive rows.I am new to flex and this is my first code, so need your help on this.
I hope i have made myself clear. If there is anything else please let me know.
Looking forward to some solution.
Thanks in advance.
Regards,
praj58
Maybe you are looking for
-
How to make a page blind accessible
Hey Y'all, I run a website for a die-cast toy car manufacturer ( Liberty Promotions - View it here ), The way the page is designed primarily uses images, of the cars, and of the descriptions (we do this so we can control the font, for Pirates 2, we u
-
How to add text to transparent gif?
Hi, I'm using Photoshop 6.01. with Windows 7 Professional. I have a transparent gif file, to which I want to add text, including bullets. The stuff I want to add is now on one of my webpages, and so is the gif, but I want to combine the image and t
-
Why can't I sign into my gmail account
It says the error "Oops it seems like your cookies are disabled trying enabling them or using a new tab" and I have cookies enabled. Only my gmail doesn't work and I can sign in on computer. I just want to sign in using safari so I can check my googl
-
Safari PDF. Preview Download Problem
I've had my Macbook Pro for about two years and have suddenly become unable to use the "Save PDF to Download Folder" option when Previewing documents in Safari. I've tried creating another account to test the problem, reseting safari and dragging the
-
IPhoto '11 with corrupted Places
I've got a weird situation occurring in Places - where multiple images (100+) which were originally "tagged" in separate locations are now referencing the same incorrect name and location. When I try to delete this errant place in "Manage My Places",