Code Monkey home page Code Monkey logo

Comments (11)

dmroeder avatar dmroeder commented on July 18, 2024
  1. Thanks
  2. I was wondering when someone would notice. Sorry for my immaturity
  3. I have tested multi dimension arrays and they work for me. It appears that the member of the UDT has 2 dimensions, Logix doesn't allow me to do that. Could you send me the UDT you are using? Also, what version of Logix?

edit: v29 maybe?

from pylogix.

brendonparker avatar brendonparker commented on July 18, 2024

See sent attachment for the UDT and the version: Studio 5000 V27

from pylogix.

dmroeder avatar dmroeder commented on July 18, 2024

I must be terrible at this, I don't see an attachment.

from pylogix.

brendonparker avatar brendonparker commented on July 18, 2024

Try this: https://dl.dropboxusercontent.com/u/15576660/UDT_DataStorage.L5X

from pylogix.

dmroeder avatar dmroeder commented on July 18, 2024

Your tag doesn't appear to be multi-dimension. I don't think Logix allows you to even create multi-dimensions as a UDT member. In other words you cannot have a tag like you showed above (MyTag.Data_Storage[0,0]). When you look in your tag database, do you see your tag exactly how you described? If so I'd love to get a copy because I didn't think it was possible. You can declare an instance of a UDT multi-dimensional but you can't have multi-dimensional members.

I see you have two members of your type. DataStorage and DataStorage_Hold. Are you wanting to get values from both members at the same time? In other words you expecting to get "MyTag.DataStorage[0]" and "MyTag.DataStorage_Hold[0]" by attempting to read "MyTag.DataStorage[0,0]"?

from pylogix.

brendonparker avatar brendonparker commented on July 18, 2024

FWIW the tag I am trying to read is BCS4201.Results[0,0]

from pylogix.

dmroeder avatar dmroeder commented on July 18, 2024

Would it be possible to get a copy of the program? If you don't feel comfortable sharing it, could I at least get a copy of it stripped down to just that tag?

from pylogix.

dmroeder avatar dmroeder commented on July 18, 2024

Is there something beyond .Result[0,0]. Maybe like .Result[0,0].DataStorage?

from pylogix.

brendonparker avatar brendonparker commented on July 18, 2024

Thanks for quick replies. I figured it out. It was user error on my part.
Although when I called two different array tags back to back I was getting
an error, so that threw me off. Haven't had time to dig into that yet. Will
let you know if that too is my error :P
On Tue, Nov 22, 2016 at 4:44 PM dmroeder [email protected] wrote:

Is there something beyond .Result[0,0]. Maybe like
.Result[0,0].DataStorage?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA8Xwg3cqVdziHVGd7XNke0v6YEc3Ljuks5rA2JTgaJpZM4K51uM
.

from pylogix.

dmroeder avatar dmroeder commented on July 18, 2024

Yeah no problem, thanks for getting back. If there really is an issue with reading tags back to back, get me some specifics and I'll test it. I do a lot of reading/writing of lots of different types and structures, maybe there is something that I haven't tried yet.

from pylogix.

dmroeder avatar dmroeder commented on July 18, 2024

Since I didn't hear anything back, I'm closing the issue.

from pylogix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.