How to clear data string on cRead multi
Hi i was wondering if anyone knows how to clear the data from ncRead multi? I'm using PCI-CAN Frame API and when I use the ncRead multi VI it reads thru all of my received data frames and I'm getting overlapping data until it is cleared from my indicator. Attahced is my VI:
Attachments:
Application Part Number level suffix.vi 152 KB
See the "Receive" example which ships with NI-CAN 2.4 or later. It uses a different but better way to print the Frame strings to UI.
DirkW
Similar Messages
-
How to clear data in Table Control.
hi! all
How to clear the data in table control.
i have a Table control which displays column A data from the previous screen and allows to enter column B and column C and i have a button CLEAR, when i click CLEAR button the Data displaying in table control has to be cleared. how to do it.
Regards,
NagulanHi,
Loop over the internal table of table control & clear data from table control.
loop at tctab.
clear tctab.
modify tctab.
endloop.
Best regards,
Prashant -
How to clear data from XY graph for another trial
I have a XY graph of motor counts versus intensity. I used shift registers for building Array VI. After terminating the program once using stop terminal. And I cleared the graph. When I start taking measurement second time, same data repeats before the first one. So how can clear it. Please reply
Solved!
Go to Solution.That's one very quick way of doing it : initialize your shift registers.
What happens in your VI is that after the VI stops (when you clic the stop button) the data that is in the shift registers (your X and Y arrays) stays in memory, so if you run again the VI it will add data into those arrays.
To initialize your shift registers you need to connect en empty array to them before the while loop. Like this :
hope this helps
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!" -
Urgent : How to clear data in Buffer ?
HI Experts,
I have a problem in executing fox formula.
After execution the formula reads some records but not changing / generating any. I think, The data it is reading is in buffer.
How can i CLEAR the data in Buffer, if there is any data stored in it ?
Thanks a bunch in advance...
R.Hi Rohit,
The function is getting executed from which place? web/gui, folder/bps0.
The buffer is cleared as soon as you exit the transaction/session.
Also, what's the need for clearing buffer, what's the issue that you are facing.
thanks
Message was edited by: Anand Jain -
How to clear data from Table-Control
Hi all,
I am working on table control. I have some data on the table control.
When I press the 'Cancel' button, I require that the table-control should be cleared.
I tried using REFRESH CONTROL TC01 USING SCREEN 1001. But, the data doesn't get cleared.
Please advise.
Regards,
Saurabh Buksh.hi
good
try this example
REPORT demo_dynpro_tabcont_loop_at.
CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,
lines TYPE i.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA: itab TYPE TABLE OF demo_conn.
TABLES demo_conn.
SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
LOOP AT flights-cols INTO cols WHERE index GT 2.
cols-screen-input = '0'.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
DESCRIBE TABLE itab LINES lines.
flights-lines = lines.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE read_table_control INPUT.
MODIFY itab FROM demo_conn INDEX flights-current_line.
ENDMODULE.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'TOGGLE'.
LOOP AT flights-cols INTO cols WHERE index GT 2.
IF cols-screen-input = '0'.
cols-screen-input = '1'.
ELSEIF cols-screen-input = '1'.
cols-screen-input = '0'.
ENDIF.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
WHEN 'SORT_UP'.
READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
IF sy-subrc = 0.
SORT itab STABLE BY (cols-screen-name+10) ASCENDING.
cols-selected = ' '.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDIF.
WHEN 'SORT_DOWN'.
READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
IF sy-subrc = 0.
SORT itab STABLE BY (cols-screen-name+10) DESCENDING.
cols-selected = ' '.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDIF.
WHEN 'DELETE'.
READ TABLE flights-cols INTO cols
WITH KEY screen-input = '1'.
IF sy-subrc = 0.
LOOP AT itab INTO demo_conn WHERE mark = 'X'.
DELETE itab.
ENDLOOP.
ENDIF.
ENDCASE.
ENDMODULE.
thanks
mrutyun^ -
How to clear data on ENTER from keyboard?
I have an editable ALV .
When I input the material number and press ENTER button on keyboard, it populates some more fields in the row.
using
CALL METHOD lo_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
I am able to trigger this in the event data_changed.
Now:;
I clear the material number and press ENTER again - it does not wipe out the fields that are filled in as above.
[This however works fine in debug mode..]
How to resolve this:
Here is my code:
In top-of-page event:
CALL METHOD lo_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
Then in
* METHOD data_changed *
METHOD data_changed.
PERFORM d0100_event_data_changed USING er_data_changed
e_onf4
e_onf4_before
e_onf4_after.
ENDMETHOD. "data_changed
FORM d0100_event_data_changed USING er_data_changed TYPE REF
TO cl_alv_changed_data_protocol
e_onf4 TYPE char1
e_onf4_before TYPE char1
e_onf4_after TYPE char1.
"#EC *
LOOP AT er_data_changed->mt_good_cells INTO ls_good_cells.
IF NOT ls_good_cells IS INITIAL.
CASE ls_good_cells-fieldname.
when 'MATNR'.
ls_delta_cells-row_id = ls_good_cells-row_id.
ls_delta_cells-fieldname = 'WERKS'.
ls_delta_cells-value = '1111'. "I am passign space when MATNR is initial
APPEND ls_delta_cells TO lt_delta_cells.
endif.
IF NOT lt_delta_cells[] IS INITIAL.
l_frontend_only = 'X'.
CALL METHOD lo_grid->set_delta_cells
EXPORTING
it_delta_cells = lt_delta_cells
i_modified = 'X'
i_frontend_only = l_frontend_only.
ENDIF.
endcase.
LOOP AT er_data_changed->mt_good_cells INTO ls_good_cells.
Edited by: Julius Bussche on Jan 26, 2009 9:34 AM
Code tags added.I found a work around for this - when MATNR is initial, I did a clear in the alv output table for that row and then did a refresh_table_display.
it worked.
I am leaving this open for sometime to see if any better solutions can be proposed.. -
How to clear data on only one member
<p>Hi</p><p>i have for members in my components dimension(Member A,Member B,Member C, Member D ).</p><p>i want to clear all data under MemberA, without touching anydata under other members.</p><p>i used the same dataload rule which i used for loading Member A,with changing the option from "Overwrite existingvalues" to "Substract existing values". But it gavea lot of errors.</p><p>can anyone suggest a better way.</p><p>thanks</p><p> </p><p> </p>
Depending on the size of your database, a calc script is an option:<BR><BR>Fix (@isdescendants(MemberA))<BR>Clearblock all;<BR>Endfix<BR><BR>You can test different combinations of this script on a small section of data.<BR><BR>If just one member:<BR><BR>Cleardata MemberA;<BR><BR>would work too.<BR><BR>If the database is very large a calc may be quite slow but again that can be tested.<BR><BR>Hope this helps.<BR><BR>
-
HT1151 how to clear data from a USB stick on a Mac
Hi - have removed data from a memory stick, but from a 15MB Memory stick it is only offerring 354Kb of space and saying i have not enough memory to put on any new data, Years ago before i got this Mac , i could format it - have tried researching on web which suggests i right click something which cant do on Mac Book - any any ideas how i can clean up my mountain of memory sticks? ElMcV
Try this:
With the stick plugged in, go to Finder->Applications->Utilities->Disk Utility. From there, you should see your memory stick appear in a sidebar on the left. Click on it, then click on the "erase" tab and follow the instructions. -
How to transfer data using the clipboard
Does anyone know how to transfer data (string) from the clipboard to labview?
I am trying to write C++ code using win32 API using the calls, OpenClipboard, Getclipboard and CloseClipboard functions. The problem is LV crashes when there is a call to the library function. Perhaps I am going about this the wrong way.
Any ideas are appreciated.Perhaps this approach will give you the answer. I wrote a VI that uses the Win32 API directly. It calls OpenClipboard with the calling VI's window handle, then calls GetClipboard with the GW_TEXT constant to get a memory block handle. I lock the memory block with GlobalLock so other applications can't mess with it. I next call lstrcopynA , initializing a arg1 as a C String with 256 bytes and using the memory block handle as arg2, with the length of arg1 minus one as arg3. Your clipboard text is in the string output. Now call GlobalUnlock and CloseClipboard and you're done!
Attachments:
getclipboarddata.llb 168 KB -
How to clear only blocks which have values
Hi there,
Is there anyone knows how to clear data from blocks which only have values ? so the idea, i dont have to create any new block by using something like set a block to be #MI ?
Please advice. Thanks a lot
R'gards
OctoniFrom Technical Reference
The CLEARDATA command clears a well-defined section of a database's cells and changes the values of those cells to #MISSING values. This command is useful when you need to clear existing data values before loading new values into a database. CLEARDATA can only clear a section of a database. It cannot clear the entire database. -
Dear Team
We are getting error "changed REM profile regarding generation of post-processing records, IN OSP2 :- Create cumulated post-processing records check box is tick, how to clear data from MF47.When we do post-process selected post-processing records
Error message 887 Changed REM profile regarding generation of postprocessing records
Error message 221 Backflush contains discrepancies for material xxxxxxx with version xxxx
Please help to resolve the issue?
B.R.
Ramesh kumarHello Ramesh
Error 887 is generally an inconsistency. I wrote the following WIKI about such kind of inconsistencies:
Inconsistencies for planning elements and display problems on transaction MD04 - ERP Manufacturing (PP) - SCN Wiki
The wiki provides the following information regarding this error:
"it is an inconsistency that can be corrected by the report ZINCON_REPROC. This report is attached to SAP Note 383141 , which brings more information."
BR
Caetano -
How to insert data to the specified row column of the multi column list box
Hi All
How do i insert data into the specified column of the multi cplumn list box?
I have a table that containsall station nos and name.Then another table contains the data the various stations having at for 24 hrs.That is 12 am to 11 pm.
And i want to display each stations details as follows using a multi column list box/table
My stationinfo table
stnno stnname......................
s1 stn1
s2 stn2
s3 stn3
The other table
stnno sysdatetime data
s1 12am 1
s2 12am 4
s1 1 am 2
So the station s1,s2.... will have data for 24 hrs.
And i want to display it as follows using a multicolumn listbox
stnname 12am 1 am ......................................11pm
s1 ...................
s2 ........................
What i have in my mind is to get all station nos
and in a for loop get the station's data from 12 am to 11 pm
or
select every statios data for each hor.But in this case i have to query the database 24 times.So i dont think its a good way.
Or any other better query available?
Can anybody suggest me a good idea?
One more thing...how to insert data into the specified field row or column of a multi column list box?
Thanks in advancehi
i want to know,,can u say ur need clearly...and i attached two image u see that one
Indrajit
| [email protected] | [email protected] .
Attachments:
station.JPG 35 KB
station2.JPG 79 KB -
I have a form.
Scenario-1:
Users input data into the form. After I successfully consume and process data, when I click back the HyperLink to the Form - say "Register" - the Register Form still contains the very same input of the previous user. And this happens to all Forms that I have in the Application.
Scenario-2:
I return String "success" after processing the Register Form, and I navigate back to the same "Register" Form. Here again, the Register Form contains the old data.
I have the bean scope set to "session". I cannot set the scope to "request" since I consume data across beans.
Can someone help me how to clear the [old] data in the forms once I consume the data?
Thanks in Advance.
Edited by: Ganesh-Babu-N-R on Apr 12, 2009 11:41 AMGanesh-Babu-N-R wrote:
I have the bean scope set to "session". I cannot set the scope to "request" since I consume data across beans.Request scoped data belongs in the request scope. I highly recommend you to rethink this approach. You can if necessary split data over beans or make use of h:inputHidden or t:saveState to transfer request scoped bean properties to the next request. -
How to clear PSA data in advance berfore upload data into PSA by process
Could someone tell me how to clear previous PSA data before upload data into PSA through process chain,tks
Hi,
Try
Deleting Requests from the PSA
http://help.sap.com/saphelp_nw04s/helpdata/en/b0/078f3b0e8d4762e10000000a11402f/frameset.htm
Hope this helps.
Thanks,
JituK -
How to clear the data in my page after user enter submit button
hi......
how to clear the data's in my page after user enter submit button. Actually while pressing first time itself the data is uploaded in database.Hi Nazeer,
Instead of doing it on the same button better create a separate button for this functionality, As per my understanding you want to clear these fields to create new record so that you can enter a new record so for this you just need to insert a new row in VO.
Still if you want to do it on the same button then you need to put the check that particular record is not dirty if it is not then create new record else create new record.
One more thing if you will clear on the second click of a button how will you update your record??
Regards,
Reetesh Sharma
Maybe you are looking for
-
Recently my Mac Air screen has gone blank. I have rebooted my machine and ensured it is fully charged.
-
Java class files not found error in jsp sub-directories
Hello: I have a web-application that is setup in the following way: index.jsp test\index1.jsp WEB-INF\classes\test.class Both jsp pages index.jsp and index1.jsp uses the test.class in the WEB-INF\classes directory. The index.jsp page works fine. The
-
AirDrop not seen on both computers
I'm running a mid 2010 iMac with Mountain Lion installed. My wife has an iMac (2011) in the basement, running Lion. We both open our airdrop folders. She sees my computer and can send me a file. I see the file come in and see her picture in my a
-
El dichoso mensaje 'Error: 20225' y su posible solución
Hola a todo el mundo. Ahora que la tecnología de 64 bits parece que tiene más soporte que cuando salió, decido instalar Windows XP Professional x64 Edition y por supuesto el Acrobat 7 Professional -7.0.9- y cuando, casi al final de la instalación, me
-
Working parameters in mail template GP
Hi All, I want get parameters in Mail Template and this parameter to get into structure of cardinality 0..n. How I iterated this structure elements? I only Know to use `{ writeln (structure.names) }` How I iterated the attributes names? Eg a structur