Transmission of data in a table with loop and case
Hi all, I'm Felix and new to labview.
I am currently on a certain data editing project. I have some data (Spectra taken in different times) in a .lvm file which needs a Gaussian fit and I would like to have the characteristics of adjustment to a 2D array, so I can trace the amplitude, time vs Center and width.
My problem is that my final picture is a 2d one and made it gives me 1 d.
Can you please help me to solve this problem.
Thank you
Felix
Hi felixd,
According to my understanding, your problem is in the construction of the matrix. Instead of spending items in the funcion with a 2D table array construction, you can initially built a 1 d array elements and then include her in a 2D array using another feature of table construction. Check the attached vi.
Concerning
Amine31
(Give congratulations to good answers and Mark as a Solution If your problem is resolved)
Tags: NI Software
Similar Questions
-
How to export data from the table with the colouring of cells according to value.
Hi all
I use jdeveloper 11.1.1.6
I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?
You can find us apache POI-http://poi.apache.org/
See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html
-
data from 3 tables with later dates
Hello
Need help with the PL/SQL code, I need to write a code that will get the data from 3 tables with the most recent date.
For an individual ACT_CODE the output of the SQL query should display the data including the last dates back to 3 tables, if there is no
Date of the table, it should show the remaining data (think that the left join will do here)
Names of tables:
Institution_UPDT aiu
AC ASQ_CONTACT
GR_AUTHORIZE gr
All 3 tables have ACT_Code in common
Column names
INSTITUTION_UPDT IAU - IAU. ACT_CODE, AIU.project_id as proj, IAU. UPDT_TYPE_ID, IAU. User_id, IAU. UPDT_DATE
ASQ_CONTACT ac - ac. ACT_CODE as contact_code, ac.project_id, ac.first_name, ac.middle_initial, ac.last_
Name, AC.title, AC. Status, AC.status_date
GR_AUTHORIZE gr - GR ACT_CODE as grad_code, gr.name, gr.title AS grad_title, gr.submit_date
Are the names of the columns date
AC.status_date,
IAU. UPDT_DATE and
Gr.submit_date
Thanks to you all
appreciate your help
JeshHi, Ngoumba,
If a given ACT_Code couldn't miss from any of the tables, then you will use better full outer joins, not a join left outer.
Perhaps it would be more effective to make a UNION of the three tables, then rotate the results in three datecolumns.
You can use the GROUP BY aggregation to get the last date for each ACT_Code in each table.
If you need other columns in the row which is the last date, you can use the ROW_NUMBER analytic function, like this:SELECT ACT_Code , updt_date , ROW_NUMBER () OVER ( PARTITION BY ACT_Code ORDER BY updt_date DESC ) AS r_num FROM institution_updt
The lines with r_num = 1 are the most recent
This is a technique of ot the UNION-PIVOT example:
WITH union_data AS ( SELECT ACT_Code , MAX (updt_date) AS last_date , 1 AS table_id FROM institution_updt GROUP BY ACT_Code UNION ALL SELECT ACT_Code , MAX (status_date) AS last_date , 2 AS table_id FROM ASQ_Contact GROUP BY ACT_Code UNION ALL SELECT ACT_Code , MAX (submit_date) AS last_date , 3 AS table_id FROM GR_Authorize GROUP BY ACT_Code ) SELECT ACT_Code , MAX (CASE WHEN table_id = 1 THEN last_date END) AS aiu_updt_date , MAX (CASE WHEN table_id = 2 THEN last_date END) AS ac_status_date , MAX (CASE WHEN table_id = 3 THEN last_date END) AS gr_submit_date FROM union_data GROUP BY ACT_Code ORDER BY ACT_Code ;
Published by: Frank Kulash, on September 16, 2009 15:02
Added UNION-pivot example -
How publish data from the table with some data loss all post in the forum
I wonder how people are displayed the data in the table or the result of a query with losing them its format from Sqlplus display when they post in the forums of Oracle. I searched on the basis of knowledge of DB but I see no article about it. can you please help me or direct me to this link, I tried different options using code and other tags but nothing has worked, thank you for your help. Thank you.
Edited by: Ariean October 3, 2011 12:34You can click on the link to the FAQ at the top right: http://wikis.sun.com/display/Forums/Forums+FAQ.
-
Delete data from a table with joins
Hey guys,.
IV struggled for a while with a sql now.
I'm trying to remove some data from urole based on the www.lesormes.com in the select part.
The selection is correct, but the part delete Deletes all data in the table urole and not only those found in the select.
How can I delete all data by using a join?
DELETE FROM urole
WHEN THERE IS)
SELECT *.
User JOIN urole
ON user.userid = urole.userid
AND user.audit_version = urole.audit_version
JOIN secrole
ON urole.roleid = secrole.roleid
WHERE user.audit_current = 'Y '.
AND secrole.audit_current = 'Y '.
AND IN secrole.rolename
('X',
« Y »,
« Z »,
));
Thanks for your help in advance!Hello
Welcome to the forum!
Chances are, you don't want to join in the subquery EXISTS of EPM; It is more likely you want just like this correlated subqueries:
DELETE FROM urole WHERE EXISTS ( SELECT 0 FROM user WHERE user.userid = urole.userid AND user.audit_version = urole.audit_version AND user.audit_current = 'Y' ) AND EXISTS ( SELECT 0 FROM secrole WHERE secrole.roleid = urole.roleid AND secrole.audit_current = 'Y' AND secrole.rolename IN ( 'X', 'Y', 'Z' -- No comma here ) ) ;
or maybe an IN subquery:
DELETE FROM urole WHERE p_key IN ( SELECT urole.p_key FROM user JOIN urole ON user.userid = urole.userid AND user.audit_version = urole.audit_version JOIN secrole ON urole.roleid = secrole.roleid WHERE user.audit_current = 'Y' AND secrole.audit_current = 'Y' AND secrole.rolename IN ( 'X', 'Y', 'Z' ) ) ;
where p_key is a unique key (not necessarily a single column) of urole.
It's just a guess; That's all I can do with the information you have posted. Test this carefully before to try it on your actual data.
Whenever you have a problem, it allows to post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.
In the case of a DML (such as DEL) problem, the sample data must re - create the tables as they are to the DML, and the results will be the content of the modified table (urole) after the DML.Furthermore, there is a built-in function called user, the user is not a good name for a table.
-
Export DataGrid data to the file with JSP and Java
My user must be able to load the data into a spreadsheet. I would like to stay with Flex and not use air. I used the windows clipboard, but I experience delays of Flash Player for the largest data sets if the closure of the DataGrid rows takes longer than 2 minutes. I would like to do with passing data to a JSP page or use BlazeDS and then download the file. I would just pass the ArrayCollection collection so I don't have to loop through the rows of the DataGrid. I know that I can receive a Java ArrayList using BlazeDS and it gets converted to an ArrayCollection collection. Is it possible to send an ArrayCollection collection to a JSP page or class Java with BlazeDS?If you want to use JSP and Java, I presented the following article on the Flex Cookbook site that explains how do.
Flex generic data exporter to CSV file -
Dividing the curves with loops and berries
Greetings,
I like a wave form and I need to divide the curve so that it consists of three segments, each segment starting at the value of a peak and ending to the next using loops and berries. I also need to combine in a 2D array and draw the waveforms.
I'm stuck on how to do it. I have attached my code.
Can someone give me some ideas?
Thank you!
TheLT
I'm picturing something along these lines.
-
Using subset of table with loops
I have a 2D (m * n) table and I want to look at a subset of this table (x * y). I am having some problems using the subset of the table by doing this. If I want to browse 'y' columns of items containers 'x', I thought I could use a loop with the function of the subset of the array for interior but the resulting table I receive is actually a populated by the diagonal elements of my natal chart. I enclose my current VI where I hope that things.
For example, if I load an image that is 800px * 600px then my program creates an array of 800 * 600 and each element is the maximum of the value of red, green and blue pixel. So, I want to watch the first 320px * 600px (which is a subset of the array with size 320 * 600). So, how can I use subset table properly to generate that 2d hack? My goal after this step would be to perfom some basic mathematical calculations like averaging on the subset.
This is what you want?
-
import data into the table with the triggers of the sequence
Hello
I'm on oracle 11G on OS SPARC.
I need to import a table from a dump using "imp."
At the destination table where I have to import a 'insert before' with the sequence as the primary key.
Suppose if I am importing data that has the sequence from 200... then when I imported the data into the new table, I have to define the sequence to be the same as the boot sequence for the source or it will automatically use this source sequence.
Please suggest
concerning
KkurkejaDisable the trigger prior to importation.
Thank you
-
Count on a table with header and row data in the query
Hello
I have an obligation to prepare a report that shows the metrics on the provider. I need to find the total PO for this provider, which fit the Bill
report must be mealgne of #ofpo, #invoice, total_inv_amt and total_po_amt, total_tax_amt with numbers also with the point in time. So my question is how do we achieve this I have this below query that gives all the data but do not know how to get the counties with that. All ideas
SELECT hou.name,
POV. $VENDOR_NAME,
API.invoice_num,
API.invoice_id,
invoice_date,
gl_date,
API.invoice_currency_code,
APID.line_type_lookup_code inv_line_type,
APID. Description inv_description,
APID.amount,
APID.unit_price inv_price,
amount_paid,
apt. Name payment_terms,
payment_status_flag,
APC.check_number,
APC.check_date,
Poh.Segment1 po_num,
Poh.CREATION_DATE po_creation_date,
por. CREATION_DATE po_rel_creation_date,
por.release_num,
pol.line_num,
MC. Segment1 category_name,
(select item_num msi.segment1
MSI inv.mtl_system_items_b
where msi.inventory_item_id = pol.item_id
and msi.organization_id = 1) item_num.
pol.item_description po_item_description,
Poll.need_by_date,
pol.unit_price po_price,
Poll.Quantity,
Poll.quantity_cancelled,
Poll.quantity_received,
Poll.quantity_billed
OF api ap.ap_invoices_all,.
Hou hr_operating_units,.
apt, ap_terms_tl
AP.ap_invoice_distributions_all apid,
pod po.po_distributions_all,
Po.po_vendors pov,
Po.po_headers_all poh,
Po.po_lines_all pol,
survey of po.po_line_locations_all,
por po.po_releases_all,
AP.ap_checks_all apc,
AP.ap_invoice_payments_all IPA,
-inv.mtl_system_items_b msi,
Apps.mtl_categories_b mc
WHERE apt.term_id = api.terms_id
AND hou.organization_id = api.org_id
AND BETWEEN TRUNC (poh.creation_date): p_start_date AND: p_end_date
AND api.invoice_id = apid.invoice_id
AND apid.po_distribution_id = pod.po_distribution_id (+)
AND pov.vendor_id = api.vendor_id
AND poh.po_header_id (+) = pod.po_header_id
AND poll.line_location_id (+) = pod.line_location_id
AND pol.po_line_id (+) = pod.po_line_id
AND apip.check_id = apc.check_id (+)
AND apip.invoice_id (+) = api.invoice_id
AND mc.category_id (+) = pol.category_id
AND por.po_release_id (+) = pod.po_release_id
AND pov.vendor_id = 1Hello
Her looks like a job for the COUNT function. That's all I can say with certainty based on the information you gave.
If you want to see on each line of output, the number of rows with the same value of api.invoice_num has a value for poh.po_header_id, you can use
COUNT (poh.po_header_id) OVER (PARTITION BY api.invoice_num) AS po_cnt
I could give much better directions if you could post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data. I realize it's hard with so many pictures. To see some of your courses and the desired output, could help.
-
How to merge data from the table with a single line
Hello
I have three tables subscription_type, the address and the person. Here are the details of the table
Person Subscription_type Address
Person_Id AdressType_id Address_id
Person_name Description Address_type_id
Person_id
Address details
There are three types of different address - home, postal and previous.
Each person can have these three different addresses.
I want to create a view that displays all addresses of three of each person in the table of the person in a single line.
Any help please
In your example, there are 2 rows of columns street1, TOWN, SUBURB etc for a single person. To convert this into a single line, with the new columns we could simply use CASES or DECODE in the select as the SQL below. To understand why consolidation function THAT MAX is used - remove the MAX and GROUP BY in SQL keyword and try.
Select full_name
, max (case when description = "Home" then end street1) Home_Street
, max (case when description = "Home" then end suburb) home_suburb
, max (case when description = end of the "Home" then City) home_city
, max (case when description = "Home" then postal code end) home_postcode
, max (case when description = "Home" then end state_name) home_state
, max (case when description = 'Postal' then end street1) Postal_Street
, max (case when description = 'Postal' and then end of suburb) Postal_suburb
, max (case when description = 'Postal' then the city) Postal_city
, max (case when description = 'Postal' and then end of CP) Postal_postcode
, max (case when description = 'Postal' then state_name end) Postal_state
, max (case when description = "Back" then end street1) Prev_Street
, max (case when description = "Back" then end suburb) Prev_suburb
, max (case when description = "Back" then city end) Prev_city
, max (case when description = "Back" then postal code end) Prev_postcode
address a
S State
No p
Subscription_type att
where a.person_id = p.person_id
and a.state_id = s.state_id
and a.address_type_id = att.address_type_id
Full_name group
-
Script table with Clob and record another database
Hello
How can I read the Clob column data and insert into another table in the database.
The first Table is quality Test and second Production
Is there a way without using Export / Import?
What can I use the charger?
With the help of 9imuttleychess wrote:
mschnatt wrote:
You can only try the db-linkCREATE LINK
of the DATABASE to CONNECT to IDENTIFIED BY with the HELP of " "; and make the table
create table...
in select...Thank you, but too no work :-(:-(
SQL> select id,clob_data from myclob@teste; select id,clob_data from myclob@teste * ERRO na linha 1: ORA-22992: cannot use LOB locators selected from remote tables
Well you don't have the answer said to
and make the table
create table...
in select...Also in the manual, you could save a lot of time if you open.
http://docs.Oracle.com/CD/B14117_01/AppDev.101/b10796/adlob_wo.htm#1006314
>
The following syntax is supported on the remote LOB columns:CREATE TABLE t AS SELECT * FROM table1@remote_site; INSERT INTO t SELECT * FROM table1@remote_site; UPDATE t SET lobcol = (SELECT lobcol FROM table1@remote_site); INSERT INTO table1@remote_site select * from local_table; UPDATE table1@remote_siteset lobcol = (SELECT lobcol FROM local_table); DELETE FROM table1@remote_site
It is the only syntax support involving some LOBs in remote tables. No other use is supported.
-
Need help with loop and variable
Hi all.
I'm almost there with this, but I'm stuck on one last question.
I am a loop in XML to choose the images to display, with the title and ID (which is used in the link).
Everything works now except the itemID. This used to work, but now the ID is the same for all containers/links on the page.
Code is attached below, and the function is the image.addEventListener.
The itemID variable is that doesn't change is not to reflect the individual elements.
Please please help.
Thank you very much
Hello
You can try to use logic you used in your posted previous sample. Use the event.currentTarget.id to get the ID of the Image.
image.addEventListener (MouseEvent.CLICK, function(e:Event):void
{
var imgId:String = e.currentTarget.id;
var url: URLRequest = new URLRequest (" http://localhost/youtubeDownloader-debug/index.cfm?video=" + imgID).
navigateToURL (url, "_blank");});
You can also use the property 'data' of the Image to store the value you want and use the same property to get the value in the event listener.
I hope this helps.
-
Possible bug: save the table with double and extended precision to the worksheet
If one concatenates an array of double-precision and an array of precision extended with the 'build' vi table, then recorded using 'Write in a spreadsheet file' vi any digits to the right of the decimal are reset to zero in the saved file. Regardless of the entry of signifier of format (for example %.10f) to the vi 'Write in a spreadsheet file'.
I'm on Vista Ultimate 32 bit and labview 9.0
This is a possible bug that is easily circumvented by the conversion of a type before you incorporate arrar in a worksheet. Nevertheless, it's a bug and it cost me some time.
Hi JL,.
No, this is not a bug - it's a feature
Well, if you'd look closer you would recognize the 'save to spreadsheet' as polymorphic VI. As this polymorphic VI does not support the EXTENSION numbers internally (it only supports DBL, I64, and String) LabVIEW selects the instance with more precision: I64 (I64 a 64 bits of precision, DBL that 53...). Your options are:
-the value of the instance to use as the DBL (by right click and "Select type... »)
-make a copy of this VI, save it under a different name and make support number of POST (not rework the polymorphic VI like you would break compatibility with other facilities of LV or future revisions)
-
Hello
I moved 2 x a new vCenter 4.0 3.5 ESX hosts. I also have a new ESX 4.0 host.
Can I connect this ESX host 4.0 for the data store using the 2 x ESX 3.5 hosts? It is a VMFS 3.31 on a CX3-20 SAN data store. I was then going to vMotion virtual machines to the new host and reinstall the old.
I just fear that the new ESX 4.0 host will do something to the data store that make it incompatible with the older ESX 3.5 servers.
Thanks in advance,
Euan
Yes, you can connect and use these data with ESX versions warehouses. If you have sVMotion it will work as well. On ESX 3.5 you can only move the guest as a whole on an ESX 4.0 host, you can move the vDisks independently.
It is perhaps unnecessary, but when I update the ESX 3.5 servers 4.0 I unplug the storage until the update is running. Just in case...
AWo
VCP / vEXPERT 2009
Maybe you are looking for
-
Photo wall option is available on the new Apple TV?
I understand that they were not there when you first launch.
-
I try to download it and the message says: your current system does not. How it go down?
-
[Deployment Webworks App device]
Hi friends, I have developed webworks app and create a plugin private by QNX Momentics IDE. I could config to run application on Dev Alpha Simulator BB10_1_X. But when I deploy to device Z10 and executed, an error has occurred: Need of that error can
-
How can I burn multiple files on a disc of SMEs without substitution of files?
I want to burn small video files on the same disc without replacing each other.
-
Are the "Oracle Hyperion Reporting and Analysis" and "Oracle Hyperion Financial Reporting," one and the same product?