Help with Graph
Hi All
In a report i have field called "CERTIFY" and it has two values 1 and 2. Based on this i create a calculation:
CASE WHEN DW_MDSS_ROUTE_SO_POST.CERTIFY = '1' THEN COUNT(DW_MDSS_ROUTE_SO_POST.CERTIFY) WHEN DW_MDSS_ROUTE_SO_POST.CERTIFY = '2' THEN COUNT(DW_MDSS_ROUTE_SO_POST.CERTIFY) ELSE NULL END
The above calculation gives me the count of records when "CERTIFY" is 1 and 2 as two different bars.
Now i have a second field called"DEVIATION" and its a text field. It has values only when "CERTIFY=2", what i wanted in the report is in the graph i want two bars "COUNT WHEN 1 AND WHEN COUNT IS 2" and in the COUNT BAR FOR 2 , i want to seperate the COUNT based on the DEVIATION " I want DEVIATION AND COUNT" as a STACKED bar.
Thanks
Sorry, Thinking Eye. This is not an answer. However, it may help to get your question answered if you show how some example data look in tabular or cross-tabular form and then state which columns or rows you wish to graph as bars and how you want them grouped. It would also be helpful if you could do it in SQL*Plus in case anyone wanted to try it out on their system. This would include create table, insert, and select statements to show the result set of data you wish to plot. As in:
SQL>CREATE TABLE t
2 ( certify INT,
3 deviation VARCHAR2(30)
4 );
Table created.
SQL>INSERT INTO t VALUES ( 1, NULL );
1 row created.
SQL>INSERT INTO t VALUES ( 1, NULL );
1 row created.
SQL>INSERT INTO t VALUES ( 2, 'LEMON' );
1 row created.
SQL>INSERT INTO t VALUES ( 2, 'ORANGE' );
1 row created.
SQL>INSERT INTO t VALUES ( 2, 'LIME' );
1 row created.
SQL>SELECT certify
2 , deviation
3 , CASE
4 WHEN certify = 1 THEN COUNT(certify)
5 WHEN certify = 2 THEN COUNT(certify)
6 ELSE NULL
7 END AS cnt
8 FROM t
9 GROUP BY certify, deviation;
CERTIFY DEVIATION CNT
1 2
2 LIME 1
2 LEMON 1
2 ORANGE 1
4 rows selected.Now since the following query gets the same results, you'll need to explain why you are using that CASE statement.
SQL>SELECT certify
2 , deviation
3 , COUNT(*) AS cnt
4 FROM t
5 GROUP BY certify, deviation;
CERTIFY DEVIATION CNT
1 2
2 LIME 1
2 LEMON 1
2 ORANGE 1
Similar Messages
-
Help with GRAPH Marker Design Tutorial
I am trying to create a custom marker design for a line chart (Using Illustrator CS3). I've followed all the steps in the HELP RESOURCE CENTER, but I can not get my marker to size any larger than the initial itty-bitty-square it creates. According to HELP, you can size your artwork larger than the initial marker square you copy and build the art over. That the design is scaled so that the backmost rectangle in the design is the same as the default square marker.
I've built it all in the proper order. But when I go to apply my new custom marker design, it is all sized DOWN to fit in the default square marker space.
Anyone out there with experience in customizing?To add a detail: the marker box will always 6 pt square, no matter how big or small your designed marker is. So, to create a new marker design, simply draw the design as big or small as you want; position it in relation to the orig 6 pt square [which is always backmost].
I found this clarification with step-by-step instructions in this pdf document:
http://www.adobe.com/products/adobemag/archive/pdfs/9611qaai.pdf
When you save your marker design in the graph dialogue box, only the portion of your design that falls WITHIN the 6 pt square is previewed; but your entire design will show up when you apply it.
Hope this saves a bit of frustration! -
Need help with graph/chart
Heey everyone,
I am currently using a Spider8 and Labview to gain data from sensors, after that i use Labview to process the data to charts or graphs. Alltough I have 2 small problems using a chart/graph:
1: For some charts/graphs i want to use 1 Y-axis (example: volts or current) and 1 X-axis, time. I want this time to be like a clock which only counts seconds (example: 0-100sec), using absolute or relative time for formatting is not an option because they count way too much/fast. There is an example of these kind of charts/graphs in the appendix: currents vs time measurement.
2: For most of the other charts/graphs i want to use several Y-axis (example for a motor: current, RPM and torque) and i want to use a X-axis which can go "back" (example for a motor: rotations). There is an example of these kind of charts/graphs in the appendix: Torque measurement.
I dont have any idea of how to do this the right way, so your help is very welcome
Thanks!
Currently using labview 8.2.1
Solved!
Go to Solution.
Attachments:
Current-vs-time measurement.JPG 63 KB
Torque measurement.JPG 136 KBCould anyone help me please? I have used the XY-graph for both graphs i wanted to make and they work. The point is I want to use an XY-graph (with several Y-axis) so i can plot in several different signals. For example we have 2 signals for the XY-graph: one is going from -10 to +10 and the other from -150 to +150 but i`ve created a graph which has 2 Y-axis (one from -20 to +20 for signal 1, one from -200 to +200 for signal 2). Well how am I able to say that signal 1 is for y-axis 1 and signal 2 is for Y-axis 2. I have tried to use a "merge signals" to merge signal 1 and 2 for the Y-axis but this doesn`t really work, it only shows me 1 of the 2 signals for Y-axis 1 depending which one is on top in the merge signals block. PS: I have posted the vi which im testing this problem with in the appendix.
If anyone knows how to solve this problem, please help me !
Currently using labview 8.2.1
Attachments:
XYgraph-test.vi 197 KB -
hello
i have a BAR_HORIZ_STACK_2Y graph and i would like both y1 and y2 to have the same scale. how can i do it?If they need to be the same scale why not just use a single Y graph?
To customize the second Y axis add a <dvt:y2Axis> tag in your graph and play with the attributes.
There are more y2 tags that help you customize the behavior here:
http://www.oracle.com/technology/products/adf/adffaces/11/doc/dvt/toc.htm -
I cant figure out how to finsih this... I am creating an applet that draws a quadratic equation according to the parameters in the html file...
Here is the first class... I think its ok:
import java.awt.*;
import java.applet.*;
public class Graph extends Applet
public void init()
int in1 = Integer.parseInt(getParameter("a"));
int in2 = Integer.parseInt(getParameter("b"));
int in3 = Integer.parseInt(getParameter("c"));
int a=1;
int b=1;
int c=1;
if( in1!=0)
a=in1;
if( in2!=0)
b=in2;
if( in3!=0)
c=in3;
Dimension size = getSize();
int width = size.width;
String msg = "Quadratic Equation: y = ax^2 + bx + c";
Label bottom = new Label(msg);
Label header = new Label("Quadratic Equation");
setLayout(new BorderLayout());
GraphCanvas canvas = new GraphCanvas(width,a,b,c);
add(header,BorderLayout.NORTH);
add(canvas,BorderLayout.CENTER);
add(bottom,BorderLayout.SOUTH);
}and here is the GraphCanvas class... which I can't figure out how to finish. hints and help would be appriciated:
import java.awt.*;
import java.applet.*;
public class GraphCanvas extends Canvas
private double density;
private final int XMAX = 10;
private final int XMIN = -10;
private final int YMAX = 10;
private final int YMIN = -10;
private double x;
private double y;
public GraphCanvas(int dimension, double a, double b, double c)
dimension = 20;
density=dimension/(XMAX-XMIN)
y=a*x^2+b*x+c;
public void paint(Graphics g)
drawGrid(g);
graphQuadratic(g);
public void drawGrid(Graphics g)
public void graphQuadratic(Graphics g)
for (x=-10;x<=10;x+=0.02)
y=x^2+x+1;
moveTo(x,y);
drawTo(g,x,y);
public void moveto(double x, double y)
public void drawto(double x, double y, Graphics g)
}it;s mainly the drawTo and moveTo methods that i am haveing trouble getting my tired mind wrapped around.You may want to test the equation first, then save a "y-offset" value. Otherwise the images you draw may be off the canvas. Do this before drawing the scales (which I presume would appear in your drawGrid method), I'd suggest. Also use the offset when drawing the curve itself.
it;s mainly the drawTo and moveTo methods that i am haveing trouble getting my tired mind
wrapped around.Well, you're the one that wants to use them. What do you expect them to do? -
Please help with Graphs in Reports 9i
I am utilizing Reports 9i ( 9.0.2.0.1) to add simple graphs (i.e. bar graphs) to existing reports being produced in a PDF format. I am having problems resizing graphs and editing them.
I have tried to resize them in the layout model, but the graph gets squished to the left side when I run the Paper Layout. Once in the Live Previewer, I cannot resize the the graph by dragging out the edges. How can I resize it?
Also, how can the legend be edited? It appears the only way to do it is to alias the column names that are referenced by the report. This is not practical at all!hello,
check out our graph FAQ here on OTN. it should give you tips and tricks about the graph and what you can do using the graph XML.
as for the resizing problem ... you did the right thing, resizing the container in the layout editor. it should be rendered correctly. however it will not change the proportions of the graph.
thanks,
ph. -
Tim, please help with graphs or provide documentation
Tim,
Could you please point me to examples of DTD for graphs. I've gone through the Oracle XML Publisher user guide but that just touches on graph and it doesn't cover it extensively.
I'm finding that graphs within a repeating group is not handled properly in BI Publisher.
<GROUP1>
<NODE1> HOUSE </NODE1>
<GROUP 2>
<MONTH>Jan</MONTH>
<PRICE>10</PRICE>
</GROUP 2>
<GROUP 2>
<MONTH>Feb</MONTH>
<PRICE>40</PRICE>
</GROUP 2>
</GROUP1>
<GROUP1>
<NODE1> APARTMENT </NODE1>
<GROUP 2>
<MONTH>Jan</MONTH>
<PRICE>17</PRICE>
</GROUP 2>
<GROUP 2>
<MONTH>Feb</MONTH>
<PRICE>50</PRICE>
</GROUP 2>
</GROUP1>
Instead of one graph appearing for House and one for Apartment, the graph that is coming up is listing Jan,Feb,Jan,Feb on the x axis and 10,40,17,50 on the y axis. I can't get it to just show
Jan,Feb,10,40 (one graph), Jan,Feb,17,50 (another graph).
I've looked all over the internet and this forum but there is little direction in this matter.
ThanksHi Matilda
Could you please correct my DTD.... Its not showing what I want. Thanks heaps
<?for-each:GROUP1?>
............Graph inserted here ............
chart:
<Graph graphType ="BAR_VERT_CLUST">
<Title text="Test Report" visible="true" horizontalAlignment="CENTER" />
<Y1Title text "Amount" visible="true" />
<O1Title text "Period" visible="true" />
<LocalGridData colCount="{count(//GROUP2)}" rowCount="2">
<RowLabels>
<Label>PRICE</Label>
</RowLabels>
<ColLabels>
<xsl:for-each select="//GROUP2">
<Label>
<xsl:value-of select="PERIOD"/>
</Label>
</xsl:for-each>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each select="//GROUP2">
<Cell>
<xsl:value-of select="PRICE"/>
</Cell>
</xsl:for-each>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
<?end for-each?> -
I want to do statistical graphs in pages - how do i get charts to consider the x-axis? I cant seem to be able to add data in coordinate format. the only thing that comes close is the scatter plot but i need it to work for other graphs, such as the bar graph.
I'm not a sooth-sayer. At this time I don't understand what you ask for.
You didn't wrote about "ticks" in your first question.
Describe clearly your problem if you want that someone may solve it !
Give at least a sample of the table which must be charted.
Yvan KOENIG (from FRANCE mercredi 24 septembre 2008 21:28:19) -
Report Engine crashing on Solaris when report with graph is given.
Hi,
We are using following environment:
Solaris 8
Oracle 9i Report Sevices.
When we try to execute reports having graphs then the report engine crashes with the following exception:
REP-0177: Error while running in remote server
REP-56048: Engine rwEng-0 crashed
The complete crash log is also appendend in the end of this mail.
When I remove the graph from the rdf then reports get exectued fine without any crash. The same rdg with graph works fine on windows NT.
If somebody can help on this, it will be great.
Thanks,
Ashish
The complete crash log is as follows:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xf017b350
Function name=_Xm21FreeHashTable
Library=/usr/lib/libXm.so.4
Current Java thread:
at sun.awt.motif.MWindowPeer.create(Native Method)
at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:169)
at sun.awt.motif.MWindowPeer.init(MWindowPeer.java:86)
at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:53)
at sun.awt.motif.MToolkit.createFrame(MToolkit.java:138)
at java.awt.Frame.addNotify(Frame.java:353)
at java.awt.Window.pack(Window.java:369)
at tdg.Perspective.<init>(Perspective.java:478)
at oracle.dss.graph.PFJ.<init>(PFJ.java:47)
at oracle.dss.graph.Graph.createPFJ(Graph.java:1190)
at oracle.dss.graph.Graph._setupGraphView(Graph.java:353)
at oracle.dss.graph.Graph.<init>(Graph.java:164)
at oracle.reports.chart.Chart.<init>(Chart.java:51)
at oracle.reports.chart.ChartRunner.<init>(ChartRunner.java:46)
at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
at oracle.reports.engine.EngineImpl.run(EngineImpl.java:289)
at oracle.reports.engine.EngineClassPOATie.run(EngineClassPOATie.java:84)
at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:117)
at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
Dynamic libraries:
0x10000 /users/orarep9i/OraHome1/jdk/jre/bin/../bin/sparc/native_threads/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
0xfe480000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/client/libjvm.so
0xff2d0000 /usr/lib/libCrun.so.1
0xff1d0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff310000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/native_threads/libhpi.so
0xff040000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libverify.so
0xfe440000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libjava.so
0xfe410000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libzip.so
0xf3be0000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libnet.so
0xf3bc0000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libioser12.so
0xf39e0000 /usr/lib/nss_nis.so.1
0xf2000000 /users/orarep9i/OraHome1/lib/librw90.so
0xf1d00000 /users/orarep9i/OraHome1/lib/libobx90.so.0
0xf36b0000 /users/orarep9i/OraHome1/lib/librws90.so.0
0xf2a80000 /users/orarep9i/OraHome1/lib/libde90.so.0
0xf2fc0000 /users/orarep9i/OraHome1/lib/libucol90.so.0
0xf39b0000 /users/orarep9i/OraHome1/lib/libuicc90.so.0
0xf2ea0000 /users/orarep9i/OraHome1/lib/libca90.so.0
0xf35e0000 /users/orarep9i/OraHome1/lib/libmma90.so.0
0xf2dc0000 /users/orarep9i/OraHome1/lib/libmmiw90.so.0
0xf3860000 /users/orarep9i/OraHome1/lib/libmmov90.so.0
0xf2f90000 /users/orarep9i/OraHome1/lib/libmmos90.so.0
0xf2cc0000 /users/orarep9i/OraHome1/lib/libmmoi90.so.0
0xf32e0000 /users/orarep9i/OraHome1/lib/libmmia90.so.0
0xf2da0000 /users/orarep9i/OraHome1/lib/libmmft90.so.0
0xf1fc0000 /users/orarep9i/OraHome1/lib/libmmcm90.so.0
0xf1c00000 /users/orarep9i/OraHome1/lib/libvgs90.so.0
0xf2ca0000 /users/orarep9i/OraHome1/lib/libuihx90.so.0
0xf1b90000 /users/orarep9i/OraHome1/lib/libuc90.so.0
0xf1b20000 /users/orarep9i/OraHome1/lib/libuipr90.so.0
0xf1900000 /users/orarep9i/OraHome1/lib/libuimotif90.so.0
0xf1ae0000 /users/orarep9i/OraHome1/lib/libot90.so.0
0xf18a0000 /users/orarep9i/OraHome1/lib/librem90.so.0
0xf1820000 /users/orarep9i/OraHome1/lib/libree90.so.0
0xf1fa0000 /users/orarep9i/OraHome1/lib/librec90.so.0
0xf17f0000 /users/orarep9i/OraHome1/lib/libuiimg90.so.0
0xf17b0000 /users/orarep9i/OraHome1/lib/libuia90.so.0
0xf2a60000 /users/orarep9i/OraHome1/lib/libtknqap90.so.0
0xf1780000 /users/orarep9i/OraHome1/lib/libutt90.so.0
0xf1750000 /users/orarep9i/OraHome1/lib/librod90.so.0
0xf1720000 /users/orarep9i/OraHome1/lib/libror90.so.0
0xf16f0000 /users/orarep9i/OraHome1/lib/libros90.so.0
0xf16c0000 /users/orarep9i/OraHome1/lib/libuat90.so.0
0xf16a0000 /users/orarep9i/OraHome1/lib/libdfc90.so.0
0xf1680000 /users/orarep9i/OraHome1/lib/libutc90.so.0
0xf1660000 /users/orarep9i/OraHome1/lib/libutj90.so.0
0xf1630000 /users/orarep9i/OraHome1/lib/libutl90.so.0
0xf1610000 /users/orarep9i/OraHome1/lib/libsl90.so.0
0xf0c00000 /users/orarep9i/OraHome1/lib/libclntsh.so.9.0
0xf15f0000 /users/orarep9i/OraHome1/lib/libwtc9.so
0xf15d0000 /usr/lib/libsched.so.1
0xf15b0000 /usr/lib/libaio.so.1
0xf0a00000 /usr/lib/libXm.so.3
0xf1540000 /usr/lib/libXt.so.4
0xf0900000 /usr/lib/libX11.so.4
0xf1520000 /usr/lib/libgen.so.1
0xf1500000 /usr/lib/librt.so.1
0xf14e0000 /usr/lib/libSM.so.6
0xf14b0000 /usr/lib/libICE.so.6
0xf1480000 /usr/lib/libXext.so.0
0xf0bd0000 /usr/openwin/lib/libdga.so.1
0xf0bb0000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libawt.so
0xf0280000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/motif21/libmawt.so
0xf09b0000 /users/orarep9i/OraHome1/jdk/jre/bin/../lib/sparc/libmlib_image.so
0xf0000000 /usr/lib/libXm.so.4
0xf08e0000 /usr/openwin/lib/libXtst.so.1
0xeff00000 /users/orarep9i/OraHome1/jdk/jre/lib/sparc/libfontmanager.so
0xf07a0000 /usr/openwin/lib/libdps.so.5
Local Time = Fri Apr 18 09:22:09 2003
Elapsed Time = 110
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode)Please try the following
* Modify $ORACLE_HOME/bin/reports.sh, replace "classic"
with "server" in the LD_LIBRARY_PATH for the JVM
* Modify $ORACLE_HOME/bin/rwengine.sh, just before the exec
command, insert the following line:
export LD_PRELOAD=$ORACLE_HOME/jdk/jre/lib/i386/libawt.so
In Linux there was a similar problem and the above workaround worked . You can give this a try .
Thanks
The Oracle Reports Team -
Need urgent help with communicating with the HP 4155B analyser with Labview
i folks,
I'm currently trying to communicate with our HP 4155B semiconductor pamaremter analyser. I do not have experience with GPIB yet. I have installed the NI VISA.
I was wondering if anyone could help with getting me started on how to start communicating with the device using Labview.
I'm not certain where to start.
Kind regards
RobHi,
Thanks for the help. I now have communication with the instrument.
I was wondering if it's possible to to setup a data measurement (I-V Sweep) and be able to read the measurement data in realtime as it is being measured. So I basically see the graph updating itself on the PC during the measurement.
Is this possible? Could anyone give advice on how I can go about this or are there any examples that can help me understand how to do this?
I'm not completely sure how to initialise the instruemnt for communication and handle VISA WRITEs and READs. within LabView
Best regards
Rob -
I am using AlivePDF for a requirement in my AIR project.Here is my scenerio
I am using Tab navigator with one viewstack having Chart and another having Datagrid
I have a number of panels with graphs and charts in the Datagrid. User sees many panels at a time.
1)How can I present these Panels(with Charts) to different pages of PDF?
2)How can I write to pdf both chart and datagrid in a tab navigator, and if the creation policy is such that it is loaded only when user selects?
Do relpy me as soon as possible. Your help will be highly appreciated
Also I have problem in Using addImage();
pdf.addImage(dg1, RESIZE,15,20,100,200,0,1,
true,ImageFormat.PNG,100,BlendMode.NORMAL);
what parameter we have to use for resize here. I am using latest version .1.5 beta. I a getting error for resizeNAVARRO360 wrote: ... there is no simple fix? ...
Eureka! You now understand the situation.
Even the old standard for Mac OS X drivers for non-compatible cams, macam, says that it has no driver for ASUS (20") monitor camera.
The macam status shows:
not working (no documentation)
With no working driver for the 20" ASUS, it is not surprising that there is none for the 27" either. There may be good reason that ASUS won't (or can't) offer either the technical documentation or a Mac driver for their monitor's inbuilt webcam. However, they apparently do not publish that information.
If ASUS Technical Support cannot provide the driver you need for OS X, the ASUS will continue to be a ridonculous (sic) monitor whose webcam will not work with your OS X Mac. The only other simple fix I can think of is to use the ASUS with a different PC that is compatible with this monitor and its inbuilt webcam. What you do is certainly your choice.
Message was edited by: EZ Jim
Mac OSX 10.7.3 -
Help with this vi and top level vi's
Hi, need a bit of help with this vi below. It consists of field point inputs. And also consists of 2 while loops, the first while loop basically displays the raw data, the second loop eventually will display processed data, but this will only take place when told to start by the push button connected to the case loop. the problem is that when i start the second loop and then go to stop it it keeps on running even when the case loop is false, any help greatly appreciated(also had help with a labview engineer, but could not solve it).
The other way about going around this is to separate the 2 loops into separate vis. Is it possible to use the first loop as the top level vi and if i press a button on the toplevel front
panel vi, the front panel of the second loop program pops up. Any info on this greatly appreciated.
Thanks Stuart
Attachments:
basicscat1configxy1.41_changed.vi 207 KB
XY_Chart_Buffer.vi 54 KBI have created another update to your example showing how you can have the xy graph popup in another window. This time it is in a library as there are now 2 VIs. Again i cant test it as i dont have Fieldpoint, but *crosses fingers* it should work. Basically i have moved the inner while loop into it's own VI, linked it to the controls feeding it, and placed it into the main case structure. This subVI has also had it's properties changed so that it opens when called and closes afterwards, so you do not need to open it manually when you start.
As to what i use for my interface, i guess you mean interface with instruments?...Well i use drivers. And if i dont have drivers, i write them. To be honest, i dont really know what Fieldpoint does, so mayb
e you can enlighten me there..
Good luck with the PhD Chemists..working in a university myself i have an idea what it must be like for you!
Kim
Attachments:
Basicscat1configxy1.41.llb 133 KB -
Good day.
I have this vi in which I read two signals from a DAQ device and visualize them on screen and write them to a file. However, I need to modify it a bit and I don't know how. Currently, the signals are stored automatically after the vi starts running. I need to change that so the recording of the data only starts after a button is pressed (I want to first visualize the signal and them store it if I need it.) I tried using the Relay Express vi, but it made the program run slower meaning in a loss of data (high scan backlog). So, any ideas with this?
Second, I need to remove the DC from my signal dynamically. I really don't care much for the scale of the graph charts that visualize the signal, but sometimes the signal moves away from the window of the chart and I can't see it. The autoscale y option is not good for me (I need to keep a constant window amplitude). Any help with this?
Thanks.
Attachments:
RegistroParaVideo2010v2.vi 355 KBHa, I'm certainly no genius either but good coding style is really important. Especially when you want to go back and modify or upgrade your code.
Traditional DAQ is perfectly fine, you code is working so there's no real need to worry about DAQmx.
See the pic for an example of subtracting an offset from your waveform.
Do you understand what Dennis said? You need to put a case structure around the 'Write to File.vi' and then wire your button to it. That way you're collecting data all the time but it only gets written to file while the button is TRUE (assuming you put the Write VI in the True case).
Using LabVIEW: 7.1.1, 8.5.1 & 2013
Attachments:
SubOffset.JPG 34 KB -
Help with if statement in cursor and for loop to get output
I have the following cursor and and want to use if else statement to get the output. The cursor is working fine. What i need help with is how to use and if else statement to only get the folderrsn that have not been updated in the last 30 days. If you look at the talbe below my select statement is showing folderrs 291631 was updated only 4 days ago and folderrsn 322160 was also updated 4 days ago.
I do not want these two to appear in my result set. So i need to use if else so that my result only shows all folderrsn that havenot been updated in the last 30 days.
Here is my cursor:
/*Cursor for Email procedure. It is working Shows userid and the string
You need to update these folders*/
DECLARE
a_user varchar2(200) := null;
v_assigneduser varchar2(20);
v_folderrsn varchar2(200);
v_emailaddress varchar2(60);
v_subject varchar2(200);
Cursor c IS
SELECT assigneduser, vu.emailaddress, f.folderrsn, trunc(f.indate) AS "IN DATE",
MAX (trunc(fpa.attemptdate)) AS "LAST UPDATE",
trunc(sysdate) - MAX (trunc(fpa.attemptdate)) AS "DAYS PAST"
--MAX (TRUNC (fpa.attemptdate)) - TRUNC (f.indate) AS "NUMBER OF DAYS"
FROM folder f, folderprocess fp, validuser vu, folderprocessattempt fpa
WHERE f.foldertype = 'HJ'
AND f.statuscode NOT IN (20, 40)
AND f.folderrsn = fp.folderrsn
AND fp.processrsn = fpa.processrsn
AND vu.userid = fp.assigneduser
AND vu.statuscode = 1
GROUP BY assigneduser, vu.emailaddress, f.folderrsn, f.indate
ORDER BY fp.assigneduser;
BEGIN
FOR c1 IN c LOOP
IF (c1.assigneduser = v_assigneduser) THEN
dbms_output.put_line(' ' || c1.folderrsn);
else
dbms_output.put(c1.assigneduser ||': ' || 'Overdue Folders:You need to update these folders: Folderrsn: '||c1.folderrsn);
END IF;
a_user := c1.assigneduser;
v_assigneduser := c1.assigneduser;
v_folderrsn := c1.folderrsn;
v_emailaddress := c1.emailaddress;
v_subject := 'Subject: Project for';
END LOOP;
END;
The reason I have included the folowing table is that I want you to see the output from the select statement. that way you can help me do the if statement in the above cursor so that the result will look like this:
emailaddress
Subject: 'Project for ' || V_email || 'not updated in the last 30 days'
v_folderrsn
v_folderrsn
etc
[email protected]......
Subject: 'Project for: ' Jim...'not updated in the last 30 days'
284087
292709
[email protected].....
Subject: 'Project for: ' Kim...'not updated in the last 30 days'
185083
190121
190132
190133
190159
190237
284109
286647
294631
322922
[email protected]....
Subject: 'Project for: Joe...'not updated in the last 30 days'
183332
183336
[email protected]......
Subject: 'Project for: Sam...'not updated in the last 30 days'
183876
183877
183879
183880
183881
183882
183883
183884
183886
183887
183888
This table is to shwo you the select statement output. I want to eliminnate the two days that that are less than 30 days since the last update in the last column.
Assigneduser....Email.........Folderrsn...........indate.............maxattemptdate...days past since last update
JIM......... jim@ aol.com.... 284087............. 9/28/2006.......10/5/2006...........690
JIM......... jim@ aol.com.... 292709............. 3/20/2007.......3/28/2007............516
KIM......... kim@ aol.com.... 185083............. 8/31/2004.......2/9/2006............. 928
KIM...........kim@ aol.com.... 190121............. 2/9/2006.........2/9/2006.............928
KIM...........kim@ aol.com.... 190132............. 2/9/2006.........2/9/2006.............928
KIM...........kim@ aol.com.... 190133............. 2/9/2006.........2/9/2006.............928
KIM...........kim@ aol.com.... 190159............. 2/13/2006.......2/14/2006............923
KIM...........kim@ aol.com.... 190237............. 2/23/2006.......2/23/2006............914
KIM...........kim@ aol.com.... 284109............. 9/28/2006.......9/28/2006............697
KIM...........kim@ aol.com.... 286647............. 11/7/2006.......12/5/2006............629
KIM...........kim@ aol.com.... 294631............. 4/2/2007.........3/4/2008.............174
KIM...........kim@ aol.com.... 322922............. 7/29/2008.......7/29/2008............27
JOE...........joe@ aol.com.... 183332............. 1/28/2004.......4/23/2004............1585
JOE...........joe@ aol.com.... 183336............. 1/28/2004.......3/9/2004.............1630
SAM...........sam@ aol.com....183876.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183877.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183879.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183880.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183881.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183882.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183883.............3/5/2004.........3/8/2004.............1631
SAM...........sam@ aol.com....183884.............3/5/2004.........3/8/2004............ 1631
SAM...........sam@ aol.com....183886.............3/5/2004.........3/8/2004............ 1631
SAM...........sam@ aol.com....183887.............3/5/2004.........3/8/2004............ 1631
SAM...........sam@ aol.com....183888.............3/5/2004.........3/8/2004............ 1631
PAT...........pat@ aol.com.....291630.............2/23/2007.......7/8/2008............ 48
PAT...........pat@ aol.com.....313990.............2/27/2008.......7/28/2008............28
NED...........ned@ aol.com.....190681.............4/4/2006........8/10/2006............746
NED...........ned@ aol.com......95467.............6/14/2006.......11/6/2006............658
NED...........ned@ aol.com......286688.............11/8/2006.......10/3/2007............327
NED...........ned@ aol.com.....291631.............2/23/2007.......8/21/2008............4
NED...........ned@ aol.com.....292111.............3/7/2007.........2/26/2008............181
NED...........ned@ aol.com.....292410.............3/15/2007.......7/22/2008............34
NED...........ned@ aol.com.....299410.............6/27/2007.......2/27/2008............180
NED...........ned@ aol.com.....303790.............9/19/2007.......9/19/2007............341
NED...........ned@ aol.com.....304268.............9/24/2007.......3/3/2008............ 175
NED...........ned@ aol.com.....308228.............12/6/2007.......12/6/2007............263
NED...........ned@ aol.com.....316689.............3/19/2008.......3/19/2008............159
NED...........ned@ aol.com.....316789.............3/20/2008.......3/20/2008............158
NED...........ned@ aol.com.....317528.............3/25/2008.......3/25/2008............153
NED...........ned@ aol.com.....321476.............6/4/2008.........6/17/2008............69
NED...........ned@ aol.com.....322160.............7/3/2008.........8/21/2008............4
MOE...........moe@ aol.com.....184169.............4/5/2004.......12/5/2006............629
[email protected]/27/2004.......3/8/2004............1631
How do I incorporate a if else statement in the above cursor so the two days less than 30 days since last update are not returned. I do not want to send email if the project have been updated within the last 30 days.
Edited by: user4653174 on Aug 25, 2008 2:40 PManalytical functions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#81409
CASE
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#36899
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/04_struc.htm#5997
Incorporating either of these into your query should assist you in returning the desired results. -
I installed Sunbird in one computer and my calendar has all my infos, events, and task that i would like to see on another computer that i just downloaded Sunbird into. Also, is it possible I can access Sunbird on my iphone?
Thank you in advance,Try the forum here - http://forums.mozillazine.org/viewforum.php?f=46 - for help with Sunbird, this forum is for Firefox support.
Maybe you are looking for
-
Today, my iPhone calendar entries are changing from green to blue and back to green again. Anyone else having this issue?
-
Problem signing Applets with sound recording
I'm working on a project to have live conversation in one to many clients scenario. i have tested the code as a command line app No problem but hell let loose when i converted the code into an applet here are the error messages i'm getting Exception
-
Oracle Linux 6.4 Bootable disk?
Hello, I am about to download Oracle Linux 6.4 and install it on a 32 bit computer. How can I make a bootable disk so when I reboot this computer it goes straight into the install process? Do I download Oracle Linux Release 6 Update 4 for x86 (32 Bit
-
How to run program in background?
Hi Experts. Please tell me wht is the procedure for scheduling a Job in background? I need all steps thanks in advance
-
Depreciation run: Needs restart but asset shows posted while GL not posted.
Hi, An asset was set up in the wrong asset class. The asset class is not fully configured. Depreciation ran in real mode and error as the accumulated depreication account is wrong and cannot be used. It says it must be RESTARTED. However, the asset v