Complicated but interesting.....Need some thoughts


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Complicated but interesting.....Need some thoughts

    Is it really that complicated as I think it is. May be C is better for this kind of task. Has anyone dealt with charts like this one?
    Once I increase the resolution of radius to 0.1 increments and extension to also 0.1 increments I will get a lot of values for the table. Even if I think of saving values of weight for every row of radius in 0.1 increments, my table could easily run into 100's of values or could be 1000's for bigger tables than the attached one. I believe there has to be a different way of dealing with tables like this one.
    .
    .
    .
    .
    .Anyone?


  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: Complicated but interesting.....Need some thoughts

    Megahertz,

    I'm not sure I fully understand what you are trying to do, but there is a trick to store a 3-dimensional funtion in arrays. In other words, having an array with two variables in PBP. For example, taking data from your table,

    Code:
    Radius        var byte
    Extension    var byte
    Weight       var byte[100]
    
    Radius = 2 
    Extension = 5
    Weight[(10 * Radius) + Extension] = 11   'Assuming Extension < 10
    To make it work with decimals you might need to multiply those numbers by 10. Again, I'm not sure if what you want to do is something like this.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  3. #3
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: Complicated but interesting.....Need some thoughts

    To explain my problem in detail, here is the actual chart. Now I have 3 more charts like this as every chart belongs to one hook of the crane and there are 4 hooks in total. Name:  Chart.jpg
Views: 4163
Size:  71.8 KB

    As you can see above the radius ranges from 2 to 16. I have break it down to 0.1 increments for the sake of accuracy. So when I reach from 2 to 3, I already will have 10 values, then another 10 and in total around 140 values. Similar concept goes for the Boom length in meters @ 0.1 increments.

    Now I can get the reading of boom length and I can get my Radius value. Now based on these two values, I need to pick the value of the weight from this chart.

    Since I will have so many values, I am even doubting now if I can actually do it using an 877. I will go through your answers in detail later and see if it will be possible. Thanks for the replies.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts