Jump to content

Ton Plomp

Members
  • Posts

    1,991
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by Ton Plomp

  1. Hello,

    I am trying to generate properties for XControls. I know how to add them to the XControl.

    But when I open the Xcontrol the XControl is broken and says the property is missing. And if I open the new property VI, it needs to be updated to get linked to the XControl.

    To prevent this I save the property and close, add it to the XControl, save the XControl, open the property and save the property. This has not solved my issue.

    Does anyone know how to do this (Jeffrey?)

    Ton

    PS it is currently the only thing between inheritance for XControls

  2. Just a status update (or what have you done in the holidays?)

    I can generate the first generation properties (read and write) (so just visible, label.text and othere subclasses not yet, though they are not that difficult)

    I can add them (in some way) into the XControl, allthough I have mayor issues with the state typedef. My vit uses another one than the xcontrol and won't accept the new one....

    I cannot generate the Methods (haven't looked int it)

    Hopefully this friday I'll have it sorted out about the property creation into the XControl...

    Ton

  3. Strange,

    Now it is gone, but mine worked earlier (no-one around).

    Just to get the idea, is this some sort of group-meeting possibility? Where you can discuss live about some topic?

    It would be nice if a skypecast shows up in your skype program...

    EDIT: OK skype 3.0 has a live tab

    Maybe something to plan? I only have skype at home so between 8 and 10 CET would be best..

    Ton

    • What about the inherited properties like 'Scales', 'Text' and 'Numeric'? I think we need them

    Does anyone know how to detect the type of the inherited item?

    If I use a propertyitem label on a string control I get a label-reference, I haven't succeeded in determing the type using OpenG-toolkits. PJM private class generator doesn't know the classes as well. I have found out that the classID is 5 one of the low ones PJM hasn't identified.

    Does anyone have a clue?

    Ton

  4. This should be possible. I'm looking into it at the moment, so lets see what comes out. :rolleyes:

    Good,

    a question for all:

    I have a framework where the developer can choose for which facade VI controls the inheritance should take place.

    Now in the XControl a folder %control1%.properties and %control1%.methods will be placed with the properties and methods.

    But several issues arise:

    • How to get the facade VI control reference inside the property VI. A reference to the XControl is available but that is not easily parsable into the facade VI
      Should we pass the controls around via the display state?
    • What about the inherited properties like 'Scales', 'Text' and 'Numeric'? I think we need them

    What do you think about these Items, esp. nr 1!!!!

    Basically I am looking for VI's that allow automatic property and method generation

    Ton

  5. There should be a way to inherit properties and methods of build-in LabVIEW control to the properties and methods of an XControl.

    I agree,

    do you think it is a lot of work to read all the properties/methods of a normal control and process this into properties and methods of an XControl? with scripting off course

    Then if you have a XControl consisting of several controls, should you build all the controls, or just some?

    Ton

  6. Hello Alameer,

    First forget the dynamic data type, you never use it in your code. Have the Daq assistent put out a Voltage (or better the theta, but that is another exercise).

    Then probe what theta comes out, is that correct?

    Another tip, use executed highlighting.

    Ton

  7. So Michael asking questions.

    First the easy one:

    Use the description:

    post-2399-1166964661.png?width=400

    The container state contains the reference to the xcontrol

    The second one looks more difficult, but fortunately not:

    post-2399-1166965173.png?width=400

    And here is some proof:

    post-2399-1166965292.png?width=400

    The help text is just the string, which originates from the numeric-data in a standard X Control

    Now, Michael what are you going to do with this.

    Hopefully a way to build an Xcontrol which has all the properties of normal LV controls, and this build with scripting?

    Ton

  8. => there is only one thing I miss: While building a new RT- application I can not debug another application on a RT-Target, because the application Builder Window is "frontmonst"

    But if you have only smal apps. you don't need that.

    What if you run two copies of LabVIEW?

    Ton

  9. Thanks for letting me pick your brain. :)

    Kenny

    You're welcome, For storing data on a remote drive RT has no network shares client. What you can access remote is a DB via TCP/IP (I think you should just try to run the DB toolkit, I wouldn't know why not. Another item would be FTP

    In order to have the RT correct running you should make two processess (typo?) one for the data reading and storing to a queue and one for communicating with the DB.

    But why not go with a normal PC, let's say a CompactRIO+RT costs 10k

  10. I think you can list channels and groups, but I don't see how to get a list of properties programmatically. That probably wouldn't be a huge issue for configuration files, but it would be a nice option. (Maybe it is there but I just haven't found it yet.)

    Yes there is, use TDMS Get Properties, from the help:

    property name indicates which property to return the property values of. If this input remains unwired, the function returns the property values for the specified group name, channel name, or the entire .tdms file.

    Ton

  11. Recently someone from NI R&D was here, and he told us that most likely the next release had a solved issues list (or bugs) publically. Unfortunately not a known issues....

    Ben:

    I know you are very interested in CARs and bugs, do you store and monitor them?

    Ton

  12. Except that Ben's image shows the method for a table, not a tree, and I don't know of any vi.lib VI which handles that (and the private method did not work in 7.0). That said, there are some implementations on the web for doing this for tables and arrays.

    For 8.x the exact same method exists for trees, it even tells you if the mouse was on the symbol position:

    post-2399-1166287302.png?width=400

    Allthought the method has the same name, if you change the control ref. type the method is broken

    In 7.0 the methos probably don't exist, too bad.

    Ton

  13. Hmm I have a slightly different problem and was wondering if anyone could help.

    I have a string being read and using a scan from string func on it which should convert a string like: 245m for example to 0.245 or simply keep the milli specifier. The current formating mask I'm using for that function is %#.6p and that simply cuts off the m at the end and sends a 245, and when i'm doing voltage control, that creates quiet a dangerous situation. Could anyone please help!

    Crosspost from NI (AKA the dark side) where it is already answered

    Ton

  14. Hi Nicholas,

    what happened is that your second frame executer during a very short amount of time, so you don't see the light comming on.

    I added a third fram just for timing issues:

    post-2399-1166041299.png?width=400

    Another way to get this is using a timed loop that runs at 2 ms, so the timed sequence is launched every 2 ms, but there are other ways.

    Ton

  15. Hi Doon,

    well two cases shouldn't be a big problem but here are my two cents:

    The error code is a I32, In LV 8 we got the I64. Now if you have an error shift the error code 32 bits up.

    with that method you could only use one case. The code looks quite complex, but if you want to seperately look for errors and codes (you could also skip the error boolean and look only at the code)

    post-2399-1166036249.png?width=400

    Prior to eight you could do similar things.

    But I think if you only look at the error code you will get the information you want.

    Ton

×
×
  • Create New...

Important Information

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