Need help on calculation of complex math in labview
I need help in being pointed in the right direction. I have an old piece of lab equipment that I have linked to the labview. In order to send commands to the hardware, I have to calculate a checksum. The checksum algorithm requires me to take alphanumeric, convert them to binary, perform a binary addition, perform an Xor, hide some numbers and convert the resulting binary string to an ascii character. LabVIEW has the capabilities to do it on its own, or should I look for to connect to something like an external dll?
I have Visual Studio 2008 and some previous experience in VB, so I think I could write a program that would make the calculation, but don't really know exactly what kind of project (dll, etc.) is preferable. Are there specific for the dll parameters so that labview can use it. I see an example for C++ to Visual Studio 2005, but that's as close as I can get. I only know VB, c#, or C++
Can someone tell me please in the right direction?
Tron
You essentially have some quarters of logical work and ANDS.
Check version 2.
/Y
Tags: NI Software
Similar Questions
-
Need help with the lettering complex
Well, I try not to ask questions on this forum without trying things myself. I understand the time of other people very important. In any case, I took a class at a technical college and have a home classroom course that I'm doing right now. Unfortunately, at this time I need assistance. This logo needs to be recreated for vector art because it will be printed on a very large substrate. The customer has no access to vector art.
I need help... I'm very proficient with the basic tools, the pen tool including. However, create complex lettering like that, I don't have a lot of experience with.
The lettering is so my * right now. Also, I can imitate the gradient for bars decently, but get with the little rounded in angle gradient effect.
I do not beg for help, but I might help! ?? I'm not looking for someone to do the work, rather to provide advice, so I can go my way through this. The customer contacted my boss today and he needs Monday for a meeting, so I'll have a project to do over the weekend.
To print the black spot. Any advice/suggestions will be greatly appreciated. After work tonight, I'll go in my classroom in a book to pick up useful tips.
Thank you all,
Andrew
There are many stylistic variations of this sort of thing. Your screenshot is too low to discern the exact treatment used for sure. Who says:
This takes about 5 minutes and translates into a clean and economic construction with a minimum of access roads.
That color is black spot.
Two shades: Spot black and 20% tint of black spot.
All paths shift (the inner paths of all the characters) are a single compound path and receive a fill of three-stop linear grad at 0 degrees.
All original paths (paths outside of all the characters) remain separated and a three-stop linear grad to 120 degrees fill is applied (so each external character has its own grad which can be set individually).
Small individual adjustment of the grads on each external character can match very closely the layout of tones of bevel of the original that you are trying to imitate. Keep things simple. Consider shading Emboss edges carefully and try to see them as linear graduates extending on the entire character and not as a pile small tedious individual details of packaging around the character. Then do shading with grad stops as little as possible. Understand how to "shake" or "refine" travel between the grad stops moving the gamma pointers that lie between each pair of grad adjacent stop biased towards a stop or another. More transitions - particularly on bevel veneers - the most 'sparkle '.
JET
-
need help for calculation date
I need help with this:
I added successfully a document level script to add the date printed in my document
this.getField("DatePrinted").value = util.printd ("mm/dd/yy", new Date());
I now need to fill in a field named "Date" with a date that is 14 days after the date of DatePrinted.
and I'm lost.
Can anyone help?
Get the current date/time
var d = new Date();
Add 14 days
d.setDate (d.getDate () + 14);
Set a field value
getField("Deadline").value = util.printd ("mm/dd/yy", d);
That last part may need to be changed depending on where you place the script. If it's the same script at the document level, the whole thing can be:
Get the current date/time
var d = new Date();
Set a field value
getField("DatePrinted").value = util.printd ("mm/dd/yy", d);
Add 14 days
d.setDate (d.getDate () + 14);
Set another value of field
getField("Deadline").value = util.printd ("mm/dd/yy", d);
-
Need help to make the complex calculation "period of coverage"...
Published by: W Nicloei on June 10, 2011 12:54 AMdear team, I am stuck up at one point where i cant seem to be finding any logic to implement the following piece of request... I hope i can come assistance from the forum members,here... any idea would be helpful :-) The situation is explained below... 1..The data set... Select * From (SELECT 25048189 ITEM_NO, '2011_35' DEL_WEEK, 352811.406 FINISH_ON_HAND, 7188.621 DEMAND, 5.654 POC from dual union all SELECT 25048189, '2011_36', -83977.656, 436789 , 0 from dual union all SELECT 25048189, '2011_37', -448155, 64177.406 , 0 from dual union all SELECT 25048189, '2011_38', 2012206, 430095.406, 0 from dual union all SELECT 25048189, '2011_39', 1612299, 399907.094, 0 from dual union all SELECT 25048189, '2011_40', 1612516, 402966.406, 0 from dual union all SELECT 25048189, '2011_41', 1612732, 402966.406, 0 from dual union all SELECT 25048189, '2011_42', 1615767, 403183 , 0 from dual union all SELECT 25048189, '2011_43', 2837452, 403183 , 0 from dual union all SELECT 25048189, '2011_44', 2434269, 403183 , 0 from dual union all SELECT 25048189, '2011_45', 2031086, 403183 , 0 from dual union all SELECT 25048189, '2011_46', 1624869, 406217.594, 0 from dual union all SELECT 25048189, '2011_47', 1563112, 1624868 , 0 from dual union all SELECT 25048189, '2011_51', 1605986, 1563112 , 0 from dual union all SELECT 25048189, '2012_03', 1976204, 1605986 , 0 from dual union all SELECT 25048189, '2012_07', 0.25 , 1976204 , 0 from dual union all SELECT 25048189, '2012_08', 1568796, 0 , 0 from dual union all SELECT 25048189, '2012_12', 1647070, 1568796 , 0 from dual union all SELECT 25048189, '2012_16', 1971510, 1647070 , 0 from dual union all SELECT 25048189, '2012_20', 0.25 , 1971510 , 0 from dual union all SELECT 25048189, '2012_21', 1613356, 0 , 0 from dual union all SELECT 25048189, '2012_25', 1564118, 1613356 , 0 from dual union all SELECT 25048189, '2012_29', 1983125, 1564118 , 0 from dual union all SELECT 25048189, '2012_33', -0.125, 1983125 , 0 from dual ); Now if you notice carefull the POC (Period of cover) = 0 which i need to calculate... 2..Logic for POC... (tried hard to format :-( ) Now forumula for calculaing POC = FOH (FINISH ON HAND) of current week - DEMAND (next week) IF THIS IS -ve then POC = FOH / NEXT WEEK DMD * 7.... IF FOH -VE then POC = 0 IF FOH (FINISH ON HAND) of current week - DEMAND (next week) > 0 then use this balance to satisfy the next week demand...and so on... Once balance qty - next week demand = 1 or 0 then stop there....count the no of weeks in between...the current week is always 0, next week 1, the week after next week, 1 and so on... if balance qty - next week demand = 1 -->> take current FOH / NEXT week demand + count the no of weeks in between... I have given one example which shows this situation...for weeks 2011_35 and 2011_38 ITEM_NO DEL_WEEK FINISH_ON_HAND DEMAND POC = FOH (curr wee ) - Demand (next week) formula value 25048189 2011_35 352811.406 7188.621 5.654 -83977.594 = FOH / NEXT WEEK DMD * 7 5.654171332 25048189 2011_36 -83977.656 436789 0 0 """'---" """'---" 25048189 2011_37 -448155 364177.406 0 0 """'---" week counter 25048189 2011_38 2012206 430095.406 7 1612298.906 current week 38 0 25048189 2011_39 1612299 399907.094 6 1209332.594 current week + 1 = 39 1 25048189 2011_40 1612516 402966.406 0 1209549.594 current week + 2 = 40 1 25048189 2011_41 1612732 402966.406 0 1209549 week 41 1 25048189 2011_42 1615767 403183 0 1212584 week 42 1 25048189 2011_43 2837452 403183 0 2434269 week 43 1 25048189 2011_44 2434269 403183 0 2031086 week 44 1 25048189 2011_45 2031086 403183 0 1624868.406 week 45 1 25048189 2011_46 1624869 406217.594 0 1 week 46 6.15435E-07 25048189 2011_47 1563112 1624868 0 0 week 47 7.000000615 -->total 25048189 2011_51 1605986 1563112 0 n/a n/a n/a 25048189 2012_03 1976204 1605986 0 n/a n/a n/a 25048189 2012_07 0.25 1976204 0 n/a n/a n/a 25048189 2012_08 1568796 0 0 n/a n/a n/a 25048189 2012_12 1647070 1568796 0 n/a n/a n/a 25048189 2012_16 1971510 1647070 0 n/a n/a n/a 25048189 2012_20 0.25 1971510 0 n/a n/a n/a 25048189 2012_21 1613356 0 0 n/a n/a n/a 25048189 2012_25 1564118 1613356 0 n/a n/a n/a 25048189 2012_29 1983125 1564118 0 n/a n/a n/a 25048189 2012_33 -0.125 1983125 0 n/a n/a n/a TOTAL POC OF WEEK 2011_35 = 5.65 TOTAL POC OF WEEK 2011_38 = 7.000000615 I know this is complex issue and may not be correct to post here also...but any kind of inputs as how to achieve this..would be help full... let me know i am clear in my question...i tried to format. but no use :-(
Published by: W Nicloei on June 10, 2011 01:11Hello
There is something you can do with analytic functions, but it's a little complicated.
Howevere, I have always not understant why POC is 0 2011_40 of the week?
Kind regards
Sylvie -
Need help with a query complex for the production database
Hello again,
I need your help once again, for a query how to show me how long each stage of production is by order.
See examples of data and what I expect.
Thank you all for your help.
We use Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Here the example data tables:
And here's what I expect of my request:CREATE TABLE TABLE_2 ( "ORDER_NR" VARCHAR2 (12) , "PRIORITY" VARCHAR2 (2) , "WO_STEP" VARCHAR2 (1) , "STEP_DATE" DATE ); CREATE TABLE TABLE_1 ( "ORDER_NR" VARCHAR2 (12) PRIMARY KEY , "PRIORITY" VARCHAR2 (2) , "CREATE_DATE" DATE , "ACT_STEP" VARCHAR2 (2) , "STEP_DATE" DATE , "EMPLOYEE" VARCHAR2 (5) , "DESCRIPTION" VARCHAR2 (20) ); INSERT INTO TABLE_1 (ORDER_NR, PRIORITY, CREATE_DATE, ACT_STEP, STEP_DATE, EMPLOYEE, DESCRIPTION) VALUES ('1KKA1T205634', '12', TO_DATE('10-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'), 'U', TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'), 'W0010', 'CLEAN HOUSE'); INSERT INTO TABLE_1 (ORDER_NR, PRIORITY, CREATE_DATE, ACT_STEP, STEP_DATE, EMPLOYEE, DESCRIPTION) VALUES ('1KKA1Z300612', '12', TO_DATE('08-FEB-13 14:00:00','DD-MON-RR HH24:MI:SS'), 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'), 'K0052', 'REPAIR CAR'); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'A', TO_DATE('12-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'K', TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'K', TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'C', TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'B', TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'E', TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'S', TO_DATE('21-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'R', TO_DATE('21-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'U', TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'A', TO_DATE('12-FEB-13 13:52:42','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'K', TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'K', TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'C', TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'B', TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'E', TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); COMMIT;
And now the explanation for the result of the query:SYSDATE 28.Feb.13 14:00 ORDER_NR PRIORITYCREATE_DATE STATUS STATUS_DATE DESCRIPTION AGE_1 AGE_2 WAITNG STEP_A STEP_B STEP_C STEP_5 STEP_K STEP_E STEP_F STEP_S STEP_R 1KKA1T205634 12 10.Feb.13 10:00 U 28.Feb.13 12:00 CLEAN HOUSE 18,083 8,833 2,125 0,833 4,125 0,083 0,750 0,208 2,125 0,666 0,042 7,125 1KKA1Z300612 12 08.Feb.13 14:00 F 20.Feb.13 16:00 REPAIR CAR 20,000 16,042 2,125 0,833 4,125 0,083 0,750 0,208 2,125 0,666
The AGE_1 is the difference in days between the "CREATE_DATE" and if EXSIST L'ETAPE 'U' then STEP_DATE or if the STEP 'U' is not found in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
The AGE_2 is the difference in days between the STEP "A" STEP_DATE and IF EXSIST L'ETAPE 'R' then STEP_DATE or if the STEP 'R' is not in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
The EXPECTATION is the difference in days between CREATE_DATE and STEP 'A' STEP_DATE
The following columns indicate the days, how long the ORDER_NR remains in these TIMES, if an ORDER_NR comes in the same STEP should be calculated together more than once.
If the ORDER_NR jump a step, it should show a zero in the specific field.
I hope that my explanation is good enough, my English skills are far from good.
Thank you for all your help.
Hosts Reinhard W.Solomon Yakobson says:
Just add the amounts:In fact, you could edit all CASES:
with t2 as ( select t.*, lead(step_date) over(partition by order_nr order by step_date) next_step_date from table_2 t ) select t1.*, nvl( max( case t2.wo_step when 'U' then t2.step_date end ), sysdate ) - t1.create_date age_1, nvl( max( case t2.wo_step when 'R' then t2.step_date end ), sysdate ) - t1.create_date age_2, sum( case when t2.wo_step in ('B','5') then t2.next_step_date - t2.step_date end ) step_b_5, sum( case t2.wo_step when 'C' then t2.next_step_date - t2.step_date end ) step_c, sum( case t2.wo_step when 'K' then t2.next_step_date - t2.step_date end ) step_k, sum( case t2.wo_step when 'E' then t2.next_step_date - t2.step_date end ) step_e, sum( case t2.wo_step when 'F' then t2.next_step_date - t2.step_date end ) step_f, sum( case t2.wo_step when 'S' then t2.next_step_date - t2.step_date end ) step_s, sum( case t2.wo_step when 'R' then t2.next_step_date - t2.step_date end ) step_r from table_1 t1, t2 where t2.order_nr = t1.order_nr group by t1.order_nr, t1.priority, t1.create_date, t1.act_step, t1.step_date, t1.employee, t1.description / ORDER_NR PR CREATE_DA AC STEP_DATE EMPLO DESCRIPTION AGE_1 AGE_2 STEP_B_5 STEP_C STEP_K STEP_E STEP_F STEP_S STEP_R ------------ -- --------- -- --------- ----- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1KKA1T205634 12 10-FEB-13 U 28-FEB-13 W0010 CLEAN HOUSE 18.0833333 10.9583333 4.875 .083333333 .208333333 2.125 .666666667 .041666667 7.125 1KKA1Z300612 12 08-FEB-13 F 20-FEB-13 K0052 REPAIR CAR 44.252338 44.252338 4.875 .083333333 .208333333 2.125 SQL>
SY.
-
Need help with a query complex
ID Col1 Col2 COL3 COL4 VAL 1 col1_1 col2_1 col3_1 col4_1 val1 1 col1_1 col2_1 col3_1 * val2 1 col1_1 col2_1 * * val3 1 col1_1 * * * Val4 1 * * * * Val5 I want to get the result.
Col1, col2, col3, col4 will be entered and I need to find the Val by matching the Col1, col2, col3 col4.
IF there is no match for any column, then it should consider it as *.
So basically for any value of Col1, col2, col3, col4, it should return Val.
Example - he must return val1 for col1_1, col2_1, col3_1, col4_1
and val5 for col1_11, col2_11, col3_11 and col4_11 have no match for all 4 columns here.
How to write a simplified in this case request? any help is really appreciated.
SQL > with t as)
2. Select val,
3 dense_rank() on)
4 order of col1 case when ' *' then 0 end of another 1 +.
5 case col2 where ' *' then 0 end of another 1 +.
6 case col3 where ' *' then 0 end of another 1 +.
7 case col4 when ' *' 0 then 1 other side desc
8 ) rnk
9 of tbl
10 where col1 in ('col1_1','* ')
11 and col2 in ('col2_1','* ')
12 and col3 in ('col3_1','* ')
13 and col4 in ('col4_1','* ')
14 )
15 select val
16 t
where the 17 rnk = 1
18.VAL
----
val1SQL > with t as)
2. Select val,
3 dense_rank() on)
4 order of col1 case when ' *' then 0 end of another 1 +.
5 case col2 where ' *' then 0 end of another 1 +.
6 case col3 where ' *' then 0 end of another 1 +.
7 case col4 when ' *' 0 then 1 other side desc
8 ) rnk
9 of tbl
10 where col1 in ('col1_11','* ')
11 and col2 in ('col2_11','* ')
12 and col3 in ('col3_11','* ')
13 and col4 in ('col4_11','* ')
14 )
15 select val
16 t
where the 17 rnk = 1
18.VAL
----
Val5SQL >
SY.
-
Need help custom calculation Script
I need to make a script are a column of fields based on or no information found in another column of fields is the same or specific text. Please find below the screenshot of what I would like that to be done.
I would like a sum of all the amounts that had Code A...
You can use this script as of 'SumOfA ': custom calculation script
var total = 0; for (var i=0; i<=2; i++) { if (this.getField("p1TC."+i).value=="Code A") total+=Number(this.getField("p1RecIn."+i).value); } event.value = total;
You can adjust easily to the other field as well.
-
Need help for calculation script
I was instructed to convert an Excel file into a fillable PDF, with formulas and calculations. Unfortunately, I'm a complete newbie to creating forms using calculations and javascript, but so far, I was able to use the built-in functions or to find examples of javascript for the formulas that I am duplicating. However, my final calculation stuck me.
Basically, I do an if / then calculation based on a field being greater or less than another. If the result is greater, the script should return a 'YES', if it is lower, it should return a 'no' the excel function is as follows:
= IF(C45>C32,"YES","NO")
Could someone help me with this script?
Here is the code for calculating customized to do this, assuming that the names of the other fields are C45 C32 and that their format is set to number:
c45 var = getField("C45").value;
c32 var = getField("C32").value;
If (c45! = "" & c32! = "") {}
If the two fields are not empty, compare them...
Event.Value = c45 > c32? "YES": "NO";
} else {}
If the fields are empty, reset this field
Event.Value = "";
}
-
I need help to create a complex gradient
There are two things I'm looking in practice. I want to create a color wheel that you would see in a photo editing application. I want to have a ring around a triangular shape gradient in the gradient.
1. I managed to make the ring, but as shown in the screenshot, the colors of repeat. I want every color to appear only once.
2. This is the part that I am really confused. I need a gradient of three tracks for saturation, darkness and lightness. How can I do this?
For the ring, all you need to do is change the gradient to linear. You already 'Apply gradient along the race' selected. You should also end the gradient of the same color (red) that you started with, so it changes abruptly to red magenta.
For the triangle, just make a [color] degraded white going a direction and an opaque black to transparent black gradient going in another direction.
-
Need help on calculating 2 different date
How to check the date 2 different (for example: 18/09/2015 10:28:30), excluding Saturday and Sunday.
And example of the out come in different 4days9hours30min in total
Here you go:
select (select count(*) from ( select to_char(to_date('09/23/2015 07:13:47 PM', 'MM/DD/YYYY HH12:MI:SS AM')+level, 'DY') as dy from dual connect by level <= (to_date('09/23/2015 07:13:47 PM', 'MM/DD/YYYY HH12:MI:SS AM') - to_date('09/18/2015 10:28:30 AM', 'MM/DD/YYYY HH12:MI:SS AM')) ) where dy not in ('SAT', 'SUN') ) "Day", trunc(mod ( (to_date('09/23/2015 07:13:47 PM', 'MM/DD/YYYY HH12:MI:SS AM') - to_date('09/18/2015 10:28:30 AM', 'MM/DD/YYYY HH12:MI:SS AM'))*24, 24)) "Hr", trunc(mod ( (to_date('09/23/2015 07:13:47 PM', 'MM/DD/YYYY HH12:MI:SS AM') - to_date('09/18/2015 10:28:30 AM', 'MM/DD/YYYY HH12:MI:SS AM'))*24*60, 60)) "Min", trunc(mod ( (to_date('09/23/2015 07:13:47 PM', 'MM/DD/YYYY HH12:MI:SS AM') - to_date('09/18/2015 10:28:30 AM', 'MM/DD/YYYY HH12:MI:SS AM'))*24*60*60, 60)) "Sec" from dual
In addition, check below threads.
The same question is asked and answered repeatedly on the same forum.
-
Need help with the control of time in labview
Hello eveybody.
In the image as an attachment, there is a vi that I did to control the amp.
I give the amplitude value DBL to the amplifier as 50V or 60V and it's there on the amplifier.
They problem is that I need to control the amplitude with the calendar. I like continious 50V for 5 sec, then peaking suddenly 100V for 1 second or 1msec and so on.
What should I do?
Any help...!
Thank you adigator
I find the solution and now I got what I thought...
-
need help with an order first level using LABVIEW PID control process.
As the program begins to run the PV value also increase when it reaches the SP is not settledown instead it stops.
Have you tried on the NEST? There are a bunch of examples here on the forum
-
PDF form field calculation need help
I need to do some simple calculations on a form pdf and need help.
I have a form field for number of guests.
Fixed a field for a cost for several tickets (there are 3 levels of ticket prices) (I might not need this field).
A subtotal of the guests in attendance and ticket prices.
Total subtotals.
I can't understand how to place a fixed cost in a form field or calculation of entry so that the number of tickets is multiplied by a fixed number and gives me a subtotal.
Thank you.
Use the Notation Simple option. Just enter the number for packages
himself. For domain names, you can enter the actual names, as long as they
do not contain no spaces or other special characters.
-
Need help with Java Script to perform a calculation in the form of Adobe Acrobat Pro 9
I have a form (test) I created in Adobe Acrobat 9 Pro.
I need help to create a custom JavaScript, so I can get the desired response.
1) there are several questions in each group requiring a numeric response between 0-4
2) there is a total set up field to calculate the sum of the responses of all of the above questions
(3) the final "score" takes the answer in step 2 above and divide by the total possible response
Any help to what Java Script I need to fill it would be greatly appreciated!
I have attached a spreadsheet "" which shows more in detail as are the result of what I used in Excel to get the desired end formulas.
Thanks in advance.
Have you tried the "field is the average of:"?
-
Need help with PL/SQL query complex
I need help with a query that need access to data from 3 tables. That's what I did
I created 3 tables
CREATE TABLE post_table
(
post_id varchar (20),
datepost DATE,
KEY (post_id) elementary SCHOOL
) ;
CREATE TABLE topic
(
TOPIC_ID varchar (20),
name varchar (20),
PRIMARY KEY (topic_id)
);
CREATE TABLE blogpost_table
(
TOPIC_ID varchar (20),
post_id varchar (20),
PRIMARY KEY (topic_id, post_id);
FOREIGN KEY (topic_id) REFERENCES topic (topic_id) ON DELETE CASCADE,
FOREIGN KEY (post_id) REFERENCES post_table (post_id) ON DELETE CASCADE
);
Now, I inserted a few values in these tables as
INSERT INTO post_table VALUES ('p1', to_date ('2009-09-14 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p2', to_date ('2009-07-18 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p3', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p4', to_date ('2009-03-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p5', to_date ('2009-07-13 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p6', to_date ('2009-06-12 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO post_table VALUES ('p7', to_date ('2009-07-11 18:00 "," MM/DD/YYYY mi:ss'));))
INSERT INTO VALUES subject ("t1", "baseball");
INSERT INTO category VALUES ('t2', 'football');
INSERT INTO blogpost_table VALUES ("t1", "p1");
INSERT INTO blogpost_table VALUES ('t1', 'p3');
INSERT INTO blogpost_table VALUES ("t1", "p4");
INSERT INTO blogpost_table VALUES ('t1', 'p5');
INSERT INTO blogpost_table VALUES ('t2', 'p2');
INSERT INTO blogpost_table VALUES ('t2', 'p6');
INSERT INTO blogpost_table VALUES ("t2", "p7");
I'm launching SQL queries on the table in this topic.
I want to write a SQL query that returns me the name of a topic (s) and the number of blog_post (s) associated with the topic in descending order of the number of blog posts created in July.
Can someone please help me to write this query?
Thank you
Published by: user11994430 on October 9, 2009 07:24Thanks for the test of the configuration!
SQL>SELECT t.NAME, COUNT(*) 2 FROM topic t, blogpost_table b, post_table p 3 WHERE b.topic_id = t.topic_id 4 AND p.post_id = b.post_id 5 AND p.datepost >= DATE '2009-07-01' 6 AND p.datepost < DATE '2009-08-01' 7 GROUP BY t.NAME 8 ORDER BY COUNT(*) desc; NAME COUNT(*) -------------------- ---------- baseball 2 soccer 2
HTH, Urs
Maybe you are looking for
-
Web sites that contain video clips do not load properly,
Web sites that contain video clips load not properly, the space where the video should be empty. Also on facebook if you click on a thumbnail of a video which has been posted it disappears just and does not play.
-
2560p HP: HP 2560p with Intel Core i5 - 3320M processor upgrade
I wanted to update my HP 2560p with an Intel Celeron B840 to a processor Intel Core i5 - 3320M. According to Intel, the socket is the same: FCPGA988. Updated the BIOS to F62, but when I place the new cell processor tries to start and stops immediatel
-
in Farmville you currently have not all messages in the diet of your game.
You currently have not all messages in your game stream, the error message that I get to Farmville URL of affected sites http://
-
Remove the dialogue during the closing of DIAdem
How do I remove or close the dialog box that appears when the tiara was closed if data or page layouts have been changed via SCRIPT? I tried: CmdNoDialogDisp = TRUE CmdNoWarningDisp = TRUE CmdNoMsgDisp = TRUE CmdNoErrorDisp = TRUE CmdNoInfoDisp = TRU
-
HP Laserjet M553: HP Laserjet M553 leaves two-sided printing
I'm running 10 Windows on a desktop HP Envy with a printer HP Laserjet M553. I have this printer for a little more than a month. I was able to print two-sided dox on this printer with only one or two times before this opportunity not to print on one