How To create a Buffer Application Program in LabVIEW?
Dear all:
Can someone advise me on how to implement a buffer application for LabVIEW.
Basically I have 2 application programs than run continously in paralell.
1) LabVIEW Data Logging & Plotting Program. It takes 90 ms to excute its code
2) C++ Data Acquisition Program. It Samples the data from a Reflective Memory Card (on the PCI bus of my PC)
at 1ms and creates a Buffer where it store one sample per channel every 1 ms.
I know LabVIEW have the Code Interface Node to call a C program but since both (The LabVIEW and the C) are runing (one slower than the other) in Parallel I need to somehow interrupt the C program from LabVIEW and get from it the data that it as collected so far.
Any suggestio
n will be highly appreciated. I attach txt file with a little more description of the problem.
Thank You very much.
Felix Beltran
ALSTOM Power Conversion.
U.K
Attachments:
NI_SW_Buffer_Question1.txt 2 KB
Hi Felix,
The best architecture for this application would be to have the C++ program divided into two threads. One thread is continuously acquiring data and placing it in a queue. The other "handling" thread will read data from the queue and serve it up to your LabVIEW application.
Much better than using the Code Interface Node, build the C++ application into a DLL. You can then call a function from your LabVIEW program to start the acquisition, and then calls to the handling thread function will return data to LabVIEW.
I hope this helps.
Regards,
Phil R
Applications Engineer
National Instruments
http://www.ni.com/support
Similar Messages
-
How to create file on application server?
how to create file on application server?
Hi,
The following program illustrates the creation of ifle in app server and reading the file from appli server:
DATA: ITAB LIKE vbakOCCURS 0 WITH HEADER LINE.
PARAMETERS: P_VBELN LIKE VBAP-VBELN.
START-OF-SELECTION.
SELECT *
FROM VBAP
INTO TABLE ITAB
WHERE VBELN = P_VBELN
PERFORM WRITE_DATA.
PERFORM READ_DATA.
*& Form WRITE_DATA
text
--> p1 text
<-- p2 text
FORM WRITE_DATA.
OPEN DATASET 'VBAP_DATA' FOR OUTPUT IN TEXT MODE.
LOOP AT ITAB.
TRANSFER ITAB TO 'VBAP_DATA'.
ENDLOOP.
CLOSE DATASET 'VBAP_DATA'.
CLEAR: ITAB, ITAB[].
ENDFORM. " WRITE_DATA
*& Form READ_DATA
text
--> p1 text
<-- p2 text
FORM READ_DATA.
OPEN DATASET 'VBAP_DATA' FOR INPUT IN TEXT MODE.
DO.
READ DATASET 'VBAP_DATA' INTO ITAB.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
APPEND ITAB.
ENDDO.
CLOSE DATASET 'VBAP_DATA'.
LOOP AT ITAB.
WRITE:/ ITAB-VBELN,
ITAB-POSNR.
ENDLOOP.
ENDFORM. " READ_DATA
If it is helpful rewards points
Regards
Pratap.M -
How to create Remote Desktop Application in C# or port it from HTML5/JS project ?
Hi
How can create Remote Desktop Application in C# template ? I were searching on google but not found example or API for this.
If can, please suggest for me some solution, example and document.
And I have JavaScript project template Remote Desktop Application. Can i port it to c# ? Or use Webview to show it ?
I were create demo use webview to show it but it not run. Maybe i do some mistake or can't be do it.
Thanks.I have no other options. We already provide the RDP plug-in for JavaScript. I'm not sure what else is needed for this.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
undefined objects and unknown namespaces.
My project needs work with C# Windows Store. So I need RDP on C#, not JS. If we don't support C#, do we have a RDP spec on Windows 8.1 so that we can follow that spec to implement with native code to support RDP? -
How to create a module pool program
Dear Guru
I want to know know how to create a module pool program from se80 step by step. I want to know the steps where i will get the four includes like form routines, PAI, PBO, and global data please its very urgent.
Thanks & regards
Saifur Rahamanhi Saifur Rahaman,
goto se80 then click find program,
next u want any name of the program enter as,
Attribute type as find Module pool click it.
next u want any package and save and activate.
program name with create screen with any number then
click layout and u want any object and save , actived.
click flow logic , four types as PBO and PAI and POV, POH.
PBO---> Trigger is before screen.
its applied for display screen and inactive or no display screen only
PAI--->Trigger is after screen
when u want button then its processed.
POV--> Value requested for F4.
POH-->Help requested for F1.
Reward if useful,
S.Suresh. -
How to create documentation for report programs and how to use it
how to create documentation for report programs and how to use it in the selection screen by placing an icon in the Applicatin Tool bar. If i click this icon the help documentation has to display.
Note: Exaple <b>RSTXSCRP</b> programs selection screenHi
1 goto SE38 transaction, give the program name
2 Click on documentation radiobutton & then press change
3 Write your PURPOSE, PREREQUISITES etc details
4 Save the same & Activae it.
The icon will come automatically on selection screen
Thanks
Sandeep
Reward if useful -
How to create a buffer by passing a just polygonpopints as a parameter
hi ,
this query about oracle spatial...
please tell me how to create a buffer around a single polygon data.. by passing single polygon co-ordinates as a
parameter..
ex: for a point the following works..
select * from TEMIS where SDO_INSIDE(TEMIS.GEOMETRY ,SDO_GEOM.SDO_BUFFER(SDO_GEOMETRY(2001,32643 ,SDO_POINT_TYPE(70.21931,10.32379,NULL),NULL,NULL),10,0.00000005,'UNIT=KM') )='TRUE'
i want it for a plygon data
iam using oracle 11g version
Edited by: user13340372 on Jun 29, 2010 11:15 PM
Edited by: user13340372 on Jun 29, 2010 11:16 PMWelcome to the SQL and PL/SQL forum.
It would be helpful to us if you post:
- your database version
- an example of what you want, a small dataset to work with in the form of CREATE TABLE + INSERT statements ideally and the results you want from that.
¿What are polygonpopints?
Related to http://en.wikipedia.org/wiki/Point_in_polygon perhaps?
If your question is Oracle Spatial related, then please refer to the Spatial Forum @ Spatial -
How to create the composite application in CAF
Hi all,
I am novice to the CAF. Till now i didn't implement a single application.
any one can give me steps for how to create the composite application in CAF not in NWDS by using Netweaver 2004s.
I opened CAF default page it showing admin tools ,test tools etc which i need to use.
Best Regards
SrikanthHi Srikanth,
Check out the tutorials for composite application framework here:
SAP Composite Application Framework - CAF Tutorial Center [original link is broken]
Johan -
How to create a new application user by my application?
Hello,
I want to give the user of my application the possibility to create a new application user if necessary. The creation of a new user should be realized in my application. I tried to find the answer in the apex user guide, but I haven't found it. Can somebody tell me how to create a new application user in the implemented application (one page in application for creating users for my application)?
Thanks,
BettinaHello Bettina,
You can do that using the API: www_flow_fnd_user_api.create_fnd_user. If you look at that procedure in SQL Dev (or TOAD or whatever you like), you can see an example and the description of the arguments.
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/ -
How to create a ztable using program?
Hi ,
How to create a ztable using programs for SQL database?
Can anyone plz explain it with a program!
Thanks in advance.hi,
Your purpose can be achieved through BDC programming too..
data:
t_bdcdata type table of bdcdata with header line.
start-of-selection.
perform bdc_dynpro using 'SAPMSRD0' '0102'.
perform bdc_field using 'BDC_OKCODE'
'=ADD'.
perform bdc_field using 'RSRD1-TBMA'
'X'.
perform bdc_field using 'RSRD1-TBMA_VAL'
'ztable_demo'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'=CHANGE_MAINTFLAG'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_field using 'DD02D-CONTFLAG'
'A'.
perform bdc_field using 'DD02D-MAINFLAG'
'X'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'=DEF'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_field using 'DD02D-CONTFLAG'
'A'.
perform bdc_field using 'DD02D-MAINFLAG'
'X'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_field using 'DD03D-ROLLNAME(01)'
'mandt'.
perform bdc_field using 'DD03D-FIELDNAME(01)'
'mandt'.
perform bdc_field using 'DD03P-KEYFLAG(01)'
'X'.
perform bdc_field using 'DD03P-NOTNULL(01)'
'X'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_field using 'DD03D-ROLLNAME(02)'
'S_CARR_ID'.
perform bdc_field using 'DD03D-FIELDNAME(02)'
'carrid'.
perform bdc_field using 'DD03P-KEYFLAG(02)'
'X'.
perform bdc_field using 'DD03P-NOTNULL(02)'
'X'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_field using 'DD03D-ROLLNAME(03)'
'S_CONN_ID'.
perform bdc_field using 'DD03D-FIELDNAME(03)'
'connid'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'=SE13'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_dynpro using 'SAPLSTRD' '0100'.
perform bdc_field using 'BDC_CURSOR'
'KO007-L_DEVCLASS'.
perform bdc_field using 'BDC_OKCODE'
'=TEMP'.
perform bdc_field using 'KO007-L_AUTHOR'
'SAPDEV02'.
perform bdc_dynpro using 'SAPMSEDS' '0050'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform bdc_field using 'DD09V-TABART'
'APPL0'.
perform bdc_field using 'DD09V-TABKAT'
'0'.
perform bdc_field using 'ALLOWSTATE-NOT_ALLOWED'
'X'.
perform bdc_dynpro using 'SAPMSEDS' '0050'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_field using 'DD09V-TABART'
'APPL0'.
perform bdc_field using 'DD09V-TABKAT'
'0'.
perform bdc_field using 'ALLOWSTATE-NOT_ALLOWED'
'X'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'=WB_ACTIVATE'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_dynpro using 'SAPLSEWORKINGAREA' '0205'.
perform bdc_field using 'BDC_OKCODE'
'=WEIT'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=NO'.
perform bdc_dynpro using 'SAPLSD41' '2200'.
perform bdc_field using 'BDC_OKCODE'
'=WB_BACK'.
perform bdc_field using 'DD02D-DDTEXT'
'Ztable'.
perform bdc_dynpro using 'SAPMSRD0' '0102'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_field using 'RSRD1-TBMA'
'X'.
perform bdc_field using 'RSRD1-TBMA_VAL'
'ZTABLE_DEMO'.
call transaction 'SE11' using t_bdcdata..
form BDC_DYNPRO using value(p_program)
value(p_num).
clear t_bdcdata.
t_bdcdata-program = p_program.
t_bdcdata-dynpro = p_num.
append t_bdcdata.
endform. " BDC_DYNPRO
form BDC_FIELD using value(p_fnam)
value(p_fval).
clear t_bdcdata.
t_bdcdata-fnam = p_fnam.
t_bdcdata-fval = p_fval.
append t_bdcdata.
endform. " BDC_FIELD
Thanks
Sharath -
How to create tcode for modulepool program with selection screen?
hi,
How to create tcode for modulepool program with selection screen?
thanks,
sagarHi,
We need to goto SE80.
In our program we right click on object name and goto create
-> transaction. Enter the module pool program and screen number and save and activate.
Or by SE93 also we can create a transaction code for our program.
Hope ths helps.
plz reward if useful.
thanks,
dhanashri..
Edited by: Dhanashri Pawar on Jul 22, 2008 8:29 AM -
How to create and read text file using LabVIEW 7.1 PDA module?
How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
I attach my code here.
Attachments:
File_IO.vi 82 KBWell my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.
-
How to create a set up program for my Java application
Can some one please tell how to create a Setup for my Java Application
Thanks for your reply.
But still if you could have answered my query it would have been of a little more help for me, as I am quite new to any of these kinds of forum.
Still thanks a lot for the reply. -
How to create custom BSP application in SAP CRM?
Hi Experts,
I would like to seek help from you. I am new in developing CRM objects. My first requirement is to create a custom program that will generate a PDF report.
First thing I would like to know is the transaction code where I need to create a BSP application that will be able to run in crm webclient. Please clarify if it is in BSP_WD_CMPWB or in SE80 because it is said that I should create BSP application using MVC.
Second thing is how will I be able to call a smartforms in a BSP application. The scenario for my custom program would be, I should have a two input fields in the selection-screen which are Business Partner ID and Product Lines. together with a button that will trigger the form when ticked.
Hope to hear from all of you. Your help will be very much appreciated.
Thanks and Regards,
MonicaHello MonicAnna,
You can find some information on this page.
(http://help.sap.com/saphelp_nw70/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm)
And also you dont have to use se80 to create new Bsp appliaction. You can create new application by this transaction BSP_WD_CMPWB.
Zafer,
Edited by: Zafer Kuru on Dec 5, 2011 10:12 AM -
How to create reports for java programs?
Hi,
I have planned to do a project using java,that will help to create reports for java programs. To create reports for java programs i used two options.
1)Crystal reports
2)Write the code to produce reports for each java programs
The second one little cumbersome.SO i planned to develop a software that is compatible for creating java reports.
I would like to know how i will do the project?Can you help me to made it a successful project.Hope you can help me.
Expecting your reply
PreethiRenjithUggg... Crystal reports...
I would personally write a generic report generator, It would probably be easier than fighting w/
crystal reports (CR is popular, but painful :) )
Anyhow, I've written report generators for many different applications. It is one of the simplest projects you
can take on, and the results make you feel special --
If your need nicely formated, portable, printable reports, you could have your report generator make PDF files (the format is open, and VERY simple, plus people like pdf files) you can get the pdf spec from adobe or from wotsit.org (the famous wotsit file format archive).
enjoy! -
Example how to create simple ITS application
HI All,
there is simple and advanced example how to create ITS application
i need step by step guide since i am new to this topic
Thanks in advance
AlexHI Edgar
Thanks !
I found this link below and i follow the instruction to create a sample of ITS application.
since i cant publish the link (dont know why )
you can find it in saptechnical->Tutorials->Others->ITS
(the second post )
And use report RSUSREXT
I follow the instruction step by step create template and web application and publish it.
while running it from the browser I stop in the handler class (via breakpoints )but when I press F8
I get in the browser the following error
The following error text was processed in the system QD8 : Template interpretation failed. Template does not exist.
The error occurred on the application server usciqd8_QD8_21 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
SYSTEM-EXIT of program SAPLSMTR_NAVIGATION
Regards
Alex
Edited by: Alex Dean on Apr 27, 2010 9:59 AM
Maybe you are looking for
-
ITunes shows in Task Manager but doesn't run
I was having an issue where my iTunes would start and show as a process running in Windows Task Manager, however, the GUI interface would never show up. I could end the process, but restarting the application led me to the sam state I was in before;
-
TDS at lower rates for certian limit
Hi experts, Income Tax Department gives vendors certifcate for lower deduction of tax u/s 197, which is a permission to a payer to deduct NIL Tax or tax at a lower rate. This permission is generally given for a Financical Year. However, recently it i
-
Adding a preset to an already edited photo without changing the edit
Can someone please help me with adding a preset to already edited photos without changing the edit. Basically I will edit an entire wedding and then I go back and pick out favorites for my bride and like to add the same artistic edit over them. Sin
-
After updating the app blitz brigade, the app disapears from the screen and is not available anymore. It is not possible to download it again because there is no cloud behind it anymore in the app store. But I made in app buys, so I spend a lot of mo
-
Creating infotypes with multiple subtype
Please tell me How to create infotype with multiple subtype