Difficulti​es in building a graph - variables dimension conflict.

Hi,
I am trying to display a reading from a load cell in a graph using the example vi I've attached below. I am working with Labview 7 and Field Point 2000. This example vi is perfect for my needs as I can vary the acquisition time on the x axis and the number of datapoints. The thing here is that the FieldPoint "Read" function is a 2 dimension variable and the Delay Time is a 1 dimension. With that cofiguration I am not able to bundle them in a graph.
I don't know how to solve this problem or if it is possible to transform my double dimension variable in one dimension. Could someone please help me with this problem. I am not very proficient with Labview yet.
Thanks,
Adriana
Attachments:
graph_vi.JPG ‏34 KB

Hi Adriana !
I do not use FieldPoint, but I think that your Read node generates a 1D array either because it's reading several channels at a time, or because it's reading a series of values, over a finite time delay (I guess it's case 1)
Case 1 : insert an "index array" node (second function in the array sub-palette) to extract the right channel data, immediately after the read node.
Case 2 : average the readings
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        

Similar Messages

  • How to create a array with variables dimensions?

    I try to create a array like that:
    Object[][] data;
    data = new Object[] [];
    But that's doesn't work!
    Apparently I must specify the dimension of my array
    So I have done like that :
    Object[][] data;
    data = new Object[3] [3];
    And that work!
    But the problem is when I need to add extra elements to my array.
    If I write :
    data[4][1] = "123";
    I have the error message :
    java.lang.ArrayIndexOutOfBoundsException
    So, how can I defined a array with variables dimensions OR how can I add a dimension to a array?

    if you have:
    Object[][] data;
    data = new Object[3] [3];you end yo getting ArrayIndexOutOfBoundException if you try to point to some other Indexes. You can increase the size by doing new:
    Object[][] data;
    data = new Object[4] [3];and then copy the old Arrays to this one... this is heavy.
    Other thing to consider then is using some other datastructure, such as Vector, which grows along you add elements to it.
    P_trg

  • Problems building a graph using sql SUM

    Hello !
    i'm curently having issues to build a particular graph :
    First, i have a database (moves) which contains 2 columns (timestamp DATETIME, dist NUMERIC), i have no problems to display a graph with these values (even using a time range such 'now','-1 hours', etc.).
    But i'd like to build a graph with for example a 2 hours range which gonna display the sum of the value 'dist' every 30 seconds. So for example, if i have 2 'dist' values (3 and 4) at 0min 30sec, the graph will display 7 and the next value will be the sum of
    the next 30 secondes dist values.
    I tried this :
    curs.execute("SELECT timestamp,SUM(dist) AS dist30 FROM moves WHERE timestamp>datetime('now','-30secondes')"
    curs.execute("SELECT timestamp,dist30 FROM moves WHERE timestamp>datetime('now','-1 hours')"
    But it looks like the column dist30 is not created, and i think this is not gonna work if i want to change the 1 hour range...
    I would like a better "algorythme", the table is filled in an other program, should i directly create a 3  columns table and SUM the dist in dist30 directly ?
    Thanks for your advice !

    Hi Subby,
    Regarding your description, are you trying to rollup the dist column by every 30 seconds in a given 2 hours range? If my understanding I correct, you may reference the below sample. As you didn't post any detail about your function datetime(after the where
    clause), so the sample is just in a usual way.
    CREATE TABLE moves(timestamp DATETIME, dist NUMERIC)
    INSERT INTO moves VALUES('2015-02-13 14:20:01',1)
    INSERT INTO moves VALUES('2015-02-13 14:20:17',2)
    INSERT INTO moves VALUES('2015-02-13 14:20:29',5)
    INSERT INTO moves VALUES('2015-02-13 14:22:37',2)
    INSERT INTO moves VALUES('2015-02-13 14:22:56',5)
    INSERT INTO moves VALUES('2015-02-13 14:27:17',2)
    SELECT timestamp,SUM(dist) AS dist30 FROM(
    SELECT DATEADD(SECOND,DATEPART(SECOND,timestamp)%30*-1,timestamp) AS timestamp,dist FROM moves) AS T --rollup by every 30 seconds
    WHERE timestamp BETWEEN '2015-02-13 13:00:00' AND '2015-02-13 15:00:00' --two hour range
    GROUP BY timestamp
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Building xy graphs

    I'm trying to build xy graphs with multiple plots in a loop. In the attach, if I cluster each element and build an array , the plot looks fine (XY Graph). If I try to do it in a loop, I get extra points added (XY Graph 2). All the xy sets dont have the same number of elements, and the loop version pads with 0s to make the inner arrays square. This doesn't happen when I do it manually. How can I make this work in a loop?
    TIA,
    Bill F
    Attachments:
    xy plot test2.vi ‏73 KB

    HI:
             我想在XYgraph 中同时显示多条曲线,具体情况如下:(参考附件)
              当外循环循环一次时,内循环执行完得到一条独立曲线
              当................第二次时,....................又得到.....​...................
              依次得到许多独立的曲线,同时显示在XYgraph中,同一坐标下。
              在附件中得到的曲线其实是一条曲线,都是首尾相接,因为它是在整个循环执行完后得到的。我用很多办法试,总得不到​独立的曲线簇,第一条的首和第二条的尾相连,依次类推,其实还是一条曲线。我用的LABV7.0, 请高手指导。
                                                      ​                                                  ​                                                  ​                                      谢谢!
    Attachments:
    Untitled0.vi ‏66 KB

  • No Signal on my Custom "Build XY Graph" VI

    I am trying to display a plot of signals with the "Build XY Graph" VI. I have wired a set of signals into the y input and a indication of time on the x-axis. However, for some reason nothin appears on my graph. Any suggestions? (Take a look at the attatched example for further details)
    Matt
    Matt
    Attachments:
    Calorimeter.vi ‏337 KB

    Jeremy,
    Thank you for the help. I built a library file for this VI and its subVIs. Also, I had previously probed the two signals coming in to the "Build XY Graph" VI and was suprised to see that they were carrying the correct value. This is why I was confused as to why they were not being outputed to the graph. Can you think of any reason from past experience? As far as the complexity of my program, I know that the signals are working correctly up until the xy graph VI so I am fairly sure that the problem is with that and not at some other point in the program.
    Matt
    Attachments:
    Calorimeter.llb ‏296 KB

  • Need to convert a 2D array into two 1D arrays to be fed into Build XY Graph

    Hi Need to convert the 2D Output of a sub vI for display on XY Graph. Help!!! I cant find an array function that takes a 2D input and un-builds to 2 * 1D arrays

    Hi Dave,
    if it is working than that's it.
    I'm using the german version of LabView and it is sometimes difficult to translate the names ;-)
    Stephan

  • How to build labview global variable into dll?And how to use it in vc++ program?

    Hi!
       I want to build labview application into dll and use vc++ to call it.The labview program is a little complex,for it has many interface to vc++ and has while loop in it.When I use vc++ to call it,I must use vc++ to do other things.That is to say,vc++ creates a new thread to provide for the labview dll to run.the vc main thread goes on to other things.But the vc++ main thread must communicate with the labview dll by setting its inputs' parameters and get the results of running labview dll.Can you advise me how to realize it?
       I think global variable of labview could be useful when realizing the communication betweeb vc thread and labview dll.So I want to ask whether the labview global variable could also be built into dll and use it.Could you please tell me how to realize my idea?
       Thank you!

    [email protected] wrote:
    Hi!
    I want to build labview application into dll and use vc++ to call
    it.The labview program is a little complex,for it has many interface to
    vc++ and has while loop in it.When I use vc++ to call it,I must use
    vc++ to do other things.That is to say,vc++ creates a new thread to
    provide for the labview dll to run.the vc main thread goes on to other
    things.But the vc++ main thread must communicate with the labview dll
    by setting its inputs' parameters and get the results of running
    labview dll.Can you advise me how to realize it?
       I
    think global variable of labview could be useful when realizing the
    communication betweeb vc thread and labview dll.So I want to ask
    whether the labview global variable could also be built into dll and
    use it.Could you please tell me how to realize my idea?
       Thank you!
    You
    can't access LabVIEW globals directly from a caller to the LabVIEW DLL.
    However there is no problem in providing specific accessor VI functions
    to that global and export them as additional functions from the DLL.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • A bug in the warehouse builder regarding mappings of dimensions

    Hi there
    I do not know if this is the right place to submit a possible bug. Anyways - here goes.
    Warehouse builder client: 10.1.0.2.0
    Warehouse builder repository: 10.1.0.1.0
    I'm creating a dimension, having one level attributes property as a varchar2(30). Thus it has a length of 30. Now, later on I decide this was an error. I update the property to a number, deploys, and reconcile the dimension inbound in the mapping. From now on, it will give an error, since it remembers the length. And a number has a size, not a length. If I remove the dimension from the mapping, and inserts it again, the error still occurs.
    By the way, I am able to reproduce this.
    Anyone who has experienced this, and can blame the stupid user (me) or classify this as a bug?
    Yours
    Kim Andersen

    Hi Igor
    The "error" is actually a "warning":
    Warning: VLD-1004: Column length of ASD_ASDASD is longer than the target column length.
    where ASD_ASDASD is the dimension property, which I altered. It is annoying, though, to have warnings on the list, that aren't needed. And I also spent considerable time thinking that was the error in a mapping, whereas it was a stupid mistake made by me somewhere else :)
    If it's a registered bug, do I get to win some branded Oracle candy?! :)
    Yours
    Kim

  • How can I build a ragged Entity dimension with ERPi

    All,
    I am trying to build an Entity dimension for Planning with ERP Integrator v11.1.2.1, the source is EBS 12.
    In the source system I am building from there is a single parent entity with six child entities, there are then 8 hierarchies of cost centres with no common parent, these cost centre groups define different business areas within only one of the entities, the cost centres for the remaining entities have not yet been defined.
    In the ERP Setup I have specified that the Entity dimension should be built from the Entity and Cost Centre segments and I have created metadata mappings for each parent entity and cost centre ancestor pair (eight in all), the Enitiy segment is traversed first followed by the Cost Centre; all are defined as Base Hierarchies. Each pair has a separate hiearchy name, I tried to define only one of these as a base hierarchy and reuse the name for each pair but this resulted in an error:
    Run Time Error: The hierarchy 'Total Entity' cannot share the parent member 'Total Entity' with the hierarchy 'Total Entity'
    At the moment I get a hierarchy where all cost centres are associated with all child entities.
    Can anyone advise what needs to be done to achieve the following:
    - Get the dimension to build with the cost centres as children of the entities to which they relate.
    - Build the entity dimenion beneath a single common parent e.g. 'Total Entity' rather than eight separate parents (one for each entity/cost centre mapping).
    Thanks

    Gavin,
    i have the same issue, can you please share, how you were able to solve this.

  • Build XY Graph

    I have problem with making XY Graph user friendly. In my case loop execution time will be variable, so I cannot use waveform chart because timing gets off - look at the picture of vi.
    How I can make XY Graph to start from the leftmost position, not use autoscale and use x axis scrollbar?
    Thanks,
    Zoran
    Solved!
    Go to Solution.
    Attachments:
    time scale.vi ‏29 KB
    picture of vi.JPG ‏86 KB

    All you axes are set to autoscale, so you shoud turn that off.
    It is probably a bad idea to grow infinite datasets inside the "built xy graph express VI", so a more manageable solution would be to do your own fixed size history buffer. Use an action engine, for example.
    Anyway, in order for the x scrollbar to be visible, the data x-range needs to be wider than the axis x-range. You could just update the max and min according to the current time, e.g. as follows. All this needs more work, for example you don't want to update the range settings while the user is scrolling.
    Also:
    You also don't need the local variable, simply set the stop button th latch action.
    Convert the time to DBL instead of EXT. EXT does not do anything useful in this case.
    Message Edited by altenbach on 01-29-2009 01:59 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    xychartscaling.PNG ‏13 KB

  • How to call Graphic builder's Graph in 9i Reports

    Hi everybody,
    I have a graph in graphic builder.I want to print this graph on report.
    I need your help please.
    Asif

    Hello,
    In http://www.oracle.com/technology/products/reports/htdocs/faq/graph_faq_with_style.html#q102
    Can I still run my existing Oracle Reports Developer 6i reports containing Oracle Graphics charts in Oracle Reports?
    As noted in the Oracle Reports Statement of Direction, Oracle Graphics is no longer shipped with Oracle Reports. However, as part of the migration path, you can still run Oracle Graphics charts in Oracle Reports if you install the Oracle Graphics 6i engine in a separate Oracle Home. You should only maintain Oracle Graphics 6i as a temporary measure while you redesign your charts using the new Graph Wizard. For further details on how to configure Oracle to use Oracle Graphics 6i, please see the Graphics Migration section in the Oracle9i Application Server Migration from Oracle9iAS Release 1 (1.0.2.2.x) to Release 2 (9.0.2) manual.
    Regards

  • Vision builder AI shared variable sudenly damaged

    Dear Ni users.
    Description of aplication.
    We use NI vision builder AI together with siemens WINCC software. We use shared variables acros NI shared variable engine, so read and write some parameters over WiNCC.
    The  aplication witch was working for more then 1 year, and sudenly we have noticed that we cannot se NOT acces shared varables in WINCC.
    After examine what can be wrong we faund that we cannot so no tags from NI shared variable engine, so we think that somehow something crashed?
    Do you have any similar cases in future. We cannot acces into any shared variables accros NI distributed system manager?
    SEE THE ATACHMENT
    Under localhost the Vision Builder  is mising, like in this white paper from Ni.
    https://decibel.ni.com/content/docs/DOC-18647
    Thank you for help
    Attachments:
    Zajeta slika.JPG ‏34 KB

    Hi Bostjan_1234,
    What is the hardware involved in this setup? Do you use smart cameras?
    Have you tried the standard steps: restarting the system, defining a new tag/variable to see if you can see it in Distributed System Manager?
    I am looking forward wih great interests in your reply.
    Best regards,
    IR

  • New variable dimension for BW universe cause measure #unavailable

    hi expeert
    i try to create a new variable, and select dimension type and map to existing BW dimension. Then i drag new variable into table and this cause measure display #unvailable.
    how to resolve this issue?

    Hi Eric,
    I did you try to create a new report in the document and to create a new table like the one having the error?
    I experienced a couple of time the same issue and for me it worked.
    Regards.
    Roberto.

  • Outline Build-Move Members in Dimension Properties is grayed out

    Hi, I'm very new with EIS and created a sample meta outline. Everytime I add a member name below a Dimension in the meta outline, EIS does not allow me to check "Move Members" in the "Duplicate Member Name" area from the Outline Build tab. When I delete the member names just added to the Dimension, the "Move Members" would be available to be checked (not grayed out).
    Any help would be great, thank you!

    Hi there
    I believe the Fit to Stage button only becomes available if the image is larger than the stage itself. If you insert an image that is smaller than the stage, it will not enable and maximize the image to fill the stage area if that's what you were hoping to do.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Difficulties using Flex Builder plugin version

    The strangest thing just happened. I want to look into Zend, so after reading a bit on the web I decided to uninstall Flex Builder 3 standalone version and install Eclipse 3.4 and then install the plugin version of Flex Builder 3.
    But after I installed when I click on the Run button I get an error message:
    'Launching cmd' has encountered a problem.
    Variable references non-existant resource :
    ${workspace_loc:/Misc/src}
    I assume this is because users need prior experience with using Eclipse, but I don't understand why the Adobe plugin version of Flex Builder cannot be such that it just works out of the box.
    I have to say I am blown away by this and will immediately uninstall the plug-in version and re-install the standalone.
    Any hints on what went wrong? I may try this again sometime but I want to get some work done tonight and I don't have time for this. Really amazed.

    Hi Greg,
    I am using the Flex Builder plug-in and I don't remember ever running over this. You said that you have uninstalled Flex Builder before installing Eclipse. I'm not sure ( this is only a guess ) but what if certain setting that you had in Flex Builder remained on your system ( like the path to your workspace that I think got deleted when you uninstalled it ) and when you installed Eclipse, then it was trying to access the information previously stored by Flex Builder.
    I'm not sure if that's what the Error says but you might want to check if you workspace still exists and if it does, then does it contain a folder called "Misk/src". I really don't remember running over this error, the Plug-in worked just fine for me.
    With best regards,
    Barna Biro

Maybe you are looking for

  • Error Message Burning photo's on to CD

    I am a new user of Apple Macs and I'm still learning how to use everything. I have my photo's on my computer saved in iPhoto '05, I have been editing away for the last few months now I want to back them up and also put them on CD for other people who

  • Monitor Problem after POST

    hi,   I booted my newly built pc last night for the first time. It booted and made it to post with a good screen view of the bios.I began checking the bios to make any setting like changing from a pci to agp card etc.  After saving the changes and re

  • Missing G/L in sales order

    Dear all, This error occurred when I created sales order. http://lh3.ggpht.com/_9kUvjBH2L9A/TQXMndoUBZI/AAAAAAAABNI/ncrXnKhddRA/IMG_004.jpg I already checked in VKOA but G/L accounts are already defined. I have no clue when looking in the analysis sc

  • Bootcamp Drive not showing on startup -vm fusion still works

    Hi I am having trouble booting into my iMac windows 7 bootcamp partition. It doesn't show up when I hold the alt key down at startup. I also have a fusion installation and that works fine. The windows partition is visible in finder. I know windows 7

  • Firefox cannot load all websites in e10s window. But Firefox can load all websites in e10s window.

    Firefox cannot load all websites in e10s window. But Firefox can load all websites in e10s window. It shows mostly, Tab crashed Well, this is embarrassing. Well, this is embarrassing. We tried to display this Web page, but it's not responding. Tell M