Jump to content

huotom

Members
  • Posts

    46
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by huotom

  1. Hi, ShaunR, I would like to suggest you to check the Disp Query Get Service.vi. There is a wire mistake when TCPIP open.

    And I think that you should add a case "GETSUBSCRIBE" in Dispatcher.vi. Because there is no handler for Dispatcher Query.vi(Get Subscribers). Also should add a vi to deal with it. Thanks.

  2. Feature Request: Clone a Method VI

    I have updated the repository with a new version - you can now easily clone a method using this tool.

    Supported Templates include:

    4815 - 4x2x2x4

    4833 - 5x3x3x5

    4834 - 6x4x4x6

    4835 - 8x4x4x8

    (Assumes any other LVOOP Class Control is a data member or parameter).

    Where drinking from a camouflaged can... ...makes you look tough. tongue.gif

    Error occurs!

    LV could not find addons\_ICON Library\scripting\_icon_lib_scripting.lib.

    • Like 1
  3. I believe the issue Darren is describing was supposed to have been fixed by the f2 patch, so presumably it's not that.

    When I have an error and I want to pinpoint the source, what I usually do is delete parts of the code until it stops happening or delete all of the code and then delete less and less until it starts happening. Which method you choose depends on all kinds of factors, but the basic concept is the same. I usually prefer at least deleting all the code first, to make sure the issue isn't with the VI itself.

    I think it has not been fixed by the f2 patch. May be f3 or fn is OK.

  4. Maybe you don't need to convert a LabVIEW object to a .NET object. I'm not sure exactly what you need, but if you just want to use the Property Grid control in LabVIEW, that can probably be done. Check out these links

    http://zone.ni.com/r...otnet_controls/

    http://zone.ni.com/d...da/pub/p/id/230

    Mark

    Thank you, Mark.

    In LV, we could get the property/member one by one, not all at one time.

    Otherwise, we can get all properties shown in a Property Grid in C# by giving the "Selected Object" a .net object.

    And I think Property Grid is a good partnerf for OOP.

  5. You can't. I independently tried this just the other day and the "To .NET Object" method always returns an error method such as the following:

    "Error 1199 occurred at Invoke Node in To .NET Object.vi->Untitled 37

    Possible reason(s):

    LabVIEW: Cannot convert the specified LabVIEW type to .NET object.

    Method Name: .NET:Convert To .NET Type"

    This is most unfortunate.

    Thanks a lot.

    I think there must be large differents between lvclass and .net or java class, although they are a bit similar.

    I want to use this method as I am interesting in the PropetyGrid in C# 3.5.

    In C# class, there is property except member or method which can be used for PropertyGrid~~

    Oh, my god, I must write the propertyGrid in LV by myself now.

  6. Dear all,

    I meet some problems when I am using OOP in LabVIEW with .NET Container.

    How can I convert LVclass object to .NET object?

    In C#, we can show all the properties in Property Grid control.

    Now, if I want to show my lvclass object's properties in the Grid, how can I convert LVclass object to .NET object?

    I searched the functions inside LabVIEW but coult not find the properly one.

    The "To .NET Object" Vi dosen't support LVclass.

    Is there anyone who can help me? Thanks very much if you can give an example.

    I'm using a .Net container with a windows form 2.0->propertyGrid.

    The property being used is "selectedobject". We can get infomation about the PropertyGrid at MSDN.

    Thank you again.

  7. I always figured that you should use locals over property nodes (for reasons already mentioned) - unless you were already using a property node anyway (to set some other property). Also, when speed really isn't an issue, I like that I can use the error clusters of the proprty nodes to both force execution order and decisions based on those errors (note: you can right click on a property node and select "ignore errors inside this node" or something like that).

    I seldom use local variable except for path or boolean value because I'd like the error in/out cluster force execution order.:rolleyes:

  8. post-14628-125392538816_thumb.png

    Dear all, I change the Tab Control local variable with property node: Value, and it works.

    And I seldom use local variable except for Path or boolean value.

    PS: If we want the numeric value change event occures, we usually use the value(signal) property instead of value.

    Thanks.

    Tom.

×
×
  • Create New...

Important Information

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