Jump to content

crelf

Members
  • Posts

    5,759
  • Joined

  • Last visited

  • Days Won

    55

Posts posted by crelf

  1. These controls (trees, mlcb) seem to be implemented such that once you've applied formatting to cells, the control remembers that formatting data for every cell regardless of whether that cell has data in it. I'm not arguing this shouldn't be the case, but it becomes troublesome since there seems to be no means to clear the formatting data.

    Also true - I have a job I just delvered where I color cells based on OK/Suspect data - then, when new measurements come in, I can't assume the dataset is the same size, so I have to color an arbitrary number of cells white first, then color the OK/Suspect cells - I agree that there needs to be a method to clear formatting.

  2. you need to pass the class data out of the LabVIEW action step to a TestStand variable (of data type Object Reference) and then pass it as an input param to the next LabVIEW step that needs the class data however I am not sure if that is available to you using TestStand 4.2, not sure if TestStand 4.2 allows LabVIEW classes to be passed as an object ref.

    You're absolutely right - TestStand 4.2 doesn't support the LVOOP object, so the best bet to to flatten it to a string and pass it around in TestStand as a binary string <- note the emphasis, as passing it around as an ASCII string will corrupt it.

    TestStand 2010 supports the LVOOP object, but does not support dynamic dispatch.

  3. I want to develop an application in which user can create drawing (Electrical Network)at runtime user can pick controls like line, transformers, bus, PT, etc. electrical objects through tool box and place them on working area (drawing area) and save this drawing for further use. In future this drawing is connected with SCADA.

    Sounds like you want something like National Instruments Lookout. I've used it on a few jobs that are very similar to yours and it worked great.

  4. I'd post code, but it's part of our internal reuse library, so I won't. That said, here's a summary of what you can tyr:

    To get a member's groups, call a command prompt with

    net group /domain

    Then look at the text between the "----------" and the "The command completed successfully". Then iterate over the groups with a command prompt

    net user /domain "%s"

    for the groups the member belongs to.

    Note: you could get the user list first, then loop over them to get groups, but that is *much* slower, depending on how many domain controllers there are, and how geographically distributed they are.

  5. I know that S.E.A. sell a GPS c series module, but it is only compatible with cRIO, not cDAQ, obviously with the different interfaces.

    Like you said, cRIO yes, cDAQ no. I've never used them, but I hear the S.E.A. modules are quite good - and they've been around for a long time (well, in cRIO terms).

  6. I start with an array of N strings. Using the function "Array to Cluster" I get a cluster of 1-element arrays (each containing one string) when what I want is a cluster of N strings.
    There is an Array to Cluster in the Cluster palette. You must specify the size of the cluster to make (the default is 9), right click the primitive and select Cluster Size. This is not changeable at runtime as far as I know.
    Paradon, but you clearly did NOT read my question. Setting cluster size is NOT a problem. I already do that. But from an ARRAY_OF_STRINGS it gives me a CLUSTER of 1-STRING_ARRAYS. And that will not do. I need a CLUSTER_OF_STRINGS from an ARRAY_OF_STRINGS.

    Before you get too snippy, I think the reason hoovahh replied the way he did is because your original post doesn't make sense: if you use the "Array to Cluster" with a 1D array of strings then the output is a cluster of strings, not a cluster of 1D arrays of strings with one element each like you suggest.

    Drag this snippet onto an empty LabVIEW block diagram and you'll see that it works as expected:

    post-181-0-95296300-1321892123.png

    My guess is that you're either not using "Array to Cluster" correclty (although I can't imagine how you can use it incorrectly), or your input isn't a 1D array of strings, as you've suggested. Post a code snippet of your issue and we'll try to help.

  7. The question becomes defining what "readable" means. In these cases, I tend to think that the software can read it, so that's one level or readability, and I can read it to a certain level, so that's another level of readability. Does your average user need to dive into the xml? Hopefully not - your software should be what's taking care of the data (who knows what a user can do to it), and if you do need the user to modify the data in an xml file, then provide a file editor that protects the stuff they shouldn't play with, and only exposes encapsulated access to the things they should.

    I know it doesn't answer your question, but I think your question might lead to others in the application of your architecture.

    • Like 2
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.