Delete Repeated Data from an Array
Hi guys,
I need your support in to solve some issue with my program, I have a while loop that detects peak values from a given array of data, when I push the stop botton it records the raw file with the write to spreadsheet VI. The thing here is that when i'm collecting the peaks from the data the while loop is running and while I'm moving the position of the cursors to find out another peak that period of time generates a bunch of repeated data from the previous peak and so on until I finish collecting the peaks. What i would like to do is to collect let's say 8 peaks, and only these 8 values has to be wirtten on the text file, eliminating all the repeated vales from a single peak. Does anybody here has an idea on how to solve this problem? I really need your support!
I'm attaching the part of the code that is doing the task, and also a sample raw file with the repeated values on it
Thanks!
Serge Armz
Attachments:
test.txt 1 KB
.jpg.png 13 KB
Well, I haven't bothered with an event structure, but here's a quick modification that only adds a max it it hasn't been added before.
You still run into problems as the cursors are moved, because you might get a temporary max that is actually only the edge of a peak. I would probably add a button to manually add each valid point after the cursors have been moved to the new place.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Peak analyzer_MOD.vi 40 KB
Similar Messages
-
Firstly, I receive the data of X and Y position one by one seperately and then I add this two value (numeric double) to array two column (XY). After I press ok button the new data for X and Y will come and be added to the last row of my data. Then I use this data to plot in XY graph. All of this I did it already, but I want more additional function.
My additional function is I want to add or delete a pair of data XY from the array at the row that I defined. This one I can not do it.....You use the Insert Into Array and Delete From Array functions on the Array palette. Here's a simple example in 6.0 that shows how they're used.
Attachments:
Insert_and_Remove_Row.vi 50 KB -
How to delete a particular data from 3 arrays
hello,
i have a program that works like this.....
import java.io.*;
public class NewMain {
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String [] Type= new String[10000];
int [] Num= new int[10000];
float [] Price= new float[10000];///////
and i am reading some of the data into these arrays
so if i want to delete a particular data from the arrays how do i do that
and if i want to delete pants from that file and enter the text again how do i do that.? any idea?....
e.g if the file contains
shirt
32
56.5
pants
56
45.9Ashish.Uppin wrote:
hello,
i have a program that works like this.....
import java.io.*;
public class NewMain {
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String [] Type= new String[10000];
int [] Num= new int[10000];
float [] Price= new float[10000];///////
and i am reading some of the data into these arrays
so if i want to delete a particular data from the arrays how do i do that
and if i want to delete pants from that file and enter the text again how do i do that.? any idea?....
e.g if the file contains
shirt
32
56.5
pants
56
45.9
Buddy, it seems to me that you are describing data that belongs together -- a class. You are probably better off with one arraylist of objects of this class, each object having a String type variable, an int num variable, and a float price variable, make that a double price variable.
For examples of arraylists in action, please see the Sun java tutorials. -
Not able to Delete the data from Memory card
Hi all,
I have bought a new nokia 3120 classic.it is working fine but recently i have received some data from my friend.
Then suddenly the problem begins like.. when i take a photo.. i am getting error like the image is not in the format and i am not able to save that.And also, the main problem is I am unable to delete the data from my memory card.
Every time after deleting i am getting the same data.
Why this happening..is it because of VIRUS?? If so how to delete the virus from my memory card??
When i contacted the nokia care people in bangalore they are saying that they can offer the service of formatting the memory card??
Except that my Phone is working fine..the problem is with Memory card!!!
Please help me...you can actually format your memory card first see if you have such option on your phone to format directly from the phone if that is not possible you can always use a card reader and reformat your card using your pc. just understand that all data from that memory card will be lost unless you do a back up of it. if you do a back up and restore the data to the memory card after reformat you might get the same issue so be careful as to what you will decide to do with the data from the card. once you format your card it should all be good unless the card is corrupted itself which can also happen. but first try with the reformat and see if it works out for you.
You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery.... -
Without loops how can i read data from associative Array??
Hi all,
I am facing scenario like...
i need to read data from associative array without using loops is it possible,
CREATE OR REPLACE PACKAGE BODY test_pkg IS
TYPE t1 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
-- in array we can expect more than one row or sometimes no data also.
FUNCTION test1(vt1 T1 DEFAULT CAST(NULL AS t1)) RETURN NUMBER IS
BEGIN
-- basically in array we'll get data of column2
-- this loop should satisfies table1.colum2 = nvl(NULL, table2.colum2 )if array is null.
-- if array is not null then only compare with array values
FOR i IN (SELECT t1.colum1,t1.column2
FROM table1 t1, table1 t2
WHERE t1.colum1 = t2.column1
AND t1.colum2 = nvl(vt1, t2.colum2)
LOOP
generateTEXT(i.colum1, i.colum2);
END LOOP;
END test1;
END test_pkg;
in table1 we have date like...
colum1 column2
Jan 1
Feb 2
Mar 3
if i call select test_pkg.test1(1) from dual then output should
be Jan..
and
select test_pkg.test1(null) from dual then it should display all elements from table1.
Jan 1
Feb 2
Mar 3,
Thanks for your quick replay..i need to read data from associative array without using loops is it possible,
No - you would need to create a SQL type and then use the TABLE operator to unnest the collection.
create or replace TYPE my_nums IS TABLE OF INTEGER;
DECLARE
-- TYPE my_nums IS TABLE OF PLS_INTEGER INDEX BY PLS_INTEGER;
v_nums my_nums := my_nums(1, 2, 3);
v_total number;
BEGIN
select sum(column_value) into v_total from table(v_nums);
DBMS_OUTPUT.PUT_LINE
('Sum of the numbers is ' || TO_CHAR(v_total));
END;
Sum of the numbers is 6 -
What would happen if I turn off my backup and delete backup data From my device? Will it delete my music and everything for ever or just stay in the cloud but not on my device?
If you have multiple devices backing up to the Cloud, you will see all of them listed. You would click on each device to change what is backed up from that device. You can then delete your individual back-ups.
Once you have all your settings to your liking, you can then go back to Settings>iCloud>Storage & Backup, and click on Back Up Now (bottom of the screen) to create a fresh backup with your new settings.
Cheers,
GB -
How to delete the data from partition table
Hi all,
Am very new to partition concepts in oracle..
here my question is how to delete the data from partition table.
is the below query will work ?
delete from table1 partition (P_2008_1212)
we have define range partition ...
or help me how to delete the data from partition table.
Thanks
Sree874823 wrote:
delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
How the table implements its structure is a physical design consideration.
Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
This is a crucial concept to understand and get right. -
Error while deleting the data from DSO
Hi Experts
I am getting the ABAP Dumps when I am trying to delete the data from the DSO Objects in my Systems.
" An entry was to be entered into the table
"\FUNCTION=RSAR_ODS_GET\DATA=L_TH_ISOSMAP" (which should have
had a unique table key (UNIQUE KEY)).
However, there already existed a line with an identical key.
The insert-operation could have ocurred as a result of an INSERT- or
MOVE command, or in conjunction with a SELECT ... INTO.
The statement "INSERT INITIAL LINE ..." cannot be used to insert several
initial lines into a table with a unique key. "
I have tried with multiple DSO's and Have the same issue. Please need your suggestions.
Regards,
MaheshHi......
I think in the ODS setting Unique Data Records checkbox is ticked........if so.........The DataStore object can be used for loading unique data records...........If the loaded request does contain data that is already in the DataStore object, activation of the request will lead to an error.
Find the request in SE16>>RSICCONT table .........and try to delete there....it may work........
Check this.....
u2022 Note 1007717 -Deleting from Data Store object: Termination w/o log
u2022 Note 998704 - Deleting req from DataStore obj: Status at end of processing
u2022 Note 1037507 - System Termination when you delete from DataStore objects
Regards,
Debjani..... -
Error while retrieving data from an ARRAY resultset
We hava an Oracle stroed procedure which has a table type as its OUT parameter and where the data is being entered into. This data requries to be returned to the Java client through a JDBC connection. We have used the OracleTypes' ARRAY object for this. We are facing errors when retieving data from the ARRAY resultset
The Oracle Package
----I created a table type called "PlSqlTable":
CREATE OR REPLACE TYPE PlSqlTable IS TABLE OF VARCHAR2(20);
----I defined this as the out parameter for my procedure :
PROCEDURE testSQL
arrayOutID OUT PlSqlTable
Then populated the object :
arrayOutID := PlSqlTable();
arrayOutID.extend(4);
arrayOutID(1):= 'Hello';
arrayOutID(2) := 'Test';
arrayOutID(3) := 'Ora';
----The procedure executes fine - all debug statements are printed ----right till the end of execution.
The Java class
----Here is how I have defined the parameters :
OracleCallableStatement stmnt = (OracleCallableStatement)connection.prepareCall("begin testSQL(?);end;");
stmnt.registerOutParameter(2,OracleTypes.ARRAY,"PLSQLTABLE");
System.out.println("Executing..");
stmnt.execute();
System.out.println("Executed..");
ARRAY outArray = stmnt.getARRAY(1);
System.out.println("Got array");
ResultSet rset = outArray.getResultSet();
System.out.println("Got Resultset..");
int i = 1;
while(rset.next()){
System.out.println("VALUE : " + rset.getString(i));
i = i+1;
----On execution, the debug messages display :
Executing..
Executed..
Got array
Got Resultset..
VALUE : 1
VALUE : Test
ERROR : java.sql.SQLException: Invalid column index
----But I have populated upto 3 values in th e procedure. Then why this error ?
PLLLEEEASE help me out on this.
Thanks, Sathyahaven't worked with db arrays but I think your problem is here:int i = 1;
while(rset.next()){
System.out.println("VALUE : " + rset.getString(i));
i = i+1;
}In the first loop you are retrieving the value from column 1(rs.getString(1)), which is OK, but in the second loop, you are trying to retrieve a value from the second column(rs.getString(2)) which doesn't exist. Try this code which only reads from column1:
while(rset.next()){
System.out.println("VALUE : " + rset.getString(1));
}Jamie -
While deleting the data from cube..getting the following erros...
while deleting the data from cube the below error occured in develoment..any help
i have 4 requets.....2 are deltedd but no records for those...
2 are not deleted and they have some data..
please give me u r inputts pelase
Performing check and potential update for status control table
Message no. RSM1490
Diagnosis
If data is loaded into an InfoCube, or existing data is edited (aggregated/compressed/deleted/got from a DataMart), then there is a change in the potential reportability of the data , or the possibility of deleting data by request, or of aggregating or compressing.
This status of each one of these Cubes is stored in a status table, that is updated when there is any change to the status of a request in the Cube.
The system now analyzes the requests in the Cube and compares the calculated status with the status table.
If deviations from the status table arise then you are given the option of adjusting the status table.
System Response Procedure Procedure for System AdministrationHi,
Did you tried by right click on cube and delete data? are those requests are compressed or roll up? -
How to delete PSA Data from any Table
Pls specify the steps to delete PSA Data from any specific table.
You can delete the PSA requests manually one by one as specified in the previous posts.
You can also trigger the deletion of PSA periodically by using Process chain.
'Deletion of PSA request' is the process type that need to be used.
By this way you can delete all the PSA requests of the table, that are older than certain number of days.
you can also schedule the PSA deletion for more than one table at a time, by including the tables in the same Process chain. -
How to delete the data from KNVP without using the delete statement
Hello friends,
I have a requirement that I have to delete the data from KNVP table without using any delete statement. For it I have to use the Standard BAPI or any standard program.
Can you please tell me the name of the standard program or BAPI to delete the data .
Thanks in Advance
KuldeepHello Raymond,
I have use the function 'CUSTOMER_UPDATE' in which I only gives the data in T_XKNVP table only but still the data is not get deleting. Please see the code below.
=============================================================
REPORT ZK_TEST2 .
data :
I_KNA1 LIKE KNA1,
I_KNB1 LIKE KNB1,
I_KNVV LIKE KNVV,
I_YKNA1 LIKE KNA1,
I_YKNB1 LIKE KNB1.
Data :
T_XKNAS LIKE FKNAS occurs 0,
T_XKNB5 LIKE FKNB5 occurs 0,
T_XKNBK LIKE FKNBK occurs 0,
T_XKNVA LIKE FKNVA occurs 0,
T_XKNVD LIKE FKNVD occurs 0,
T_XKNVI LIKE FKNVI occurs 0,
T_XKNVK LIKE FKNVK occurs 0,
T_XKNVL LIKE FKNVL occurs 0,
T_XKNVP LIKE FKNVP occurs 0 with header line,
T_XKNVS LIKE FKNVS occurs 0,
T_XKNEX LIKE FKNEX occurs 0,
T_XKNZA LIKE FKNZA occurs 0,
T_YKNAS LIKE FKNAS occurs 0,
T_YKNB5 LIKE FKNB5 occurs 0,
T_YKNBK LIKE FKNBK occurs 0,
T_YKNVA LIKE FKNVA occurs 0,
T_YKNVD LIKE FKNVD occurs 0,
T_YKNVI LIKE FKNVI occurs 0,
T_YKNVK LIKE FKNVK occurs 0,
T_YKNVL LIKE FKNVL occurs 0,
T_YKNVP LIKE FKNVP occurs 0 with header line,
T_YKNVS LIKE FKNVS occurs 0,
T_YKNEX LIKE FKNEX occurs 0,
T_YKNZA LIKE FKNZA occurs 0.
T_XKNVP-KUNNR = '7000002648' .
*T_XKNVP-VKORG = '0001' .
*T_XKNVP-VTWEG = '01' .
*T_XKNVP-SPART = '01' .
T_XKNVP-KZ = 'D' .
append T_XKNVP to T_XKNVP.
CALL FUNCTION 'CUSTOMER_UPDATE'
EXPORTING
I_KNA1 = I_KNA1
I_KNB1 = I_KNB1
I_KNVV = I_KNVV
I_YKNA1 = I_YKNA1
I_YKNB1 = I_YKNB1
TABLES
T_XKNAS = T_XKNAS
T_XKNB5 = T_XKNB5
T_XKNBK = T_XKNBK
T_XKNVA = T_XKNVA
T_XKNVD = T_XKNVD
T_XKNVI = T_XKNVI
T_XKNVK = T_XKNVK
T_XKNVL = T_XKNVL
T_XKNVP = T_XKNVP
T_XKNVS = T_XKNVS
T_XKNEX = T_XKNEX
T_XKNZA = T_XKNZA
T_YKNAS = T_YKNAS
T_YKNB5 = T_YKNB5
T_YKNBK = T_YKNBK
T_YKNVA = T_YKNVA
T_YKNVD = T_YKNVD
T_YKNVI = T_YKNVI
T_YKNVK = T_YKNVK
T_YKNVL = T_YKNVL
T_YKNVP = T_YKNVP
T_YKNVS = T_YKNVS
T_YKNEX = T_YKNEX
T_YKNZA = T_YKNZA
============================================================= -
What is the best way to move data from one array to another
I'm going to be moving data from one array to a larger array on the same RAID but different controller. (I have some extra extra drives I'm also going to be installing Retrospect so I can't just restore from a backup.)
The RAID has 450GB of production files, fonts etc.
What is the best way to move the data over?
I saw that someone had suggested using ditto. Would that be better than MacMV?
I also own Bru LE so I could use that.
Any advice would be appreciated.
Thanks,
PaulDitto is a great option -- probably the best.
ditto -rsrc src_folder /Volumes/targetvolume/targetfolder -
Delete Transaction Data from date to date
Hi All,
we want to delete transactional data from date to to date
is there any way to delete data from date to todate?
We are aware of following tcodes
OBR1- Reset transaction data
CXDL - Delete transaction data from ledger
But there is no period/from date to date option available
Example:
we are in 2010 now we want to delete data from 2005- 2007 and we don't want to archive
Thanks in advance
Regards,
MSHi Eli,
Thanks for the reply,
Yes, you are right its not right to delete data based on the period... but we have such kind of typical scenario
Let me get some other opinion
Regards,
MS -
Deletion of Data from Infoprovider after upgradation of source system
HI All,
In our project source system is upgraded from 4.7 to ecc 6.
I have kept the same logical name and changed the RFC connection so that it points to new source system.
Now do i need to delete all data before uploading data from source system or it will be fine as source system name is same.
If i need to delete data ,can u help me how to delete master data especially Hierarchy data. do we need to Delete Hierarchy and recreate it.
Please help em to resolve this issueHi,
It depends on your requirements whether you have to keep the history or not.
If you delete the data from your info providers, you have to reload everything from scratch.
If you want to delete the data from all
1. first delete the data in data targets such as cubes, DSO's or ODS then
2. master data
use these programs to delete from se38
-> rsdrd_delete_facts - for Cubes and DSO or ODS
-> rsdmd_del_background - for master data in background
-> rsdmd_del_master_data_texts - for master data right away
manage your master data info objetcs after the deletion, if you still find them....
go to se14 and delete individually each and every table such as attributes, texts, sids, hierarchy.
hope it helps you better.
But I dont recommend you to delete try to load full repair options for all yur loads
Maybe you are looking for
-
Data reconciliation for Open Orders in SD
Hi, Can any one give me a step by step approach for doing the data reconciliation for open orders in the Sales Infocube. Regds tanu
-
I need to do 2 updates.......I need to upgrade my external hard drive for Time Machine, and I need to upgrade to Mountain Lion, from Snow Leopard --- I have a 750GB hard drive on my MBP, I'll upgrade my external hard drive for backups to a 1TB .... C
-
Reg: passing wdEvent as a parameter .
Hi All, I have a event handler method in my view. I am calling that method in some other method in the same view based on one condition by passing wdEvent as a parameter bcozz event handler methods have wdEvent as a parameter. for this I did com.sap.
-
Using Mac as local wireless webserver (without internet connection)
I want to use a freestanding Mac as a wireless webserver. The mac couldn't be connected to the internet but would hold all its content locally, which would be accessible to other devices on a wireless network. I feel sure this should be possible some
-
Backups of the JVM.CONFIG file are not created
Backups of the JVM.CONFIG file are not created. CF10 > Server Settings > Java and JVM in part says: Backups of the jvm.config file are created when you hit the submit button. You can use this backup to restore from a critical change. CF10 Help page