Bar graph for force control task

Hello,
I am currently conducting an experiment during which the subject is asked to produce a given target level of grip force using a hand-held dynamometer and to maintain that target force level for a given amount of time.
I want to display a visual feedback regarding this task to the subject. Specifically, I want to show the subject the target force level that (s)he needs to produce and the actual, real-time force level that (s)he is producing. I created a VI in which I do this using a waveform graph which displays two horizontal lines as a function of time, namely a green line for the target force level and a blue line for the real-time force level. The task thus consists in putting the blue line on the green line and maintaining it at that level for a given amount of time.
The reason why I am posting this message is that I would like the visual feedback display to show not two horizontal lines that the subject needs to match, but a vertical bar that represents the real-time force level, and a line that represents the target force level. The height of the vertical bar would vary with the real-time force that the subject is producing, and the task would be to raise the vertical bar to the target force level and maintain it at that height for a given amount of time.
Is there a function that I can use for the display that I want (I notably tried the Vertical Pointer Slide, Tank, and Thermometer functions, but none of them seems to fit my needs..?)? Or would anyone have an idea about how to do this?
Cheers,
Ech

Hi Ech,
I made a little example program. It doesn't do exactly what you want to do, but I think that the format of the graph is how you want it. The thing is, it makes a difference which order you input the arrays. If you look at the top bundle, I've crossed wires to wire it up in order to get the x-value on top. It will always take that first array as the x-axis.
Hope that helps!
Attachments:
bar_graph.vi ‏13 KB

