Extract a table under a table 2D
I've beaten my head against the wall on this issue for a while now and ran out of ideas so I ask for help somehow.
What I want is pretty simple:
A way to take a picture 2D with the time and temperature (the temperature is a thermocouple so there is a small amount of noise) and to know when the table first crosses a certain point and start collecting data. After that, I would like to stop the collection of data in this way with a cut-off point. The thing is, is that I like to keep the values of all the data in this table under intact and to match the time with temperature data identical to the original 2D table.
All the methods I've tried to delete data points so that they do not align with the original. I tried to use the trigger Signal Express VI and gives me what I need, but the problem is that I have problems this signal triggered a 2D with time of temp table. Also, I must say that these data are getting sent to a xls. file via ActiveX, that AFAIK only accepts the table format.
My last test, I think that the closest, I'm going to get what I want, so I have the gasket in the hope that it helps me to help you, but its totally wrong if my pride to deform and to propose another approach.
Any help would be great,
Neill
OK, I understand what you mean now. Your "inconclusive" should read actually "not decreasing."
What you probably need is reduce to zero the data for the threshold and to nullify and Exchange limits. Now, it seems to work perfectly.
Tags: NI Software
Similar Questions
-
Hey all,.
I am relatively new to the use of LabView and can not find a way to achieve this.
I have 2 tables, guard A and table B. I have want to search specific of table B values by analyzing the table first and noting what places, index, they are.
Array a I am able to locate locations, but it is in the form of a table 1 d of double. Now that I know the index of places of interest, how can I extract the data from table B?
When I try to use Index Array LabView gives the following error, "source is table 1 d and sink is long. Any help would be appreciated on how I can extract the points of data in table B by the presence of an array of indexes of interest of greately.
Example of what I'm trying to do
Entry:
Places / clues: 1 3 4
Table of waveform: 0 2 4 6 8 10
Output:
0 4 6
Thank you for your time
The tables are indexed locations 1,3, & 4 should be 0, 2 & 3 If you want as the output values of 0. Is attached a photo of the code to do this. Do not forget to disbale for indexing on all data and allow indexing on table ' location/clues. "
-
Application of feedback and a question about extraction of table
Hello all, thanks in advance for anyone could give me any suggestions.
I enclose a code that I have written, the code is a project to control an instrument.
For simplicity I've substituted the signal with the random number generator.
I would be interested to receive general feedback by people more expert than me on writing code.
Then a question.
The code generates a table of 10 items for each value of what I called 'Applied value' in the code.
I'd be interested extract the last value in the array for each applied value.
Thus, for example, if I set Start = 0, = 0.1 step and stop = 1. The size of the array will be 100, values
I am interested to have only 10 to put in another table.
I hope this might be clear enough...
Thank you for your patience.
Giuseppe.
Hey GiuseppeTx,
See if that's what you're going to. I have attached my edited code.
I just added a case structure inside your loop that should do what you want. I take the picture and the length of the array and each time the while loop is about to start (i.e. the terminal Stop is set to True), I conveyed the last value in the table in an array of construction and to a new table. I also have a conditional Terminal configuration where it will transmit only data through if the case structure series 'true' State, ensuring that no data is transmitted if the case if set to false.
I hope this helps you!
-
Teachers Pension extraction process - extract results table
Hi gurus,
Please help us to find the table of results retrieved for the process to extract teachers pension for the legislation of the United Kingdom.
Thank you
RambaudNot sure about the table names, but you can see how it is set up on the screen of the extract system and mark it
Clive
-
Absent extraction of Table columns
Hello
I use Oracle 10 g R2 on Win XP.
I have a requirement in which I need to create a .csv file that store the data retrieved from a table. The table structure is as follows: -.
Name of the table - currency
Columns - Curr_A, Curr_B, Smallest_Curr_A, Largest_Curr_B
Now, the CSV output file should show all the data in the table columns are displayed above with 2 other columns "Curr_C and Curr_D", which should see the Virgin. Now these 2 additional columns are not present in the table structure, however, we have an obligation to name a file to CSV showing 6 columns in the header (4 columns table + extra 2 columns with null value). The additional columns would fill it manually later.
I use the Sub anonymous block to produce a file in .csv format.
How can I accommodate the extra 2 columns in the query SELECT above?DECLARE -- cursor to read the rejected_rows table CURSOR c1_event_data IS select Curr_A CurrA, Curr_B CurrB, Smallest_Curr_A SmallestCurrA, Largest_Curr_B LargestCurrB from Currency; lvch_report_file_name varchar2(70); lvch_report_file_dir varchar2(40) := 'Direc1'; lvch_output_line varchar2(2000); lvch_file_error varchar2(64) := NULL; lfil_file_handle UTL_FILE.FILE_TYPE; lvch_loc VARCHAR2(100); BEGIN --execute immediate 'alter session set optimizer_index_cost_adj=1'; -- Create output file name lvch_report_file_name := 'Test.csv'; -- Open output file lfil_file_handle := UTL_FILE.FOPEN(lvch_report_file_dir,lvch_report_file_name,'W'); --set header record lvch_output_line := 'CurrA,CurrB,SmallestCurrA,LargestCurrB'; UTL_FILE.PUT_LINE(lfil_file_handle,lvch_output_line); for in_loop in c1_event_data loop lvch_output_line := in_loop.CurrA || ',' || in_loop.CurrB || ',' || in_loop.SmallestCurrA || ',' || in_loop.LargestCurrB; UTL_FILE.PUT_LINE(lfil_file_handle,lvch_output_line); END LOOP; -- Close output file UTL_FILE.FCLOSE(lfil_file_handle); --execute immediate 'alter session set optimizer_index_cost_adj=100'; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('Error occcured in code'); DBMS_OUTPUT.PUT_LINE('SQLCODE: '||SQLCODE); DBMS_OUTPUT.PUT_LINE('ERROR Message: '||SUBSTR(SQLERRM,1,1000)); END; /
Thanks a lot for the help.Hello
I would just like to add two extra commas at the end of each row of data.
In other words, where you say now:... lvch_output_line := in_loop.CurrA || ',' || in_loop.CurrB || ',' || in_loop.SmallestCurrA || ',' || in_loop.LargestCurrB;
change to:
... lvch_output_line := in_loop.CurrA || ',' || in_loop.CurrB || ',' || in_loop.SmallestCurrA || ',' || in_loop.LargestCurrB || ',,';
Published by: Frank Kulash, November 16, 2010 11:28
And, of course, change the header line to:
lvch_output_line := 'CurrA,CurrB,SmallestCurrA,LargestCurrB,Curr_C,Curr_D';
-
How to extract 1 ASA and put them in the new table
Hello
Can someone tell me how to extract a table and put in the new table. (eg. I have a table with no 1 to 1000, I would extract only 1, 30, 60, 90,...) ?
Please advise me.
Thank you
concerning
-
Extraction of 2 x 2 table from 10 x 10 array using only for loops
Hi all
I have this assignment for "pattern matching" - user enters the Boolean model 2 x 2, and I have to compare and find in the bigger picture of Boolean random 10 x 10.
I managed to do it with the table palette, but my instructor alert me that for this mission we prohibit this Palace and don't use the "basic" functions
So I'm trying to track my solution and accurate table 2 x 2 from the big picture, but I fall into the "well-known" problem with loops like I can see while searching in google - I want the loop will depart from different 'i', this allows to extract all tables to another place of the largest array iteration 2 x 2.any help is appreciated,
-
Select several files and store in table: folder object type turns into a string?
Hello
I'm trying to implement the following:
The user selects a folder (which contains subfolders) in a dialog box:
Set Dateiauswahl = CreateObject. BrowseForFolder (0, "Verzeichnis Park", 512, mess_path)
Folder value = CreateObject ("Scripting.FileSystemObject"). GetFolder (Dateiauswahl.Self.Path)
All subfolders of the selected folders are listed in two variables with the overall picture:
Call GlobalDim ("FolderList (" & Ordner.SubFolders.Count - 1 & "" ")" ")
Call GlobalDim ("FolderPaths (" & Ordner.SubFolders.Count - 1 & "" ")" ")
f = 0
for each Unterordner in Ordner.SubFolders
FolderList (f) = Unterordner.Name
FolderPaths (f) = Unterordner
f = f + 1next
Only later the files of some of the subfolders should be stored in another file list table:
f = 0
for q = 0 to UBound (selection)
Unterordner = FolderPaths (selection (q))
Call MsgBox (Unterordner)
For each file in Unterordner.Files
If instr (1, File.Name, "Speed") = 0 then
FileList (f) = File.Path
f = f + 1
end if
Nextnext
Now I seem to have a problem with the type data stored in the FolderPaths table. While Unterordner is a Folder object and must be a Folder object for each file in Unterordner.Files to work, store in the array it transformed into a string variable.
I don't really understand why and am looking for a solution so that I can extract single table FolderPaths subfolders and then extract the files.
Hi maliya,.
To assign an object to an array element (or any other variable), you must use the Set syntax, like this:
Set FolderPaths (f) = Unterordner
Then later you can retrieve it with the same syntax:
Set Unterordner = FolderPaths (selection (q))
Brad Turpin
Tiara Product Support Engineer
National Instruments
-
postuimessage table activexparam
Hello. So, I'm on a school project. Trying to learn how to make a custom user interface that interacts with Teststand. I'm learning. I have a table that I'm passing of teststand to a custom interface to OI that I created from the example of simple UI interface that comes with Teststand. I want to update the arrray indicator I have on the OI with the picture that I'm passing of teststand. What I've read so far on the internet and forums, is that a good way to do it is by the way the TestStand array variable via a PostUiMessage. More specifically, through the activexparam of the PostUiMessage component. It sounds easy enough to do... so I did.
On the side of the OI, I am able to detect the eventcode I put in the PostUIMessage I created in TestStand. However, I'm not sure how exactly to extract the table in part activexdata of the UiMessage on the side of the IO. I think it's in passing me a reference which is essentially just a memory location... I think so. I think that it is a pointer to the array. I just can't understand how in fact turn the activexdata in a table on the side of the IO and put it in my table indicator on the my front panel of the IO.
If you can help, I'd appreciate it. More specific, the better.
The value stored in the ActiveXdata parameter is a PropertyObject which is the array. Use the API of PropertyObject TestStand to access. If you use a LabVIEW there is also a VI wrapper (in the palette of teststand. Screws are called 'Get the property value' / 'Value of the property') to convert to and from an array of labview.
Hope this helps,
-Doug
-
Formula with coefficient table node
Hello everyone!
First of all, I want to thank you all from this forum because it helps me a lot with the question, thank you!
And now my doubt...
I have a table of measured values, and I need to use it in a formula to convert measures voltage, temperature.
In this equation, I have coefficients I wanted to extract a table or a matrix.
Try to solve this. I converted the table into a cluster and send formula node inside a loop for.
Before I inserted the cluster and wrote the coefficients manually, the program worked, but now it doesn't
I made the program run with the "lamp" and noted that, in my loop for example, the 'I' does not increase... Any suggestions?
Thanks for the help.
Leandro
Ok. I'm kind again in LV
I did not know the index and it influences in the loop for, thank you, it helped me a lot. I don t know how to use the commands that you said, but I found an alternative. Maybe (and I'm sure) that it's not the best, but it works. If you gak, or anyone who reads this has another idea, post it here. I am interested to know.
After that I'll take a look in these commands, you said to learn more on this subject.
Thank you very much
Leandro V. Zaccarias
MEF-UNICAMP
-
Conversion of waveform (DBL) in table 1 of double d
HELO
I received samples of I and Q in waveform (LDM). Now I want to convert I and Q in complex form using Re / Im at the complex in the range complex. When I plugged the berries directly to the block, her gives me a connection error that says that
"You have connected two terminals of different types.
The type of the source's Waveform (DBL)
"The sink type is table 1 d of double (real 64 bit ~ 15 digit precision)"
How do I remove it?
I posted the document showing the problem.
Thanks in advance.
Use the appropriate function to extract the table 1 d from the type of waveform data. The data type of waveform consisting of a start time, a dt, and an array of values. To get the array of values that you want to use the function to get the elements of waveform in the waveform palette.
-
How to take partial dump using EXP/IMP in oracle only for the main tables
Hi all
select*from v$version; Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production "CORE 10.2.0.1.0 Production" TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production
I have about 500 huge data main tables in my database of pre production. I have an environment to test with the same structure of old masters. This test environment have already old copy of main tables production. I take the dump file from pre production environment with data from last week. old data from the main table are not necessary that these data are already available in my test environment. And also I don't need to take all the tables of pre production. only the main tables have to do with last week data.
How can I take partial data masters pre prodcution database tables? and how do I import only the new record in the test database.
I use orders EXP and IMP. But I don't see the option to take partial data. Please advice.
Hello
For the first part of it - the paintings of masters just want to - use datapump with a request to just extract the tables - see example below (you're on v10, so it is possible)
Oracle DBA Blog 2.0: expdp dynamic list of tables
However - you should be able to get a list of master tables in a single select statement - is it possible?
For the second part - are you able to qrite a query live each main table for you show the changed rows? If you can not write a query to do this, then you won't be able to use datapump to extract only changed lines.
Normally I would just extract all the paintings of masters completely and refresh all...
See you soon,.
Rich
-
Table slow access by index rowid
Hi all
10.2.0.1
I have two queries that do the same thing but written in a different way.
A quick index is scan and accesses the table with rowid, the other performs a full table scan.
Partial TKPROF for query performing index scan Q_I:
Query run TKProf full table SCAN Q_f:call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.01 0.01 0 0 2 0 Execute 1 0.00 0.00 0 0 13 0 Fetch 5 0.14 0.69 13 24252 0 53 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 7 0.15 0.70 13 24252 15 53 Misses in library cache during parse: 1 Rows Row Source Operation ------- --------------------------------------------------- 53 SORT GROUP BY (cr=24252 pr=13 pw=0 time=692418 us) 1103 HASH JOIN (cr=24252 pr=13 pw=0 time=691345 us) 222 TABLE ACCESS FULL HOD_USER (cr=5 pr=0 pw=0 time=42 us) 1100 VIEW (cr=24247 pr=13 pw=0 time=690198 us) 1100 HASH GROUP BY (cr=24247 pr=13 pw=0 time=689097 us) 36496 TABLE ACCESS BY INDEX ROWID DDO_ALT (cr=24247 pr=13 pw=0 time=109536 us) 36496 INDEX FULL SCAN PK_DDOALT (cr=2226 pr=6 pw=0 time=36532 us)(object id 117105) Rows Execution Plan ------- --------------------------------------------------- 0 SELECT STATEMENT MODE: ALL_ROWS 53 SORT (GROUP BY) 1103 HASH JOIN 222 TABLE ACCESS MODE: ANALYZED (FULL) OF 'HOD_USER' (TABLE) 1100 VIEW 1100 HASH (GROUP BY) 36496 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'DDO_ALT' (TABLE) 36496 INDEX MODE: ANALYZED (FULL SCAN) OF 'PK_DDOALT' (INDEX (UNIQUE)) Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ SQL*Net message to client 5 0.00 0.00 db file sequential read 13 0.09 0.55 SQL*Net message from client 5 0.00 0.00
Why 24247 complies for access by index rowid table, for access to the index, is 2226.call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 4 0 Execute 1 0.00 0.00 0 0 13 0 Fetch 5 0.15 0.39 17 2023 0 53 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 7 0.15 0.40 17 2023 17 53 Misses in library cache during parse: 1 Optimizer mode: ALL_ROWS Rows Row Source Operation ------- --------------------------------------------------- 53 SORT GROUP BY NOSORT (cr=2023 pr=17 pw=0 time=398252 us) 648 VIEW (cr=2023 pr=17 pw=0 time=399497 us) 648 SORT GROUP BY (cr=2023 pr=17 pw=0 time=398845 us) 37537 HASH JOIN (cr=2023 pr=17 pw=0 time=564274 us) 222 TABLE ACCESS FULL HOD_USER (cr=5 pr=0 pw=0 time=267 us) 36679 TABLE ACCESS FULL DDO_ALT (cr=2018 pr=17 pw=0 time=37 us) Rows Execution Plan ------- --------------------------------------------------- 0 SELECT STATEMENT MODE: ALL_ROWS 53 SORT (GROUP BY NOSORT) 648 VIEW 648 SORT (GROUP BY) 37537 HASH JOIN 222 TABLE ACCESS MODE: ANALYZED (FULL) OF 'HOD_USER' (TABLE) 36679 TABLE ACCESS MODE: ANALYZED (FULL) OF 'DDO_ALT' (TABLE) Elapsed times include waiting on following events: Event waited on Times Max. Wait Total Waited ---------------------------------------- Waited ---------- ------------ SQL*Net message to client 5 0.00 0.00 db file sequential read 15 0.06 0.18 db file scattered read 1 0.06 0.06 SQL*Net message from client 5 0.00 0.00
Why the full table scan is faster in this case?Hisoka says:
Why the full table scan is faster in this case?As P. Forstmann suggested, it would help if you can post queries and their results of EXPLAIN PLAN.
Now, I know guess is bad, but I want to have a go on this one, so we'll see ;)
My comments (in no particular order of relevance/importance)
(1) you use a non patched (10.2.0.1) version which, I believe, is known to contain many bugs (and therefore can throw 'surprises')
(2) the name of the index, it is clear that PK_DDOALT is a unique index (supporting the primary key constraint) table DDO_ALT so
factor clustered index is (probably) not the issue.
(3) the TkProf output tells 36496 lines are currently extracted from table DDO_ALT in the query that uses the index analysis while
36679 lines are currently extracted a DDO_ALT table in the query that uses the full table scan.
It seems that the DDO_ALT table has about 36679 lines. Now, it will be slower (such as oracle to access most of these lines using the index
you will need to visit a (table) block at the same time (and will eventually visit same block several times) compared to the full table scan.
who reads several blocks at a time (and eventually NOT have to visit same block several times). This can be confirmed
by the numbers "cr" TkProf. 24247 consistent gets for the query using access indexed for 36496 lines (with the exception of consistent gets for the reading of the index)
2018 coherent vs gets to access 36679 lines.
(4) the operation "line Source" indicates that the query using an indexed access is written so that it forces the use of the index (most likely
using an indicator of index). It's that reason optimizer uses "INDEX FULL SCAN" and not "INDEX RANGE SCAN". A FULL INDEX SCAN bed set
structure of the index, a block at a time, which is not an efficient operation compared to the optimizer to choose naturally "INDEX RANGE SCAN", which
that will show some of the index blocks.
(5) Finally, it appears this query that uses access indexed, is written to 'say' oracle how to process the query. Maybe it's OK if you think that
your knowledge of the data schemas is better than knowledge of the optimizer. But this certainly isn't the case here.
Your queries are probably something like
Query using index:SELECT
FROM HOD_USER, (SELECT /*+ INDEX(DDO_ALT PK_DDOALT) */ FROM DDO_ALT GROUP BY ) DD WHERE HOD_USER. = DD. GROUP BY ORDER BY The query using full table scan:
SELECT
FROM (SELECT FROM HOD_USER, DDO_ALT WHERE HOD_USER. = DDO_ALT. GROUP BY ORDER BY ) GROUP BY ORDER BY Published by: user503699 on August 21, 2010 18:47 added ORDER BY clauses for both queries
-
To extract data from a file previously misspelled
I am trying to extract two tables of a previously written file, which contains two tables, separated by a tank/t. Files are saved in this format;
Wavelength (nm)ower (W):
* lambda1 * power1 *.
* lambda2 * power2 *.
...
' lambda # "and" power # ' are the two numbers actually, but I wanted to illustrate that they are correlated.
In addition, with the retrieved data, I want to write a new file, which uses the information (in another port scan) to calculate a third value (called the EQA), which depends on the power and the current at a given wavelength. While the VI is the current reading by lambda, it should also be able to find what the lambda value to such power has been and calculate the EQE.
I have so far on the screws are attached. The third part of 'problem.vi' is locked in a while loop, while she repeats many times.
Thank you very much
-
extract the data of a loop for
Hello
I wrote a program that controls an active supplier to increase the current from 0 to 50 A, during the iteration of 1000. This current passes through a coil and form a variable magnetic field. A Gaussmeter is used to measure the field. My goal is to register the domain for each iteration. I added the Gaussmeter initial for loop program so that I can read field corresponding to each current momentary. My problem is how to extract a table that contains fields from the loop of 1000 registered and save it. I really appreciate it if you will guide me.
Thank you very much
HadiHello!
I understand from your code, you get the values as a string? (substring, 2 and 3 of substring substring)
In my opinion the best way to do it without the refactoring of the code is to create a queue with data type to string. See attachments (excerpt of VI and VI contains exactly the same code but I saved the VI for the version of LabVIEW 8.6).
For future projects, consider using the http://www.ni.com/tutorial/7595/en/ stacked (or flat) State Machine sequence Structures are really hard to understand for people other than the developer.
It is always much easier to share code that uses excerpts from VI http://www.ni.com/tutorial/9330/en/
Please, let me know if it helped you
Maybe you are looking for
-
For about seven months now (as of June 2013) I have pop ups ask me a question private while hiding themselves, according to the results of my browsing. They are sometimes streaming 'news' and other stuff that I didn't ask for. It can also be tabs and
-
where the 12.4 is nano automatic fill option
new update, but when I connect my shuffle or nano, there are no settings, no auto-fill option, nothing, could not find the tab that shows me what version, series No. etc., no matter what I do
-
Canon 6 d and that compatible lenses?
I recently sold all my equipment Nikon together for various reasons. I'll buy the Canon 6 d when it comes out next month. I live in the Japan and it is currently listed as a kit: EOS 6 d EF24 - 105L IS USM. I want a 18-200 and hope that Canon fits
-
HI gurusI need to install a 11.1.2.3.500 system, which method is the best when I'm building the system from scratch? I have developed the following methods, but note of course that is well or better...(A)-Install the 11.1.2.3 on servers.-Install 11.1
-
Install the Prores presets in Adobe Media Encoder. Will not be shown in prelude
Hello worldI installed presets for Prores in Adobe Media Encoder. Follow the instructions to import the Media Encoder presets. But when I go to transcode in prelude I don't see these options.Any ideas what I am doing wrong? Thank you!