Creating a graph by subtracting successive array elements in labview
I have an array 'A1' of 'N' elements. I want to create an array 'A2' of 'N-1' size having first element as A1[1] - A1[0], 2nd element as A1[2] - A1[1], and so on .
then I want to plot the A2 array on the graph for analysis.
i.e i want to subtract the successive elements in an array and plot a graph of the subtracted values.
please help me
Thanks in advance.
Hi,
Take a look at the attached example.
Hope it helps.
Paulo
Attachments:
ArraySubtract.vi 11 KB
Similar Messages
-
Using a For Loop Index for Array Element Number?
Hi. Thanks in advance for the help. I can't seem to find what I want to do here using the search function... probably because I don't know how to frame the question appropriately. Ignore the title to this post cause it's probably wrong vocabulary for what I want to do.
Here's the situation:
I have a 2D array where the first column is the X data and each subsequent column is Y data (call it Y1...Yn). The n-value varies from run to run (some runs have 4 columns of data, some have 20), but that is easily gathered when reading the data file. I need to perform a number of operations on each set of data, the least of which is smoothing the data and graphing it, so I'm limiting my discussion to these 2 operations.
What I want is a for loop structure where the indexing of the loop tracks the Y1...Yn columns, grabs each column for the iteration, performs the relevant analysis, and spits out the result, but in a stackable manner. Thus the title; I want to use the for loop's index to mark the array element for building a new array.
See the image attached. A 2D array of 9 columns (X, Y1...Y8) is analyzed such that each data set, (X, Y1), (X, Y2)...(X, Y8) is bundled, graphed, run through a B-spline Fit, of which is also graphed. I need to replace this with something that looks like the for loop structure shown.
I just don't know how to get those two data bundles [(X, Yi) and it's smoothed pair] out of the for loop in a stacked set from every iteration of the for loop.
Again the title, I think I want to build a new array where i use the index of the for loop to control the entries of the new array. But I can't see how to do that.
Any help would be appreciated.
Attachments:
NeedForLoopForThis.PNG 30 KBHello H.R. Dunham, and welcome to the forum!
It seems that you may be looking for Auto-Indexing, a basic feature of loops in LabVIEW. You'll need to transpose your array before wiring it into the for loop, as elements are auto-indexed by row before column, but at that point you should be able to operate on each column and output an array of n cluster elements corresponding to your input columns. Auto-indexing tunnels look like brackets to indicate each element will be indexed automatically- this should be the default when wiring an array into a for loop or when wiring anything out of a for loop.
As for how to build your pairs, I suggest removing the X column and creating a "starter" cluster containing your X data and placeholder Y data before entering your "Y" processing loop. Use the bundle by name function in the for loop to insert your processed column data into the cluster and auto-index the cluster output. Flow would be something like this:
1) Gather data
2) Split X and Y using standard array operations
3) Create "template" cluster with shared X data
4) Pass template cluster and Y-column array into an auto-indexed for loop.
5) Insert processed Y data into cluster inside loop.
6) Auto-index cluster data out of loop.
This tutorial is probably also a good place to get started:
Getting Started with NI LabVIEW Module 3: Loops
http://www.ni.com/white-paper/7528/en/
Hope that helps!
Regards,
Tom L. -
How to use XSLT for mapping feild names one by one to array element
I have a XSLT case to map all the attributes feild name(not value) which has no child to the target, which is array loop.
I give an sample below.
source:
<Items xmlns="http://www.example.org/sample">
<SourceSystem>SourceSystem2573</SourceSystem>
<TimeStamp>2010-01-17T20:54:08.234</TimeStamp>
<Item>
<ID>2574</ID>
<Type>2575</Type>
<Name>2576</Name>
</Item>
</Items>
source XSD like:
<element name="Items" type="tns:ItemsType"></element>
<complexType name="ItemsType">
<sequence>
<element name="SourceSystem" type="string" maxOccurs="1"
minOccurs="1">
</element>
<element name="TimeStamp" type="dateTime" maxOccurs="1"
minOccurs="1">
</element>
<element name="Item" type="tns:ItemType"
maxOccurs="unbounded" minOccurs="1">
</element>
</sequence>
</complexType>
<complexType name="ItemType">
<sequence>
<element name="ID" type="string" maxOccurs="1"
minOccurs="1">
</element>
<element name="Type" type="string" maxOccurs="1"
minOccurs="1">
</element>
<element name="Name" type="string" maxOccurs="1"
minOccurs="1">
</element>
</sequence>
</complexType>
target need to be like:
<ns1:AttributesCollection>
<ns1:Attributes>
<ns1:fieldname>SourceSystem</ns1:fieldname>
</ns1:Attributes>
<ns1:Attributes>
<ns1:fieldname>TimeStamp</ns1:fieldname>
</ns1:Attributes>
<ns1:Attributes>
<ns1:fieldname>ID</ns1:fieldname>
</ns1:Attributes>
<ns1:Attributes>
<ns1:fieldname>Type</ns1:fieldname>
</ns1:Attributes>
<ns1:Attributes>
<ns1:fieldname>Name</ns1:fieldname>
</ns1:Attributes>
</ns1:AttributesCollection>
target XSD:
<xs:element name="AttributesCollection" type="AttributesCollection"/>
<xs:complexType name="AttributesCollection">
<xs:sequence>
<xs:element name="Attributes" type="Attributes" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Attributes">
<xs:sequence>
<xs:element name="fieldname" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
I know we can use local-name() to get the tag/field name,
but I have not idea how to get these leaf field names one by one and then mapping to every array elements.
I tried whole day but no successful
Does anyone have some idea?
Thanks very much!
Keith
Edited by: user1065212 on 17-Jan-2010 22:50
Edited by: user1065212 on 17-Jan-2010 22:53
Edited by: user1065212 on 17-Jan-2010 22:59can you paste source xsd and the correct xml output, the current one isn't really valid
<ID>2574</TotalNumOfItems> -
How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?
Hi Libby,
Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
Click the Charts button and choose the Scatter chart.
The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
Click the gear icon at the top left of the selection and choose Share X Values.
You should see a result similar to this:
Notes:
The values on my sample table contain a random element, so they have changed from thhe first image to the second.
The chart is as created by Numbers, with two edits:
Data points have been connected with curves, using the Chart nspector.
The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
Regards,
Barry -
A basic question/problem with array element as undefined
Hello everybody,
thank you for looking at my problem. I'm very new to scripting and javaScript and I've encountered a strange problem. I'm always trying to solve all my problem myself, with documentation (it help to learn) or in the last instance with help of google. But in this case I am stuck. I'm sure its something very simple and elementary.
Here I have a code which simply loads a text file (txt), loads the content of the file in to a "var content". This text file contents a font family name, each name on a separate line, like:
Albertus
Antenna
Antique
Arial
Arimo
Avant
Barber1
Barber2
Barber3
Barber4
Birch
Blackoak ...etc
Now, I loop trough the content variable, extract each letter and add it to the "fontList[i]" array. If the character is a line break the fontList[i] array adds another element (i = i + 1); That's how I separate every single name into its own array element;
The problem which I am having is, when I loop trough the fontList array and $.writeln(fontList[i]) the result in the console is:
undefinedAlbertus
undefinedAntenna
undefinedAntique
undefinedArial ...etc.
I seriously don't get it, where the undefined is coming from? As far as I have tested each digit being added into the array element, I can't see anything out of ordinary.
Here is my code:
#target illustrator
var doc = app.documents.add();
//open file
var myFile = new File ("c:/ScriptFiles/installedFonts-Families.txt");
var openFile = myFile.open("r");
//check if open
if(openFile == true){
$.writeln("The file has loaded")}
else {$.writeln("The file did not load, check the name or the path");}
//load the file content into a variable
var content = myFile.read();
myFile.close();
var ch;
var x = 0;
var fontList = [];
for (var i = 0; i < content.length; i++) {
ch = content.charAt (i);
if((ch) !== (String.fromCharCode(10))) {
fontList[x] += ch;
else {
x ++;
for ( i = 0; i < fontList.length; i++) {
$.writeln(fontList[i]);
doc.close (SaveOptions.DONOTSAVECHANGES);
Thank you for any help or explanation. If you have any advice on how to improve my practices or any hint, please feel free to say. Thank youCarlosCantos wrote an amazing script a while back (2013) that may help you in your endeavor. Below is his code, I had nothing to do with this other then give him praise and I hope it doesn't offend him since it was pasted on the forums here.
This has helped me do something similar to what your doing.
Thanks again CarlosCanto
// script.name = fontList.jsx;
// script.description = creates a document and makes a list of all fonts seen by Illustrator;
// script.requirements = none; // runs on CS4 and newer;
// script.parent = CarlosCanto // 02/17/2013;
// script.elegant = false;
#target illustrator
var edgeSpacing = 10;
var columnSpacing = 195;
var docPreset = new DocumentPreset;
docPreset.width = 800;
docPreset.height = 600;
var idoc = documents.addDocument(DocumentColorSpace.CMYK, docPreset);
var x = edgeSpacing;
var yyy = (idoc.height - edgeSpacing);
var fontCount = textFonts.length;
var col = 1;
var ABcount = 1;
for(var i=0; i<fontCount; i++) {
sFontName = textFonts[i].name;
var itext = idoc.textFrames.add();
itext.textRange.characterAttributes.size = 12;
itext.contents = sFontName;
//$.writeln(yyy);
itext.top = yyy;
itext.left = x;
itext.textRange.characterAttributes.textFont = textFonts.getByName(textFonts[i].name);
// check wether the text frame will go off the bottom edge of the document
if( (yyy-=(itext.height)) <= 20 ) {
yyy = (idoc.height - edgeSpacing);
x += columnSpacing;
col++;
if (col>4) {
var ab = idoc.artboards[ABcount-1].artboardRect;
var abtop = ab[1];
var ableft = ab[0];
var abright = ab[2];
var abbottom = ab[3];
var ntop = abtop;
var nleft = abright+edgeSpacing;
var nbottom = abbottom;
var nright = abright-ableft+nleft;
var abRect = [nleft, ntop, nright, nbottom];
var newAb = idoc.artboards.add(abRect);
x = nleft+edgeSpacing;
ABcount++;
col=1;
//else yyy-=(itext.height); -
Help to create complex graphs in oracle 10g reports
As my company has migrated from 6i to Oracle 10g, but as graph ogd files are obselete in Oracle 10g , I am trying to create new graphs in Oracle 10g.
But problem I am facing that I cannot give axis value 'LABEL' or define my own scale or draw any lines on chart or inshort plot graph as I need. Moreover no way to read objects on Chart. In forms 6i it was easy to read object with command "OG_GET_OBJECT(OBJECT_NAME)". Helps tell me to use graph.dtd but I am unable to use it or I don't know how to use it. No documentation available anywhere how to use graph.dtd syntax.
Is it possible to achieve my above goals or any other tools to customize charts.
PrashantHello FormsEleven,
First of all very Thanks for reply. Thanks for your valuable time given to me.
I don't have any error in my java/jinit console infact latest jinit is running and web browser start with message applet are being loaded and Oracle forms service installed successfully. All other forms details are very well displayed on browser form, only bean area remains empty. Following are my formsweb.cfg details. Note on below [bigraph] section I have commented some lines but that also done after my form did not work.
### Forms DEMO FOR BIGRAPHS
[pjc_demos]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
pageTitle=Oracle Forms - Pluggable Java Components
form=pjclaunch.fmx
otherparams=demo_root=D:\DevSuiteHome_1\forms\demos
scripting=true
[pjc_jspell]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/jspellintegration.jar,/forms/formsdemo/jars/jspell2n_java11.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/jspellintegration.jar,/forms/formsdemo/jars/jspell2n_java11.jar
pageTitle=Oracle Forms - Pluggable Java Components
form=jspell.fmx
otherparams=dictionary_hostname=%JSPELL_HOST% dictionary_port=8888
[HL]
# Healthy Living Demo.
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
baseHTMLJInitiator=basejini.htm
form=healthyliving.fmx
userid=hl/hl@skoda
width=994
height=582
pageTitle=Healthy Living
splashScreen=/forms/formsdemo/images/suppsplash.gif
background=/forms/formsdemo/images/white.gif
logo=/forms/formsdemo/images/bannerlogo.gif
lookAndFeel=oracle
colorScheme=titanium
# Used for demo. This is the destination directory
# when uploading images and XML files.
otherparams=output_dir=D:\DevSuiteHome_1\forms\demos\temp
[IORG]
imageBase=codebase
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/iorganizer.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/iorganizer.jar,/forms/formsdemo/jars/icons.jar
baseHTMLJInitiator=basejini.htm
form=iorganizer.fmx
userid=iorg/iorg@skoda
width=994
height=582
pageTitle=iOrganizer
splashScreen=/forms/formsdemo/images/iorganizer.gif
background=/forms/formsdemo/images/white.gif
logo=/forms/formsdemo/images/bannerlogo.gif
lookAndFeel=oracle
colorScheme=titanium
otherparams=usesdi=yes
[reusable_calendar]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
pageTitle=Oracle Forms - Reusable Components
form=calendar.fmx
userid=oe8/oe8@skoda
imagebase=codebase
[reusable_picklist]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Reusable Components
form=picklist.fmx
userid=oe8/oe8@skoda
[reusable_save2html]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Reusable Components
form=save2html.fmx
userid=hr8/hr8@skoda
otherParams=OUTPUT_REAL_DIR=D:\DevSuiteHome_1\forms\demos\temp/ OUTPUT_VIRTUAL_DIR=/forms/formsdemo/temp/
[reusable_wizard]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Reusable Components
form=wizard.fmx
userid=hr8/hr8@skoda
[featuredemo_array_dml]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=arraydml.fmx
userid=oe8/oe8@skoda
[featuredemo_calculated_fields]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=calcform.fmx
userid=oe8/oe8@skoda
[featuredemo_object_columns]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=objref.fmx
userid=oe8/oe8@skoda
[featuredemo_stored_procedure]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=storproc.fmx
userid=oe8/oe8@skoda
[featuredemo_trace]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=trace.fmx
userid=oe8/oe8@skoda
otherparams=record=forms tracegroup=0-199
[featuredemo_webservice]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar
pageTitle=Oracle Forms - Feature Demos
form=webservice.fmx
userid=oe8/oe8@skoda
[featuredemo_javamail]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/icons.jar
pageTitle=Oracle Forms - Feature Demos
form=javamail.fmx
#Upload directory for attachments
otherparams=temp_dir=D:\DevSuiteHome_1\forms\demos\temp
[bigraph]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,d:\DevSuiteHome_1\forms\java\frmbld.jar;d:\DevSuiteHome_1\jlib\importer.jar;d:\DevSuiteHome_1\jlib\debugger.jar;d:\DevSuiteHome_1\jlib\utj.jar;d:\DevSuiteHome_1\jlib\dfc.jar;d:\DevSuiteHome_1\jlib\help4.jar;d:\DevSuiteHome_1\jlib\oracle_ice.jar;d:\DevSuiteHome_1\jlib\jewt4.jar;d:\DevSuiteHome_1\jlib\ewt3.jar;d:\DevSuiteHome_1\jlib\share.jar;d:\DevSuiteHome_1\forms\java\frmwebutil.jar;d:\DevSuiteHome_1\forms\java\frmall.jar;D:\DevSuiteHome_1\forms\oracle\forms\demos\bigraph\FormsGraph.jar;D:\DevSuiteHome_1\LIB\xmlparserv2.jar;D:\DevSuiteHome_1\jlib\bigraphbean.jar;D:\DevSuiteHome_1\jlib\bigraphbean-nls.zip;D:\DevSuiteHome_1\jlib\jewt4.jar;D:\DevSuiteHome_1\jlib\LW_PfjBean.jar;D:\DevSuiteHome_1\jlib\share.jar
;archive=frmall_jinit.jar,/forms/demos/jars/demo.jar,/forms/demos/jars/FormsGraph.jar
pageTitle=Oracle Forms - Forms BI Graph integration
;form=graph.fmx
;userid=oe8/oe8@skoda
; Set imagebase to codebase to use icons stored in FormsGraph.jar
imagebase=codebase
[pjc_host]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/host.jar
archive=frmall.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/host.jar
pageTitle=Oracle Forms - Client HOST() Command
form=host.fmx
[cursorpos]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/cursorpos.jar
archive=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/cursorpos.jar
pageTitle=Oracle Forms - CursorPos PJC Demo
form=cursorpos.fmx
[timeout]
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
background=/forms/formsdemo/images/blue.gif
logo=/forms/formsdemo/images/bannerlogo.gif
baseHTMLjinitiator=demobasejini.html
baseHTMLjpi=demobase.htm
baseHTML=demobase.html
baseHTMLie=demobaseie.html
envFile=formsdemo.env
archive_jini=frmall_jinit.jar,/forms/formsdemo/jars/timeout.jar,/forms/formsdemo/jars/demo.jar
archive=frmall_jinit.jar,/forms/formsdemo/jars/demo.jar,/forms/formsdemo/jars/timeout.jar
pageTitle=Oracle Forms - Timeout PJC
form=timeout.fmx
imagebase=codebase
#height=520
#width=690
MY REGEDIT OF FORMSBUILDER_CLASSPATH_ is as follow:
d:\DevSuiteHome_1\forms\java\frmbld.jar;d:\DevSuiteHome_1\jlib\importer.jar;d:\DevSuiteHome_1\jlib\debugger.jar;d:\DevSuiteHome_1\jlib\utj.jar;d:\DevSuiteHome_1\jlib\dfc.jar;d:\DevSuiteHome_1\jlib\help4.jar;d:\DevSuiteHome_1\jlib\oracle_ice.jar;d:\DevSuiteHome_1\jlib\jewt4.jar;d:\DevSuiteHome_1\jlib\ewt3.jar;d:\DevSuiteHome_1\jlib\share.jar;d:\DevSuiteHome_1\forms\java\frmwebutil.jar;d:\DevSuiteHome_1\forms\java\frmall.jar;D:\DevSuiteHome_1\forms\oracle\forms\demos\bigraph\FormsGraph.jar;D:\DevSuiteHome_1\LIB\xmlparserv2.jar;D:\DevSuiteHome_1\jlib\bigraphbean.jar;D:\DevSuiteHome_1\jlib\bigraphbean-nls.zip;D:\DevSuiteHome_1\jlib\jewt4.jar;D:\DevSuiteHome_1\jlib\LW_PfjBean.jar;D:\DevSuiteHome_1\jlib\share.jar
Once again I insist that I had followed demos instruction, all readme and install guide . Here in my company I am using ORACLE 10G FORMS on my machine and ORACLE 10G database server installed on other server . Moreover this softwares are original license software .
Regards,
Prashant -
Data Logging a programmatically created shared variable of cluster or array datatype into citadel DB
Hi,
Is there a way to log a programmatically created shared variable of cluster or array datatype into citadel DB?
I have attempted to programmatically create a shared variable of type 'double' and was able to successfully log the same into Citadel DB. In the attachment, Please refer to the attached project SV_TC.lvproj and specifically to SV_W.vi for the code that i have used (W.png file shows the dB in MAX and shared variable in NI Distributed System Manager)
However when i tried the same approach to create a shared variable 'array of double', i noticed that traces are not getting created and hence data logging isn't happening into the Citadel DB. I was however able to write and read the shared variable array without issues. The same is true with cluster datatype also. Please refer to SN_NW.vi for the code that i have used - only difference from SV_W.vi is that i have tried to create a shared variable of type 'array of double'
One observation is that if i create an 'array of double' or cluster in a shared variable library using the project explorer and deploy, i could see that these being logged into Citadel DB.
Hence i want to understand what could be done to achieve the same programmatically? Could you please advice?
Regards,
Sridhar
Attachments:
SV_TC.zip 3925 KBWhy is the transaction happening over remote?
Because we need the information to be on our database immediately when they submit it.
I don't know anything about streams or replication.....
The web database is run by the company that hosts our web site. We use PL/SQL to show the pages and output the html. It fetches the data the customer is requesting from our database, but I'm struggling to get the best way to insert into our database from there. -
How to create a graph in ADF Faces
Hi there,
I am working with ADF using JDeveloper 10.1.3 with Business Components (BC) and ADF Faces.
I am trying to create a graph base on a View object, but I can't see any options on the Data Control Palette.
Is there a graph wizard component for ADF Faces?
Thanks for any help.
JimThanks Frank.
A graph was created successfully using the following steps:
1. using BIGraphDef1.xml (with Oracle BI Graph library)
2. add to pageDef.xml
<iterator id="EmployeesView1Iterator" RangeSize="10" Binds="EmployeesView1"
DataControl="AppModuleDataControl"/>
<graph id="pageGraphid"
IterBinding="EmployeesView1Iterator"
ControlClass="oracle.dss.graph.Graph" SeriesLabel="EmployeeId"
GraphPropertiesFileName="view.BIGraphDef1"
SeriesType="SINGLE_SERIES">
<AttrNames>
<Item Value="Salary"/>
</AttrNames>
</graph>
3. add to .jspx (with Graph 1.0 as library )
<h:form>
<af:panelGroup>
<f:verbatim>
<graph:Graph imageHeight="300" imageWidth="500" data="${bindings.pageGraphid}"/>
</f:verbatim>
</af:panelGroup>
</h:form>
4. add to web.xml
<servlet>
<servlet-name>GraphGeneratorServlet</servlet-name>
<servlet-class>oracle.jbo.html.jsp.graph.GraphGeneratorServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GraphGeneratorServlet</servlet-name>
<url-pattern>/faces/jspx/GraphGeneratorServlet</url-pattern>
</servlet-mapping>
Jim -
Hi,
I was wondering if I could get some information and opinions about using a type defined array of clusters to hold configuration data. I am creating a program to test multiple DUTs and wanted to have a type defined control for each DUT containing the information needed to create the DAQmx tasks for all of the signals for that DUT. I am wanting to do this so that the data is hard-coded and not in a file that the user could mess up.
The type def controls are then put in a subVI that chooses the appropriate one based on the DUT Type enumeration wired to a case structure.
I am having problems with the type defined control. I am seeing issues when attempting to save a unique configuration to each array element in the array of clusters. Somehow it worked to begin with, but now clicking "Data Operations --> Make Current value default" on individual elements of the cluster or the entire cluster (array element) is not saving the data when I re-open the type def control. What am I doing wrong? Am I trying to do something with arrays of clusters that I should not be doing?
I have attached one of the type defined controls for reference. I tried changing it to Strict to see if that helped, but no luck.
To reproduce, change the resource string for array element 0 and make the new value the default value. Then close the type def, and re-open it. The old value is still present in that element. The VI is saved in LabVIEW 2012.
Solved!
Go to Solution.
Attachments:
CM_AnalogInputs.ctl 11 KBValues of a typedef are not proprigated to instances of the control. THey will pick it up if created AFTER the data values have been changed. THey will not get updated with future changes. You should either create a VI specifically for hardcoding your values or implement a file based initialization. The file based would be much better and more flexible. If you don't want users to modify the data simply encrypt it. There is a noce blowfish library you can download.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Hi!
I have a problem with my program. i have an array and in this array a several numbers. With the "In Range and Coerce" function i want to prove if the the array element is inside or outside of my limitations. If my array element is in the outside of my limitation, the code in the case structure should delete this element.
I need this program, because the array is displayed on a graph and i want only display the date, which is in the limitations.
I hope somebody could help me!
Best regards,
Peter
Labview 7.1 on Windows 2000
Attachments:
array.jpg 54 KBHallo Peter
Das Problem tritt auf, weil du immer wieder das selbe Array liest.
Die Knoten am Loop sollten Shift-Register sein, damit das Array, bei dem das Element gelöscht wurde, bei der nächsten Iteration gelesen wird. Allerdings musst du dann auf einen While-Loop umstellen, da du ansonsten Elemente lesen willst, die es im Array nicht mehr gibt.
Anbei eine mögliche Lösung.
Hoffe es hilft weiter.
Thomas
Using LV8.0
Don't be afraid to rate a good answer...
Attachments:
RemoveElements.vi 32 KB -
Change representation of array elements? (typecast?)
There must be a better way to convert an array of U16 (from an
unflattened picture object I loaded from a BMP file) to a floating
point array than what I've come up with: unwrapping the array,
converting each element, then building a new array! I also tried
array->cluster -> cluster convert U16 ToFloat -> array.
I can't find information on typecast - is this what I want? Where is
the "enum" definition that tells which constant to wire up to "type"?
It's not in the online help, it seems. And I couldn't find any array
conversion VI's that just change the base representation of each
element.
My ultimate goal is to load an image from disk, then display it in
various 3D ways (like a 3D graph, or contou
r, or wireframe, etc) and
apparently need the image data to be a float array to do this.
ANY advice appreciated in advance.
NO SPAM, PLEASE PLEASE!!!
Helen K
PS I have the IMAQ Vision package, the picture-control package, LabView
v6i
"I love deadlines. I like the whooshing sound as they fly by." - Douglas
Adamsd'oh! Aha! I just wrongheadedly didn't realize that the conversion vi's under
"numeric" could be used on arrays. I was hunting around in the "arrays"
palette. See, I knew there was a better way! Thanks! (Duh)
(and, doesn't the 3D graph need a float array input? Can one change that? the
help on the vi shows it as float array...?)
Torsten Levin wrote:
> In the "Numeric" palette there is a sub palette "Conversion". These
> conversion function can be used with arrays too. So where is the
> problem?
>
> "Helen E. Kourous" schrieb:
> >
> > There must be a better way to convert an array of U16 (from an
> > unflattened picture object I loaded from a BMP file) to a floating
> > point array than what I've come up with: unwrapping the array,
> > converting
each element, then building a new array! I also tried
> > array->cluster -> cluster convert U16 ToFloat -> array.
> >
> > I can't find information on typecast - is this what I want? Where is
> > the "enum" definition that tells which constant to wire up to "type"?
> > It's not in the online help, it seems. And I couldn't find any array
> > conversion VI's that just change the base representation of each
> > element.
> >
> > My ultimate goal is to load an image from disk, then display it in
> > various 3D ways (like a 3D graph, or contour, or wireframe, etc) and
> > apparently need the image data to be a float array to do this.
> >
> > ANY advice appreciated in advance.
> >
> -
> Torsten Levin Tel.: ++49-(0)89-72495-451
> Kayser-Threde GmbH Fax: ++49-(0)89-72495-291
> Perchtinger Str. 3 mailto:[email protected]
> D-81379 München http://www.kayser-threde.de
Helen E. Kourous
"I love deadlines. I like the whooshing sound as they fly by." - Do
uglas Adams -
Accessing a user array elements in Captivate 6
Hi guys I have a piece of code that's not working I was hoping someone had any clue as to why, I've wasted too many hours trying to figure this out. Here's the code, explanation below.
var objCP = document.Captivate;
objCP.cpEISetValue("m_VarHandle.questionList", new Array(7));
objCP.cpEISetValue("m_VarHandle.questionList[0]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[1]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[2]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[3]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[4]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[5]", 2);
var cat1Len = 0;
var cat2Len = 0;
for (var i=0;i<objCP.cpEIGetValue("m_VarHandle.questionList.length");i++){
var value = objCP.cpEIGetValue("m_VarHandle.questionList[i]");
if (value == 1)
{cat1Len++;}
if (value) == 2)
{cat2Len++;}
alert(i);
alert(objCP.cpEIGetValue("m_VarHandle.questionList[2]"));
alert(value);
I'm attempting to create a list using a captivate variable I've created called "questionList".
I fill questionList with data and and then use that data to count, in this instance with cat1Len and cat2Len.
After that I attempt to verify that the data is being returned correctly with a series of alerts.
Here's the problem:
alert(i) correctly reports the number my incrementer should be at.
alert(objCP.cpEIGetValue("m_VarHandle.questionList[2]")) correctly reports the data in cell [2] of questionList
but...
alert(value) reports undefined. How can this be? I know that I can access array elements from inside this loop and I know that I my incrementer is at the correct location so what's the deal?
Thanks for any help!should be:
var objCP = document.Captivate;
objCP.cpEISetValue("m_VarHandle.questionList", new Array(7));
objCP.cpEISetValue("m_VarHandle.questionList[0]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[1]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[2]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[3]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[4]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[5]", 2);
var cat1Len = 0;
var cat2Len = 0;
for (var i=0;i<objCP.cpEIGetValue("m_VarHandle.questionList.length");i++){
var value = objCP.cpEIGetValue("m_VarHandle.questionList["+i+"]");
if (value == 1)
{cat1Len++;}
if (value) == 2)
{cat2Len++;}
alert(i);
alert(objCP.cpEIGetValue("m_VarHandle.questionList[2]"));
alert(value);
i is only defined local to the javascript eval, not a global variable. You have to pass the value, not the name of the index...
(I just realized that this question was from 2012, but maybe it might still benefit someone... I saw it while I was looking for something else) -
Retrieve captivate array elements in Captivate 6
Hi guys I have a piece of code that's not working I was hoping someone had any clue as to why, I've wasted too many hours trying to figure this out. Here's the code, explanation below.
var objCP = document.Captivate;
objCP.cpEISetValue("m_VarHandle.questionList", new Array(7));
objCP.cpEISetValue("m_VarHandle.questionList[0]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[1]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[2]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[3]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[4]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[5]", 2);
var cat1Len = 0;
var cat2Len = 0;
for (var i=0;i<objCP.cpEIGetValue("m_VarHandle.questionList.length");i++){
var value = objCP.cpEIGetValue("m_VarHandle.questionList[i]");
if (value == 1)
{cat1Len++;}
if (value) == 2)
{cat2Len++;}
alert(i);
alert(objCP.cpEIGetValue("m_VarHandle.questionList[2]"));
alert(value);
I'm attempting to create a list using a captivate variable I've created called "questionList".
I fill questionList with data and and then use that data to count, in this instance with cat1Len and cat2Len.
After that I attempt to verify that the data is being returned correctly with a series of alerts.
Here's the problem:
alert(i) correctly reports the number my incrementer should be at.
alert(objCP.cpEIGetValue("m_VarHandle.questionList[2]")) correctly reports the data in cell [2] of questionList
but...
alert(value) reports undefined. How can this be? I know that I can access array elements from inside this loop and I know that I my incrementer is at the correct location so what's the deal?
Thanks for any help!should be:
var objCP = document.Captivate;
objCP.cpEISetValue("m_VarHandle.questionList", new Array(7));
objCP.cpEISetValue("m_VarHandle.questionList[0]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[1]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[2]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[3]", 2);
objCP.cpEISetValue("m_VarHandle.questionList[4]", 1);
objCP.cpEISetValue("m_VarHandle.questionList[5]", 2);
var cat1Len = 0;
var cat2Len = 0;
for (var i=0;i<objCP.cpEIGetValue("m_VarHandle.questionList.length");i++){
var value = objCP.cpEIGetValue("m_VarHandle.questionList["+i+"]");
if (value == 1)
{cat1Len++;}
if (value) == 2)
{cat2Len++;}
alert(i);
alert(objCP.cpEIGetValue("m_VarHandle.questionList[2]"));
alert(value);
i is only defined local to the javascript eval, not a global variable. You have to pass the value, not the name of the index...
(I just realized that this question was from 2012, but maybe it might still benefit someone... I saw it while I was looking for something else) -
Hello,
Dose anyone know how to get Exclusive Or (Xor) on array of U8 elements
in LabVIEW?
Avivit
[email protected]Avivit Noiman wrote:
> Hello,
>
> Dose anyone know how to get Exclusive Or (Xor) on array of U8 elements
> in LabVIEW?
>
> Avivit
> [email protected]
Create a for loop with a shift register. Initialize the shift to zero.
Feed the array in (let it autoindex) use the XOR function to
xor the shift with the U8 value, stuff into the shift register.
This will XOR all the values of the array together, and give a single value
I think this is what you want.
Kevin Kent
Attachments:
Kevin.Kent.vcf 1 KB -
How do I access array elements in one method from another method?
Hi all!
How do I access the array's elements from another method so that method 2 can have access to method 1's array elements? Thanks for any help!
I am trying to create a simply program that will use a method to create an array and a SEPARATE method that will sort the array's elements (without using java's built in array features). I can create the program by simply having one method and sorting the array within that same method, BUT I want to sort the array from another method.
Here's my code so far:
public class ArraySort {
public static void createArray(int size){
double myArray[] = new double[size]; //create my new array
for(int j=0; j < myArray.length; j++)
myArray[j] = (200.0 * Math.random() + 1.0); //fill the array with random numbers
public static void sortArray(){
// I WANT THIS METHOD TO ACCESS THE ARRAY ELEMENTS IN THE METHOD ABOVE, BUT DON'T KNOW
// HOW???? Please help!
public static void main(String[] args) {
createArray(4); //call to create the array
}Thanks again!
- JohnnyThanks for the help all! I ve managed to get the program working, using java's built in array sort, but when i try to call on the array sort method from WITHIN my main method, nothing happens!
Can somebody please tell me why I am not able to call on the sort method from within my main class???? Thanks!
public class ArraySort {
public void createArray(double[] arrayName, int size){
double myArray[] = new double[size]; //create new array
for(int j=0; j < myArray.length; j++)
myArray[j] = (200.0 * Math.random() + 1.0); //populate array with
} //random Numbers
sortArray(myArray);
} //Sort array(if I delete this & try to use it in Main method --> doesn't work???
public void sortArray(double[] arrayName){
DecimalFormat time = new DecimalFormat("0.00");
Arrays.sort(arrayName); //sort array using Java's built in array method
for(int i = 0; i <arrayName.length; i++)
System.out.println(time.format(arrayName)); //print arary elements
public static void main(String[] args) {
ArraySort newArray = new ArraySort(); //create a new instance
double myArray[] = new double[0]; //create a new double array
newArray.createArray(myArray,4); //build the array of indicated size
//newArray.sortArray(myArray); //This will not work???? WHY?????//
Maybe you are looking for
-
How do I select an e-mail without opening it?
Sorry if this is already answered, I couldn't find it anywhere. When I get a new e-mail I go to the inbox and see that it's junk mail. It has the blue dot next to it showing that it has not been opened. How do I send it to the junk folder without sel
-
How does one create a "check box" in a cell?
How does one create a "check box" in a cell?
-
Two issues with firefox (pdf and downloads)
Hi, two points bother me since a long time: 1. Reading pdf: In most cases I'm unable to read pdf-files in the browser. When I click on a link to a pdf a new tab opens and firefox loads. After some seconds the statusbar says finished (? in German it's
-
ReturnEvent not get called after search more than 10 times in LOV page
hi there, I using ADF and Jdeveloper 10.3.1.2 In my project I have a form which called a LOV page for selecting multiple records and submit button sumup the values of each selected row of LOV and return to the main form and display added value on tex
-
I'm looking to go away from some of the free editors and organizers, but finding the solution that is best for me is challenging. For a basic photo / video editor and organization what product would statisfy my needs? I have probably a few thousand