Similar Messages

  • Using stored parameter from data control class with stacked bar-graph

    Hi folks,
    I'm relatively new to ADF & EJB so I want to apologise in advance if this question seems rudimentary to many of you.
    Edit:  I should have mentioned that I'm using JDeveloper 11.1.1.5
    I'm having a hard time determining how to retrieve the value from a variable to be assigned to a property of the bar graph I'm trying to display on my JSF page.
    I have tried to briefly summarise the logic below for reference.
    I have a data control class (ActivityChart) that includes a method "getActivityDetail" returns a List of custom Objects (ActivityDTO) that are the underlying data for my bar graph.
    public class ActivityChart {
        private Double axisScale;
        public ActivityChart() {
            super();
            axisScale = 0.0;
        public List<ActivityDTO> getActivityDetail(List<String> businessUnits) {
            List<ActivityDTO> returnNewList = new ArrayList<ActivityDTO>();
            List<TransactionDTO> dataList = new ArrayList<TransactionDTO>();
            TransactionSessionBean transBean = lookupTransactionSessionBean();
            if (businessUnits != null && !businessUnits.isEmpty()){
                dataList = transBean.getActivityData(SystemUtil.getCurrentUser(), businessUnits);           
                returnNewList = processTransactions(dataList);
                axisScale = calcAxisScale(returnNewList);
            return returnNewList;
    ...The TransactionDTO object is basically a mirror of the entity object to store the fields from the queried db transactions.
    The ActivityDTO object contains a String value (x-axis label) and 3 Double values for the values required for the bar graph.
    What I'm trying to do is dynamically set the scale for the 2 y-axes (I'm using a dual-axis stacked bar graph) because the auto calculated values are not aligned.
    Right now I've got the two relevant elements of the bar graph hard-coded with a specific axis value:
    <dvt:y1Axis axisMaxAutoScaled="false" axisMaxValue="100.0"/>
    <dvt:y2Axis axisMaxAutoScaled="false" axisMaxValue="100.0"/>.
    The value I want to use for the Y-axis is calculated and stored in the "axisScale" variable in the above class.
    Really at a loss of how to move forward from here.
    Would very much appreciate any guidance/direction offered.
    Thanks,
    Karim
    Edited by: 973742 on Nov 28, 2012 8:12 AM

    Looks like I may have found the answer!
    I had to set up the variable in the bindings for the page and then reference the variable from the binding and add the property inputValue.
    ie. value="#{bindings.axisScale.inputValue}"

  • ELOCATION_MERCATOR.WORLD_MAP errors for pie/bar graph theme below zoom 5

    Hi,
    I am trying to create a map using ADF DVT map component in my jspx page. I am using 'elocation_mercator.world_map'. I am creating a pie graph theme over the base world map. For some reason whenever I zoom below 5, i get following javascript error
    [MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (<?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:null</oms_error>)
    The Pie graphs displays fine at or above zoom level 5. I tried the same thing using my local map viewer instance which has mvdemo.demo_map as the base map. The pie graph displays fine at all zoom levels using my local map. Can anybody tell me what may be the problem when I use the elocator world_map. I can't even look at the logs as it's a hosted service.

    Here are the steps to reproduce the problem
    1) Create a jspx page.
    2) From the component palette on the right hand side, select ADF Data Visualizations and then click on Map in the Geographical Map section. This will open an ADF Map configuration window.
    3) Create a new Map Configuration by providing an id and a URL connection. If you have not created a URL Connection to elocation service, create a new connection to "http://elocation.oracle.com/mapviewer" and select that connection.
    4) You will see data source as ELOCATION_MERCATOR and Base map as WORLD_MAP selected. Enter startingY="38.648911" startingX="-98.349609" , select mapZoom="5" and Click on OK.
    5) Now create an entity object and a view object based on the STATES table in the MVDEMO database and add it to an application module.
    6) Refresh the application module data control. You should a new StatesView1 data control.
    7) Drop it on the map and select Bar graph theme. This will open a Bar Graph theme configuration window for the Map.
    8) In the Name select MAP_STATES_ABBRV. In the location column select STATE_ABRV.
    9) In the Data Location Select Location as StateAbrv and Location Label as State.
    10) Enter Series Attribute as Totpop and Label as Total Population. Enter series attribute as Female and Label as Female Population. Click OK.
    11) Now Run this page.
    12) The page runs fine displaying the Bar chart. Now zoom out. You will get error
    '[MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (<?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:null</oms_error>)'
    When you say that we should use elocation for map tiles not for FOI rendering, does that mean that I should not use the themes provided by elocation. When I enter the base URL to a mapviewer instance in my map client, the base map and the themes are displayed from the database used by the mapviewer instance. So, how can I use my own mapviewer for FOI rendering? Can you please explain a little more. Thanks.

  • Urgent!!!!Add a Horizontal Scroll Bar for Table Control

    Hi Experts,
    I want to have a Horizontal Scroll Bar on my Table control.
    I tried with few properties for the Table UI Element but not able to solve it.
    If any one who had already done this please help me out.
    Thanks in advance..
    Regards, Kishore K

    HI Koen,
    Thanks for early Reply.
    When I use this I get
    Page Down ( ->!!, Arrown with lines pointing Down)
    Page UP
    Page Top    ( ->, Arrown with lines pointing Top)
    Page Down ( ->, Arrown with lines pointing Down)
    But I need only Page top and Page down for this Table UI .
    I think my question is clear enough.
    Please let me know this also.
    Thanks & Regards,
    Kishore K

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • Solution for Messed (Error) Bar Graph of iPod Session in iTunes

    I have encounter the error of iPod Session Bar Graph in iTunes like this:
    http://img160.imageshack.us/img160/4527/capacitybarha6.png
    and I find out the solution that can fix this problem!
    Go to DEVICES > Your iPod > Music > Right click a group of file, and then [Get Info] > Options > Tick the box of [Gapless Album] and choose [Yes], wait for awhile for iTunes processing, and the Bar Graph restore to ordinary status!

    Sounds like it has a drive collision with another device, would you happen to have an external drive or are you on a network, or do you have a printer with memory slots?
    http://docs.info.apple.com/article.html?artnum=93499

  • Regarding control graphs for external values

    I have a set of values for a month for a particular material.
          day             qty.
    ie  20080801      10
        20080802       15
        20080830       30.
    I used GFW_PRES_SHOW
    function module to plot values.
    The control limit for the material is 30. I want to encorporate this value also in the graph and show the deviation.
    Plz help me with some other function module
    for control limit graph for external values.

    hi,
    check this function module.
    GFW_PRES_SHOW_MULT.
    also use these programs.
    DEMO_GFW_PRES_SHOW_MULT
    DEMO_GFW_SHOW1.

  • Dual Y stacked bar graph - how to force both y scales to be the same size

    Hi,
    I use dual y stacked bar graph to show values side by side. Since one value is smaller, Y scales have different max values. How can I fore them to be the same?

    Hello,
    OK. This means you need automatic scale for the y axis.
    BTW: Why do you need dual y axis if they should have the same scale?
    The common use case for dual y axis is to show two series with different units and/or scale.
    regards
    Peter

  • TabularData for DVT Stack bar Graph

    Dear All,
    I used tabulardata to supply value fro my stack bar graph component and I used the code below
    public class Stackbar
      public List getTabularData()
        ArrayList list = new ArrayList();
        String[] rowLabels = new String[]
          { "Dry Goods", "Wet Goods", "Misc Goods" };
        String[] colLabels = new String[]
          { "May 2009", "June 2009", "July 2009" };
        Double[][] values = new Double[][]
            { 50000d, 122000d, 175000d },
            { 90000d, 110000d, 150000d },
            { 65000d, 50000d, 95000d }};
        for (int c = 0; c < colLabels.length; c++)
          for (int r = 0; r < rowLabels.length; r++)
            list.add(new Object[]
                { colLabels[c], rowLabels[r], new Double(values[r][c]) });
        return list;
    }JSF is simple
    <dvt:barGraph id="barGraph1" subType="BAR_VERT_STACK2Y" shortDesc="Sample bar"
                              tabularData="#{viewScope.stackBarBean.tabularData}">
                  <dvt:background>
                    <dvt:specialEffects/>
                  </dvt:background>
                  <dvt:graphPlotArea/>
                  <dvt:seriesSet>
                    <dvt:series/>
                  </dvt:seriesSet>
                  <dvt:o1Axis/>
                  <dvt:y1Axis/>
                  <dvt:y2Axis/>
                  <dvt:legendArea automaticPlacement="AP_NEVER"/>
                </dvt:barGraph>But I am not able to have a stack bar graph and the data isnt stacking..
    Kindly see the image here http://imageshack.us/photo/my-images/831/stackbar.jpg/
    My playground code can be downloaded here...
    http://code.google.com/p/my-dev-projects/downloads/detail?name=PlayGround.zip&can=2&q=
    How do I formulate the tabular data values correctly so that I could achive the correct stack bar graph component
    Thanks.
    JDEV 11.1.1.6

    Well...found the solution myself...
    Kindly disregard please..thanks

  • How do I plot bar graph using MStudio.NE​T for VB

    I can not find the FillToBase property in waveformplot object using MStudio 7.0 for VB.NET. How can I plot the bar graph like that in Mstudio 6.0.

    The Measurement Studio .NET WaveformPlot does not currently have an equivalent for CWPlot's FillToBase property. In the meantime, though, you can use the WaveformPlot's custom drawing services to emulate this functionality. For example, if you dropped a new WaveformGraph on a form, you could copy and paste the following code to draw bar graphs on the WaveformPlot:
    Private Sub OnBeforeDrawPlot(ByVal sender As Object, ByVal e As BeforeDrawXYPlotEventArgs) Handles WaveformPlot1.BeforeDraw
    DrawBarGraph(e, 0, Color.BurlyWood, Color.Firebrick)
    End Sub
    Shared Sub DrawBarGraph(ByVal e As BeforeDrawXYPlotEventArgs, ByVal baseYValue As Double, ByVal outlineColor As Color, ByVal fillColor As Color)
    Dim plot As XYPlot = e.Plot
    Dim g As Graphics = e.Graphics
    If plot.HistoryCount > 0 Then
    ' Clip the data to just what will be drawn with the current axis ranges.
    Dim xData() As Double, yData() As Double
    plot.ClipData(xData, yData)
    ' Calculate the screen coordinates of a base y value and the clipped data.
    Dim baseY As Double = CType(plot.MapPoint(e.Bounds, 0, baseYValue).Y, Double)
    Dim points As PointF() = plot.MapData(e.Bounds, xData, yData, False)
    Dim outlinePen As Pen = Nothing
    Dim fillBrush As Brush = Nothing
    Try
    outlinePen = New Pen(outlineColor)
    fillBrush = New SolidBrush(fillColor)
    ' Iterate through the mapped points and calculate the bar, fill it, and outline it
    For i As Integer = 0 To points.Length - 2
    Dim currentPoint As PointF = points(i)
    Dim nextPoint As PointF = points(i + 1)
    Dim barX As Single = currentPoint.X
    Dim barY As Single = currentPoint.Y
    Dim barWidth As Single = nextPoint.X - currentPoint.X
    Dim barHeight As Single = baseY - currentPoint.Y
    g.FillRectangle(fillBrush, barX, barY, barWidth, barHeight)
    g.DrawRectangle(outlinePen, barX, barY, barWidth, barHeight)
    Next
    Finally
    If Not outlinePen Is Nothing Then
    outlinePen.Dispose()
    outlinePen = Nothing
    End If
    If Not fillBrush Is Nothing Then
    fillBrush.Dispose()
    fillBrush = Nothing
    End If
    End Try
    ' Cancel any further drawing since we completely handled the drawing of the plot.
    e.Cancel = True
    End If
    End Sub
    Hope this helps.
    - Elton

  • Implementing Detach(as in Panel Collection)like functionality for Bar Graph

    I have created a jsff containing horizontal stacked bar graph through collection model.I have not used any VOs ,but I have created an ArrayList in which I send the values to be shown in the graph by fetching data through jdbc call.
    Now I want the graph to be displayed in a pop up through a link in the jsff so that the data can be viewed in larger screen area,similar to the funnctionality of 'detach' in the panel collection.
    I am using JDev 11.1.1.6 and WLS 10.3.6
    Please suggest a mechanism to achieve this.Any help on this issue is appreciated.

    Hi Saif Kamaal
    The Use Case :
    i. When the page is initially rendered , a bar graph will be shown in a region.
    ii. That region will contain a button ,which on clicking willl bring the graph in the entire page as popup (Similar to the detach functionality in Panel collection,where a table is rendered and clicking on detach brings the table on entire screen)
    I have developed the graph as jsff and that is added to a jspx page and I need that button,if possible, in the jsff itself.

  • Dynamic force control using linear servo actuator + load cell

    Hello,
    I am designing a test fixture which will allow us to test the performance of actuators we install in our products. I need to apply a constant load to the actuator while it is extending/retracting. I would like to be able to use a linear servo actuator and a load cell on the same axis as the UUT to provide and monitor the load. The actuator under test does not travel at high speeds, its max speed is approximately 1in./sec.
    I need to be able to maintain a constant load while the actuator is moving. Therefore  I'll need some kind of closed loop system to maintain a velocity such that the load being reported from the load cell is equal to the expected load as the actuator is moving.
    I am trying to figure out how to best implement this in a cost effective and time-saving way. I have not purchased any hardware at the moment so am open to suggestions. We do have LabView 2009 with all the toolkits. Would it be best to implement this using a motion controller card or would I be able to get good results using a standard DAQ?
    Message Edited by fnaeem on 02-05-2010 05:58 PM

    As you have stated correctly, you will need a deterministic closed loop system to accomplish this task. The most cost efficient while reliable solution for this purpose is a motion control board like the PCI-7352. This board provides quadrature encoder inputs for positioning tasks and analog inputs for any other type of control. Torque/force control is a very typical task for this board and it provides a simple API and useful configuration tools.
    If cost savings are a primary goal, you could also use a PCI-7342, but for your application I would recommend the PCI-7352, as the PCI-7342 provides only 12-bit ADCs, while the PCI-7352 provides 16-bit ADCs, resulting in a much better resolution of your force feedback signal.
    I hope that helps,
    Jochen Klier
    National Instruments

  • Bar graph click event not getting triggered

    i specified methods in bean for bar graph's clickListener and clickAction.
    graph data is getting rendered properly.
    graph is based on SQL based read only VO which uses bind variables as well which are set on a button click to generate report
    but on clicking on graph, control is not going to bean method which handles clickEvent
    i have wasted lots of time for this
    initially bean scope was backing, i tried with request and session as well nothing is getting control to bean
    jdev 11 1 1 5

    Hi,
    +"i have wasted lots of time for this ..."+
    And you wasted more time by not giving enough information about the graph configuration and the click listener signature. Note that we need a way to reproduce a behavior to give you some hints.
    Frank

  • Graph for the selected Row

    I have a table with filed names are
    - WO_NO
    - Bill_No
    - Purchase_Value
    - Sale_Value
    My VO is 'where WO_NO = :BVar_WO_NO'
    I use Execute with parameter form as Input
    I drag and Drop the VO as ADF Form with navigation controls.
    Now When i Give WO_no, it is displayed the first bill_no value and using nvaigation buttons, i am see all bill_no in the selected WO_NO.
    I have created bar Graph selecting purchase_value and sale_value using the same VO.
    I want to display the graph for the current dispayed WO_NO & Bill_NO.
    The graph now default displayed all the Bill_no for the WO_No. I want graph to display for the (WO_NO & Bill_no ). how do we link the graph for WO_No and Bill_NO ?.

    hi,
    The given link is to display the selected row in different color.
    But i do not want to display all the data in the graph. I want only the displayed record in the graph.
    How do we do it ?.

  • Processing data from a bar graph

    Hi,
    I use JDeveloper 11.1.1.6.0
    My VO contains 6 attributes. Two of them are displayed in a bar graph. I have created ClickListener bean, where I'm able to get X,Y values from selected bar (using methods getValue and getGroupAttributes from DataComponentHandle class).
    Is it somehow possible to get also values from the rest 4 attributes, which are not displayed in the graph? I need to process these values programatically in my backing bean.
    One way is to make a db query from my backing bean. Is there any other possible solution, without db access, just using data from ClickEvent?
    Thanks a lot for ideas.
    Daniel

    I have solved this task in folowing way:
    I have add ADF read only form to my page (which I need anyway). The form displays data selected in the graph (using another VO, which is linked to graph VO). Command button calls my managed bean, which handles the data via the bindings executables (view iterators).

Maybe you are looking for

  • Getting error in portal while accessing dms repostitory

    Hi Experts,   Iam getting the below  error in portal while accessing the dms repository.  the repository was fine status is in green color   but still getting the error while iam viewing it from content administration > kmcontent> my repository name

  • Files needed to make Flash site live

    My Flash site is now complete. At this point what are my next steps in making my Flash site live (i.e., uploading to a server). What are the necessary files that I need and do I need to use Dreamweaver, and if so what is the process to make my site l

  • How to access generic imported parameter

    Hi friends, If i pass internal table in importing parameter with <b>type</b> index table in method, how can i access that internal table in my method or how can i loop through it's each row. because that is generically defined internal table, it has

  • GB and Griffin Guitar Cable

    Please correct me if I'm wrong but after reading these forums I've come to the conclusion that the Griffin Guitar cable is falsely advertised. It is NOT the only thing you need to connect your guitar to GB. I've tried it and there is no signal in the

  • Rollback the single employee Payroll in 12.1.3

    Dear Guru's, We Ran the payroll for terminated employee. (Termination date is 1-May-2014.) We process the payroll on that month (31-May-2014) with including the terminated employee and posted all records in GL. We want to process all the settlement w