A set from a set of sampled data from a thickness sensor.
A set from a set of sampled data from a thickness sensor.
The samples are stored in an appropriate array of up to 100 elements.
The values represent the depth of the insulation around a particular cable.
The thickness can vary from 0-4mm represented by a corresponding real value
stored in the array. as long as the depth is between 1 and 4 mm the cable
falls within the allowable specification however if it falls below 1mm it is
deemed to be too thin.
Design a VI that will identify the number of thin values and display as a
percentage of total number of samples.
The front panel have the must have the following:
An array of controls holding the sampled values.
An indicator holding the percentage of thin values.
Attachments:
Test Data 1.vi 14 KB
hi there, this is Faddi, I am doing the same assignment as the one you poested earlier!! I know its a very basic one, but i need your help in doin the second task asap PLEASE!! IF you could please...its as follows:
This is to be designed to work on a set of sampled data from a thickness sensor. The samples are stored in an appropriate array of up to 100 elements. The values represent the depth of the insulation around a particular cable. The thickness can vary from 0- 4 mm represented by a corresponding real value stored in the array. As long as the depth is between 1 and 4 mm the cable falls within the allowable specification however if it falls below 1 mm it is deemed to be too thin. Specification 1
To design a VI that will identify the number of thin values and display as a percentage of the total number of samples. The front panel must have the following: An array of controls holding the sampled values. An indicator holding the percentage of thin values. Specification 2
Thin values tend to appear as sections or patches along the length of the cable i.e. values of less than 1 mm stored in successive array elements. To design a VI that will meet specification 1 and will also calculate the number of these thin patches. The front panel will now have an extra indicator to display the number of patches.
Thankyou
Similar Messages
-
How to display data from a recordset based on data from another recordset
How to display data from a recordset based on data from
another recordset.
What I would like to do is as follows:
I have a fantasy hockey league website. For each team I have
a team page (clubhouse) which is generated using PHP/MySQL. The one
area I would like to clean up is the displaying of the divisional
standings on the right side. As of right now, I use a URL variable
(division = id2) to grab the needed data, which works ok. What I
want to do is clean up the url abit.
So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
I want is clubhouse.php?team=Wings.
I have a separate table, that has the teams entire
information (full team name, short team, abbreviation, conference,
division, etc. so I was thinking if I could somehow do this:
Recordset Team Info is filtered using URL variable team
(short team). Based on what team equals, it would then insert this
variable into the Divisional Standings recordset.
So example: If I type in clubhouse.php?team=Wings, the Team
Info recordset would bring up the Pacific division. Then 'Pacific'
would be inserted into the Divisional Standings recordset to
display the Pacific Division Standings.
Basically I want this
SELECT *
FROM standings
WHERE division = <teaminfo.division>
ORDER BY pts DESC
Could someone help me, thank you.Assuming two tables- teamtable and standings:
teamtable - which has entire info about the team and has a
field called
"div" which has the division name say "pacific" and you want
to use this
name to get corresponding details from the other table.
standings - which has a field called "division" which you
want to use to
give the standings
SELECT * FROM standings AS st, teamtable AS t
WHERE st.division = t.div
ORDER BY pts DESC
Instead of * you could be specific on what fields you want to
select ..
something like
SELECT st.id AS id, st.position AS position, st.teamname AS
team
You cannot lose until you give up !!!
"Leburn98" <[email protected]> wrote in
message
news:[email protected]...
> How to display data from a recordset based on data from
another recordset.
>
> What I would like to do is as follows:
>
> I have a fantasy hockey league website. For each team I
have a team page
> (clubhouse) which is generated using PHP/MySQL. The one
area I would like
> to
> clean up is the displaying of the divisional standings
on the right side.
> As of
> right now, I use a URL variable (division = id2) to grab
the needed data,
> which
> works ok. What I want to do is clean up the url abit.
>
> So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
> all
> I want is clubhouse.php?team=Wings.
>
> I have a separate table, that has the teams entire
information (full team
> name, short team, abbreviation, conference, division,
etc. so I was
> thinking if
> I could somehow do this:
>
> Recordset Team Info is filtered using URL variable team
(short team).
> Based on
> what team equals, it would then insert this variable
into the Divisional
> Standings recordset.
>
> So example: If I type in clubhouse.php?team=Wings, the
Team Info recordset
> would bring up the Pacific division. Then 'Pacific'
would be inserted into
> the
> Divisional Standings recordset to display the Pacific
Division Standings.
>
> Basically I want this
>
> SELECT *
> FROM standings
> WHERE division = <teaminfo.division>
> ORDER BY pts DESC
>
> Could someone help me, thank you.
> -
Hope someone can help I bought the iMac almost new and now want to transfer by date from my old PC
Here's information on the Migration Assistant workflow for transferring data from a PC:
http://support.apple.com/kb/HT4796
Matt -
By following the directions on Firefox to open up the Library tool - import & backup - The drop down choice to 'Import Data from another Browser' this choice is greyed out and unavailable. I do not know how to proceed in order to import my favorites from IE.
Make sure that you do not run Firefox in permanent Private Browsing mode.
*https://support.mozilla.com/kb/Private+Browsing
To see all History and Cookie settings, choose:
*Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
*Deselect: [ ] "Always use private browsing mode" -
Selecting Missing Days from a given range of Date from a table
Dear Oracle Guru's
Consider the following table
txndetails
Rundate date
Txncnt Number
userid varchar2(100)
Data will be as follows
Rundate txncnt userid
17-Nov-2009 4 admin
18-Nov-2009 7 admin
21-Nov-2009 3 admin
23-Nov-2009 4 admin
We populate this table on the basis of txn generated. This is supposed to run daily based on the transactions. Certain days there wont be any transaction at all. hence there will be no entry on this table .
At any given point of time , we would like to know the days on which there is no entries in this table
In the above sample data, there is no entries on 19th, 20th and 22nd
we have to list out those days
I got confused while trying some methods
Kindly guide me in this regard
with warm regards
SsrHi,
As Centinul and Bhushan said, you need a list of all the possible dates; "CONNECT BY LEVEL <= x" is an efficient way to generate such a list in Oracle SQL.
Once you have the list of all days, you can use MINUS, like Centinul or Bhushan did. You can also use an outer join, as shown below.
WITH extrema AS
SELECT TRUNC (MIN (rundate)) AS start_date
, TRUNC (MAX (rundate)) AS end_date
FROM txndetails
all_days AS
SELECT start_date + LEVEL - 1 AS a_date
, start_date + LEVEL AS next_date
FROM extrema
CONNECT BY LEVEL <= 1 + end_date - start_date
SELECT a.a_date
FROM all_days a
LEFT OUTER JOIN txndetails t ON t.rundate >= a.a_date
AND t.rundate < a.next_date
WHERE t.rundate IS NULL
;Remember that all DATEs include hours, minutes and seconds. In the list of all days that you generate, the hours, minutes and seconds will probably be 00:00:00; be careful if the hours, minutes and seconds in your actual DATEs are not always 00:00:00.
The query above shows missing dates between the first date that is actually in the table and the last date in the table.
In practice, most people are interested in a deffierent range, such as all dates between two given parameters, or all dates within the last year.
If that's the case, you don't need the sub-query extrema; you can use the paremters (or compute the values) in all_days, based on dual.
For example, to get the most recent 365 days:
WITH all_days AS
SELECT TRUNC (SYSDATE) + LEVEL - 365 AS a_date
, TRUNC (SYSDATE) + LEVEL - 364 AS next_date
FROM dual
CONNECT BY LEVEL <= 365
SELECT a.a_date
... -- Same as beforeEdited by: Frank Kulash on Nov 23, 2009 10:54 AM -
Select from 4 tables but include data from 3 even if 4th is null
Hello -
I'm quite new to oracle and apex, but enjoying learning - but sometimes I need a gentle nudge to know what I need to learn about.
I have a select statement that works - selecting specific columns from 3 tables:
SELECT
"TERRITORIES"."TER_NAME" "TER_NAME",
"TERRITORY_TYPES"."TTP_DESCRIPTION" "TTP_DESCRIPTION",
"COUNTRIES"."CNT_DESCRIPTION" "COUNTRY"
FROM
"TERRITORIES", "TERRITORY_TYPES","COUNTRIES"
WHERE
"TERRITORIES"."TER_TTP_ID"="TERRITORY_TYPES"."TTP_ID"
and
"COUNTRIES"."CNT_TER_ID"="TERRITORIES"."TER_ID"
I want to add in a 4th table for, you guessed it, States.
However, many of the countries do not yet have states in the states table (and may never have any). Therefore, they do not appear in the results. I want them included in the query, so that I'll have the opportunity to add in the data via Apex.
Is there a phrase I can insert in the 1st query so that I'll get data for Territory Type, Territory and Country, even if the State table is null?
Or, do I need to insert records into the state table, such as: insert into states (state_ID, STATE_CNT_ID) values (state_seq.nextval,2). If so, do I just do that over and over, replacing the value? Or is this where I need to learn about bind variables? Or some other command?
Thank you-
Marion in NY
Edited by: mtpaper on Oct 24, 2009 12:54 PM
I FIGURED IT OUT! I DID IT! How do I mark myself as helpful???
insert INTO states
(state_ID, STATE_CNT_ID)
SELECT state_seq.nextval, cnt_id
FROM countries
WHERE not exists (select * from states where states.state_cnt_id = countries.cnt_id)
Edited by: mtpaper on Oct 24, 2009 1:10 PMYou certainly could insert data into the STATES table, but I generally wouldn't advise inserting rows into a STATES table for states that don't actually exist. It would seem to make far more sense to just do an outer join when you include the STATES table in your query
SELECT "TERRITORIES"."TER_NAME" "TER_NAME",
"TERRITORY_TYPES"."TTP_DESCRIPTION" "TTP_DESCRIPTION",
"COUNTRIES"."CNT_DESCRIPTION" "COUNTRY",
s.state_name
FROM TERRITORIES t ,
TERRITORY_TYPES tt,
COUNTRIES c,
states s
WHERE "TERRITORIES"."TER_TTP_ID"="TERRITORY_TYPES"."TTP_ID"
and "COUNTRIES"."CNT_TER_ID"="TERRITORIES"."TER_ID"
and c.cnt_id = s.state_cnt_id(+)The {noformat}(+){noformat} operator indicates that you want to do an outer join. So if there is no row in the STATES table that matches the join condition, a NULL is returned.
From a purely stylistic standpoint, I would generally suggest using aliases (i.e. the T, TT, C, and S in the FROM clause) rather than having to constantly write out all the table names. And I wouldn't suggest putting double-quotes around everything-- that forces all your identifiers to be upper case and case sensitive.
Justin -
Srollpane scrolls when loaded data from XML, not when loaded data from ASP
Hi,
I load into scrollpane a swf, which has a dynamicly loaded
data. If I use the XML file, it works (the scrollbar is visible),
but if I use a asp file, which creates xml, it doesn't work (the
scrollbar is not visible). Any ideas?Hi,
let say I have a A.swf and a B.swf. In A.swf I have a
scrollpane in to wich the B.swf is loaded. Below is the code in
B.swf. If I load the data from a asp file, the scrollbar in the
scrollpane is not visible, but if I use the xml file, the scrollbar
is visible.
What I've meant is that I think that Flash gets the same form
of data, no matter if I use the asp or xml, because the asp creates
the same xml form as I use in the xml file. I hope this makes any
sense. -
Setting up a Vi to take data from ~ 25 inputs
I am using a PCI-6033E DAQ under labview 7.1 on a PC running W 2000 and
plan to take data on ~ 25 inputs , and average them for a short period
of time. The objective is to get operational dfata on a large air dryer
system and need pressure, temperature, humidity and air flow data
in the incoming air stream. adn in other parts of the system. The
apparatus would be modified with the airfow sensor being slightly
moved farther a small distance into the airstream and this data taking
process repeated.
I would appreciate being pointed to a reference on setting up this
large a number of inputs in one vi ( or more if necessaery) , and
averaging the results - for each run and present the results in a
graph- or an impo
rt to an Excel file to then plot the results. and be
able to compare results between two runs with different insertion
distances of the airflow sensor into the air stream
That objective for this airflow sensor movement is to obtain the air
flow profile in a ~ 10" ID pipe. and other parts of the air dryer
system
Thanks in advance .
DanDan,
There are two things to consider right now. The first is the programming architecture and the second is the DAQ programming.
DAQ Programming:
For the DAQ programming there are a couple of ways to set this up. Both methods are equally valid and differ only by what you are more familiar with.
The first is to programmatically setup your tasks to run different types of measurement. The following link will point you to a knowledge base on this. http://digital.ni.com/public.nsf/websearch/89B7218072F1CAF686256DC500722B6E?OpenDocument
The other way is to create a global channel for each input and group them all together on the block diagram using the DAQmx CHAN constant with I/O filtering set to �allow multiple channels�.
Program Architecture:
F
or the architecture I suggest some form of producer/consumer loop. There are templates for this setup that come with LabVIEW. This setup will allow for your acquisition and processing to run in parallel loops, which should reduce the chances of one interfering with the other.(note that there is always a limit to what you can do based on your hardware)
I think this should get you started in the right direction. Hope it helps.
Brett -
How can I quickly sample data from 200 channels using DAQmx?
Hello,
I am trying to sample thermocouple data using a SCXI 1000 chassis with two SCXI 1100 modules and one SCXI 1102B, all of which have a 1300 isothermal terminal block. The computer I am using has a PCI-6052E DAQ card and 1 GB of RAM. I will eventually need to upgrade to a SCXI 1001 chassis with enough modules to collect about 175-200 different signals. The problem is I am testing with just the 96 channels I have available and the program runs super slow, with the maximum sample rate only .026 Hz. Currently I have all the channels being read by one DAQmx VI. I've looked through the example programs and tutorials, but nothing there deals with large numbers of channels. Is there a way to improve the sample rate to around 1 Hz with so many channels?
Thanks in advanceCheck the filter configuration for your SCXI-1100. The product page says that if you set the filter for 4Hz, you'll only get 3 Samples/second. The slowest module in the chassis determines the sample rate. If one of your modules is configured that way, you'll get a maximum rate of approximately 3 hz / 96 channels = 0.031 hz/channel, which is pretty close to what you've reported. The filter is set by a jumper on the module, see the manual under "filter selection."
You might want to look at "Determining Maximum Scan Rate for Multiple SCXI Modules" as well. -
I have recently had to replace the hard drive in my macbook pro. All the data has been recovered from my old one onto an external HD and I have copied over everything from this onto the new HD on my macbook. Everything is fine except for Microsoft Office (2011).
Although I can see all the Microsoft Office programs in the Applications folder, I can't open any of them. It sort of tries, but then doesn't open. All my word, excel, etc documents have the little 'W' or 'X' in the icon and I can preview them, but it won't open.
So far I have copied Office and Messenger into Applications, 'Microsoft' into Application Support, 'Microsoft' into Preferences, and the 'Microsoft-Userdata' into Documents.
Have I missed something? I don't have the original CD or product key anymore so don't think I can completely reinstall.
Thanks.Thanks for your help - I have now found the original product key (although still no disc!) so is there any way now? After this, I'm giving up and just biting the bullet and buying it again, annoying!
-
How to get the date starting from 1 to the current date from the system dat
Dear all,
Please tell me how to get the date starting from 1 based on the system date
and it should come with respect of time also.
example.
suppose today is 6 Dec, 2006
so ABAP report should find the 1 dec. 2006.
Please help me as soon as possible.
Regards,concatenate sy-datum0(2) '01' sy-datum4(4) into v_firstdate.
or yo ucan use the fm:
HR_JP_MONTH_BEGIN_END_DATE
usage:
call function 'HR_JP_MONTH_BEGIN_END_DATE'
exporting
iv_date = sy-datum
importing
ev_month_begin_date = gv_begda
ev_month_end_date = gv_endda.
Regards,
Ravi
Message was edited by:
Ravi Kanth Talagana -
New printer prints fine from web, gets stuck sending data from all Adobe CS2 programs
I'm trying to print envelopes on a Lexmark x5650 I just bought. Things can print just fine from all sources but as soon as I try to print from InDesign CS2 the print manager just shows "sending data" and doesn't do anything else. In fact, the same thing happens from all Adobe programs. If I pause the job and start it again then it gets stuck "opening printer connection". I deleted all my other printers so there weren't any other print jobs anywhere else. Help me please!
Side note, when I reinstall the printer the help assistant it tells me at one point that there are print jobs running and I have to cancel them to fnish the install. For the life of me I cannot find this print job, it's no where to be seen in the system preferences printer section.If you did not, then that's the reason it isn't working. Do it. Make sure that the specific printer is selected in Page Setup and then check the Printer Features under the Printer button.
Ignore the dire warnings that pop-up when you click those buttons.
It should not be necessary to go to PDF first.
Dave -
Getting data from LC PDF vs. getting data from LC HTML
I've been rendering PDFs from LiveCycle and having the saved form data returned to my web server (not the LC server) as XML data. This has been working fine for a while. Recently I've started converting my PDFs to XDPs and rendering the XDPs as HTML. Now when the user clicks the "Save" button, instead of xml data I get a bunch of POST data. One of the fields is called "FSAPPLICATIONDATA_". Once I base 64 decode and gunzip this field, I get the XML data. Unlike the XML data that I get from a LC PDF, this XML doesn't have the field data that the user entered in it. The POST data contains the user-entered data in separate fields. What I really need, however, is what I was getting from the LC PDFs: the complete XML with the newly-entered form data in it.
Any idea how I can get this? Do I need to submit the HTML form to LC and have it give me the complete XML or something?
- Nathan DawsonHi all,
I made it work having in the wd context the same number of elements as the table rows in the form. That way the rows are read correctly. -
I backed up my phone on iCloud when my games were installed.. then I deleted them.. but after some days when i opened manage storage in icloud.. my app data wasn't there..?? How do i fix it..??
did your iCloud back up your iPhone automatically? if this you should stop it first or back up your games with iTunes.
-
Setting button property after selecting data from list
I am not able to set the button property after selecting data from list.
I would like to say that
* If a user select an item from list, then user is only allowed to update or delete the data. The update and delete button should be enabled and save button should be disabled.
* If the users types data manually, then user is allowed only to save this as new entry. The update or delete button at this time should be disabled and only save button should be enabled.
I want to say that
In both case, value will be there
In one case, value will be from list and that is available for update or delete
in another case, value will be typed from keyboard that is available for save(new entry).
I do not want to use separate form for update/delete/save new record. I want to use single form for all these operations.
I am using Form 6i and oracle 8
Please guide me, I am trying to find this answer for last four days, but could not find the answer. Please help me. Waiting for you reply...Thanks Mr. fdellipriscoli,
But where should this code be written and
Where the parameter be set to 'YES'
I think this code should be written somewhere when calling list.
But bydefault list is called by pressing F9 key. Then where the parameter be set to 'YES' .
Please help Mr. fdellipriscoli. Waiting for your reply...
Maybe you are looking for
-
How much to fix a dead screen on macbook pro
So, my friend's family all have macs, and love them, But thursday thier macbook pro screen died, they can still hear the computer running, but the screen is just black, as if it is turned off. So they went out and just bought a new one. It is at leas
-
Home Hub 3 and iPhone 4 - Problems
Hi all, Firstly appologies for a double post, I posted in the infinity section in error when here's probably better, so if mods see it they can remove that one, unless someone answers! Anyways, Just upgraded to infinity and have the home hub 3 after
-
Enqueue replication service in Netweaver 7.1 (HA setup)
Hi, I've setup a ERS instance along with an ASCS on my new Netweaver 7.1 installation for HA. I have a remote app server running on host B with the ASCS, Database and ERS on host A. When I shutdown the ASCS, the ERS no longer works (ensmon crashes),
-
GL_INTERFACE table accidentally dropped
Hi all, Please this is urgent, i dropped the gl_interface table accidentally, oracle 10g, flashback wasnt enabled, so recyclebin doesnt hold it. so what can i do now? can i still possible recover the table or can the gl_Interface table be generated a
-
How can I disable 'Faces' in i-Photo?
How can I disable 'Faces' in i-Photo? This feature kicks in automatically after downloading new photos. I want to stop that. I don't want the feature. Thanks.