Problem with XY graph
Hallo
I want to build a XY Graph ( Voltage vs. Current) . Is there anyway to build the Graph without using FOR Loop but only WHILE Loop.
The problem is when I use WHILE alone , I'll get just a point on my Graph .
to Understand what i mean plz take a look on the attached LV
Thank you
Toni
Attachments:
Unbenannt 2.vi 79 KB
thank you for your replay
I tried to do like you told me but it dosn't work on my LV , I don't know where is the Problem
can you help me plz
Toni
Attachments:
Messung.vi 177 KB
Similar Messages
-
I have attached with my message the report I try to print. It is a Labview 6 vi.
I had no problem with Labview 5. But with Labview 6, the plots are shopped (all the rest of the report is correct). What is printed is not what I see.
The graph is intentionnaly built very large, then rescale to fit page, in order to improve the print quality of the plots. I repeat it, it worked fine with Labview 5.
Thanks if you can help.
Lionel.
Attachments:
Print_of_large_scale_graph.vi 284 KBHi Lionel,
I experienced a similar problem days ago: re-compiling a vi from LV 5.1 to LV 6.0.2 its front panel could not be printed anymore; no error, just a blank sheet.( The mass compile procedure did not reported any error).
The only way to get out from this headache was to re-build the vi in LV 6.0.2, I simply selected all its diagram and copied it in a new vi, saved it and I got print-outs!
Try it.
Good luck,
Alberto -
Problems with 3D graph application redistribution
Hello wireworkers,
i wonder if
someone encountered problems with distribution of application that
uses 3D graph objects. I've created application that uses NI 3D graph
component and created installer with "Enable 3D graph support"
check box enabled. However after installing this application on the
windows machine without Labview two problems appeared: 1) "Error
loading control. A newer version needed. The default settings for the
control will be used." and after it 2) "You have 30 days to
evaluate the Measurement Studio ActivX control..." and something
like that. I don't get it. Why some newer version is required? and
what with that evaluation period?
Have any hints???
Thank you in advance and Merry
Christmas to everyone.
Alex
www.xinstruments.com
Custom Software for Industrial Automation
www.hdrconverter.com
Picture processing made easyHi Alex,
I tried the process you described on my machine using LabVIEW 7.1 and could not reproduce the behavior. If you can clarify the version you were using that will be helpful. I will have to clean a test machine and try it again without LabVIEW installed, and get back with you if the problem appears. In the meanwhile, I found the following KB which, while not referring to the exact same problem you are describing, does address the evaluation message issue. You can try to follow the steps at the end of the KB, and let me know if that worked.
http://digital.ni.com/public.nsf/websearch/1E1FB3C19E8E0A9986256F8D0077D0E6?OpenDocument
Regards,
Aluma G.
National Instruments -
HI!
I have a problem with my program. With this program i want to load a datafile and to display the data from the file on the xy-graph. i want to display 1,2,3 or 4 graphs on the xy-graph. The problem is, when i want to display only two graphs and i push the "... laden" button, a popup will open and ask me for the 3rd ord 4th graph, but i want only display two graphs.
The program should display the data, when there is a path added in the path-element (the white,red,blue or grenn one).
The second problem is, when i start the program and push the "...laden" button and no path added, a popup will open and aks me for files, but the popup should not open!
Could somebody help me???
TNKS
best regards,
peter
Labview 7.1 on Windows 2000
Attachments:
program.zip 30 KBHi,
The function you're using to open the file is automatically asking for a file name when you call it with an empty path connected to the file path input.
So, if you don't want to get the data when the path is empty, you should not call that function.
I've changed your vi to show you.
Hope it helps,
Paulo
Attachments:
Vergleich_XY.vi 93 KB -
Problems with XY Graph "forgetting" plot properties
I am having trouble with an XT Graph in my loop.
The graph has 10 plots which at any time can have anything from 0 to ~1000 points, often some plots will have significantly less ploints than others. There is a user selectable option to display all points or just the most recent set.
My problem is that I want the graph to reflect the input data by plotting a single point at the time of an update, so I have a string of points rather than a line.
When I right click the graph and go into properties, I change the point style to solid circle and turn off line interpolation. I then click save these values as default, and save the vi.
However, once I run the vi, the graph always reverts plots 1 to 9 (not plot 0, this stays as I want it) to have no points displayed and line interpolation on.
Has anyone had this problem before? Ho did you fix it?
I know it can be fixed, as I had this probelm a few months ago on a similar vi and after weeks of struggle I solved it, however I just cannot remember how I did it.
Thank you for any help, at the moment I can't post any code. Note that the data the graph shows is all perfectly fine, just the plot properties are being forgotten.
Solved!
Go to Solution.HI DarraghCorrigan,
In relation to the problem expressed in your initial post:
"once I run the vi, the graph always reverts plots 1 to 9 (not plot 0, this stays as I want it) to have no points displayed and line interpolation on"
This is due to a bug in the LabVIEW software whereby any changes that are made to the plot properties (e.g. to change the colour of a plot) will not be retained, except in plot 0 which is unaffected. Our R&D department are currently investigating this problem so that it can be fixed in future version of the software. The recommended workaround for this problem is to pragmatically set the plot settings at the beginning of the code using property nodes.
As I understand it, this is not the main problem that you are experiencing. If you set up the properties for a plot (using some of the described property nodes) which is subsequently removed or rewritten on an XY Graph, my understanding is that there is no way that LabVIEW can remember and retain these properties.
As you rightly suggested, one way of conveniently overcoming this problem would be to set default plot properties so that when you remove/rewrite a plot and then add it again, it will always default to those properties. Unfortunately, it is not currently possible to do this though it has been recommended as a product suggestion so it is a feature that is under consideration for implementation in future releases of LabVIEW.
I think the issue you need to be addressing is the fact that you are at some point resetting the graph by sending an empty array to it such that all of your properties are lost. If you can find and remove this section in your code, you should be able to overcome your problem.
I hope this helps.
Best Regards,
Christian Hartshorne
NIUK -
Printing problem with PDF graphs from preview
Whenever I print PDF files from preview or from safari, some graphs print incorrectly, although they are displayed correctly on the screen. This only happens with black and white figures and either a negative image with the black and white are reversed is printed or the background of the graphic just prints as a black box. Colour elements are unaffected. This doesn't happen when printing the same files using Adobe Reader or Adobe Professional. Any suggestions for tweaking this, or am I going to have to start using the Adobe plugins instead?
Please try it on Adobe Reader version 10.1.0 , Please note that this forum is for Adobe Reader on android and not for PDF Viewer.
-vaibhav -
When I add a Waveform Graph into the Front Panel, the Block Diagram Window shows it as DBL instead of the usual indicator for the Graph. How can I solve this problem?
Attachments:
Question.vi 9 KBI don't see what the problem is. The default waveform graph type is an array of doubles and that's what your diagram has. If you create a waveform data type and wire it to the indicator, it will change the graph's icon.
-
Hi Experts,
i am using obiee 11g and i build a report using bar graph view.
here problem is in horizontal axis some of my values are missing alternative values are only showing in.
Bars are showing but labels for that corresponding bars are not displaying .
pls help meIncrease the width of the graph something 1000 or so.
-
Problem with bar graphs in Crystal Report
Hi All,
I am currently working on bar graphs and i am facing problem displaying trend in the graph when there is no data for any particular date.
My X-axis has date and y-axis has data.
I want to display all the dates on x-Axis which is selected by the user.
E.g. User has selected fromDate and ToDate as 1st Aug to 10th Aug and I have Data as follows
08/01/2008 abc
08/03/2008 xyz
08/05/2008 klm
Currently my graph just shows data for 1st,3rd and 5th of August.
I want my Graph to show all the dates from 1stAug to 10thAug on x-axis and it should not only show data where it is but also a blank where data is not present
Please help. Thank you.Hi Tenzin
Following are the steps from where you can change the division of the axes:
Right click on the report.
Go to 'Chart Expert' -> 'Axes' tab.
Select the Manual option under 'Number of divisions'.
Change the settings so that you can get each date on the axis.
Hope this helps you.
Please let us know if you have any further queries.
Regards
Ashwini Yadav -
I'am having problem with a graph property node by using format & precision
I would like to display an amount of data in a waveform graph and to choose the X scale to display absolute time (whitout date information) or scaled decimal value.
Absolute time is a must because the scaling should reflect the acquisition time and not only a value in hour, minute and second.
Using the property node I can choose between 10 differents formats (0-Decimal, 1-Scientific, 2-Engineering, 3-Binary, 4-Octal, 5-Hexadecimal, 6-Relative Time, 7-Time and Date, 8-SI, and 9-Custom).
Format 7 - Time and Date should be a good choice but LabVIEW set automatically system time AND system date without any possibilities to change anything.
Trying format 9 - Custom ends everytime with error 1077 (invalid property value).
Any help to explain me how to use the format Custom or to give me a solution to switch between time (no date) and decimal scaling is appreciate.
ThankIn addition to the Xscale.Format property node, you also need to set the XScale.FormatString (see a little below the Format entry).
Use %<%.0X>T as format string.
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left... -
Hi All
I created a crosstab/graph combo report and my problem is , i have 2 data points
a)number of firms b)number of days. Is there any possible way where in i can only display the number of days in the graph and not the number of firms?Any advice will be of grt help.
ThanksHi
In Discoverer we do not have control over graph. all the items you have in your report will be displayed in your graph. you can create a new worksheet that contains only the item you want to be displayed.
Thanks
Mohamed -
Problem with the graph when making DRILL DOWN
Hello
Hierarchy properties when I go to graph
And does DRILL DOWN
At least once time, the graph gets stuck and when I change a parameter, a grapch is stuck
Attached Link
http://youtu.be/3kE3F_Vz2SQ
Does anyone have an idea?
BEST REGARD
GADIHi Shivkumar,
If you right-clic on the time scale you can set the time/date format, I assume this is the way you should follow to add the "day of month in the time stamp.
Hope this help
Message Edité par TiTou le 03-06-2006 09:47 AM
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
Attachments:
Clipboard01.png 20 KB -
Hi
I have a 2D Array and and i am using the paint function to
draw a graph. T
I need to draw the axis of the graph but i am finding this difficult,
1. I cannot pass the 2D array to the public void paint ()method
2. I do not know how to write the axis they should be in the first part
of the array
String [][] otherFrameData;
barChart(String [][] Data)
otherFrameData= Data;
setTitle("Graph Chart");
setSize(400,350);
setVisible(true);
public void paint(Graphics g)
int x = 50;
int y = 300;
int width = 20;
int gap = 5;
//The Axis
g.drawLine(x,y,x+ otherFrameData.length*(width+gap),y);
g.drawLine(x,y,x,30);
//Labelling the axis
for (int i=0; i < otherFrameData.length; i++)
g.drawString(otherFrameData[0][0],i*(width+gap)+gap+x,y+20);
Can someone please help me make the 2D array available to public void paint()
and how to write the axis names the firs part of the array are months
as i am very confused as to how to get this working
CheersVery simple example goes like this (since that is homework, I didn't document the code ...):
import java.awt.*;
import javax.swing.*;
import java.awt.font.*;
public class Chart
public static void main(String args[])
final JPanel contentPane = new JPanel(new BorderLayout());
contentPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
contentPane.add(new JLabel("A Chart"), BorderLayout.NORTH);
contentPane.add(new ChartPanel(new int[]{50, 100, 75, 82}), BorderLayout.CENTER);
final JFrame frame = new JFrame("Chart");
frame.setContentPane(contentPane);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(640, 480);
frame.setVisible(true);
static class ChartPanel extends JComponent {
private final static String[] months = {"Jan", "Feb", "Mar", "Apr"};
private int[] rainfall;
public ChartPanel(int[] rainfall) {
this.rainfall = rainfall;
public void paint(Graphics g) {
FontRenderContext frc;
if (g instanceof Graphics2D) {
frc = ((Graphics2D)g).getFontRenderContext();
} else {
frc = new FontRenderContext(new java.awt.geom.AffineTransform(), false, false);
int maxRainFall = Integer.MIN_VALUE;
for (int i = 0; i < rainfall.length; i++) {
if (rainfall[k] > maxRainFall) {
maxRainFall = rainfall[k];
maxRainFall += 10 - (maxRainFall % 10);
final int xOff = 20;
int x = xOff;
TextLayout tl;
final Font font = g.getFont();
final float[][] textData = new float[months.length][2];
float minAdvance = Float.MAX_VALUE;
float maxAdvance = Float.MIN_VALUE;
float maxAscent = Float.MIN_VALUE;
float maxDescent = Float.MIN_VALUE;
for (int k = 0; k < months.length; k++) {
tl = new TextLayout(months[k], font, frc);
final float advance = tl.getAdvance();
final float ascent = tl.getAscent();
final float descent = tl.getDescent();
if (ascent > maxAscent) {
maxAscent = ascent;
if (advance > maxAdvance) {
maxAdvance = advance;
if (advance < minAdvance) {
minAdvance = advance;
if (descent > maxDescent) {
maxDescent = descent;
final int y = maxRainFall + 12 + (int)maxAscent;
final int offset1 = Math.max((int)minAdvance - 5, 4) / 2;
final int offset2 = (int)maxAdvance + 10;
for (int k = 0; k < months.length; k++) {
g.drawString(months[k], x, y);
final int height = rainfall[k];
g.drawRect(x + offset1, y-12-height-(int)maxAscent, 5, height);
x += offset2;
int lineX1 = 0;
int lineX2 = xOff+x;
int lineY1 = y-6-(int)maxAscent;
int lineY2 = lineY1;
g.drawLine(lineX1, lineY1, lineX2, lineY2);
lineX1 = xOff/2;
lineX2 = lineX1;
lineY1 = y+(int)maxDescent;
lineY2 = 0;
g.drawLine(lineX1, lineY1, lineX2, lineY2);
} -
Work book migration problem : error in graph
Hi all,
I have a work book ,created in 3.x ...now we are on 7.0 So when iam migrating i got error .
I have resolved other errors..but one error is remained , problem with the graph....
on X axis with values it is showing header row also..how can i avoid header row...? to not display in graph....
As data table source controlled by BI so ia mnotable to maintain range for graph....
Problem is when it is with out scalling factors it is displaying correctly in graph also..
When iam selecting option to display scalling factor it is showing header row also in graph... coz of that graph was showing wrong data...
cal day Quantity
above is with out scalling factor display..everything correct
blank Quantity
cal day KG
When iam selecting scalling factor sys will add one more row to display... this is the problem sys did not set automaticaly to consider or to leave first 2 rows...
How can resolve...? In 3.X it is working fine...... (There is no macro )
Thanks
BK
Edited by: BK BI on Jun 8, 2010 8:56 AMHi,
Go to the workbook in development system. Find out the technical name of the workbook ( in query designer you wil find in properties).
Copy it and go to the production system. Assign it to the required role you want. It will be visible in the perticular role in production.
I would still suggest if possible transport the role from dev to prod. (to keep all systems in line with each other)
Hope this helps.
Regards,
Viren -
Painting problems with cwgraph in multiple document interface (mdi).
Has anyone else seen weird behavior when using a cwgraph on an MDI child form in .NET. Whenever I open a new child window (containing a cwgraph) it gets painted once in the correct location and again offest about 50 pixels away and the old original location doesn't get invalided properly.
The only workaround I've found is to contain the cwgraph in a panel or groupbox and the problem seems to go away entirely.Do you only see this problem with the graph, or do you see it with other Measurement Studio controls as well? Do you have any other ActiveX control on an MDI child and if so, what is the behavior of those controls? Could you please post a small test project that reproduces the problem? Thanks.
- Elton
Maybe you are looking for
-
Oracle 10g installation error in WINDOWS7
Hi, When am trying to install 10g in my PC, I am getting following error. Abnormal program termination. An internal error has occured. Please provide the following files to oracle support" "Unknown" "Unknown" "Unknown" Please help me out on this. Tel
-
When I use network preferences to connect wirelessly to my wifi home network and enter the correct password that works on my iPad and other computers, I keep getting the message that I entered an invalid password. I have checked my keychain and made
-
Movies flash problem - Internet Explorer 11 (Windows 8.1 Preview)
Hi. I've got a problem with a flash content in IE v. 11 on Windows 8.1 preview. I'm unable to watch any movies requires flash (ex. movies on starwars.com or the movie on the Adobe test page) neither on Metro mode nor desktop mode. Hope u'll help me f
-
I don't know where to turn or who to ask
Hello Guys. I am new here and not sure what the protocol is so bare with me. I have recently some across a dilemma and then a discovery. Back story as quick as possible if i can. I have a burning question if anyone has the answer. I have been stuck f
-
Pre acting up after updating to 1.4
Updated to webOs 1.4 last night but froze during the process, after restarting it and went thru with the update went to the camera icon to try it out but didn't do nothing but a blank screen, went to my music and wouldn't play nothing, also when I ge