Jump to content

hugo_fr

Members
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by hugo_fr

  1. That example is crazy. Did you develop this or did you find it? I ask because I noticed some of the front panel controls would be a strange string of characters like "ƒCƒxƒ“ƒg“o˜^Refnum" and even the error clusters have some odd labels. Does this kind of thing happen when developing in a different language?

    I think I understand how all the pieces work. The only thing is with this design I don't like is you need to have a callback VI for each item in the tray right? What if we needed to populate the list of items to appear when you right click? You could have the same call back VI for several events, but when when an event occurs there is no way to know what the user clicked on if because the only distinguishing part is between items is the VI that is called.

    I'm also a little confused on what happens if you have more than 5 items when you right click. It seems you are registering all the events at the same time, so you need to know how many events there are, and there is a case structure in the SetMenu.vi that at the moment only goes to 5 items. It would be a pain to have to set that to the maximum number of items you expect to ever have in a tray.

    I also didn't see a way to add a horizontal bar to separate items. Maybe BarBreak? or Break in the MenuItem property node.

    I find it some years ago, on LAVA 1.0,

    I have the same bug (ƒCƒxƒ“ƒg“o˜) on clusters...

    You are right for the registering process, a little bit frustrating .... i don't know another way, NI Library uses the same registering node.

    If you put the string '-' for the name, you can add an horizontal BreakBar, (as for Ring)

    You can distinguish items with the 'NotifyIcon Ref' property : 'Text'

    I hope it helps.

  2. Hello,

    Thanks a lot for your answers, I will have a look on your ideas.

    Cheers

    Antoine

    PS: I attach a test project, (test.zip) with a custom periodic server based on server.vi, which refects what I need. You can see I used Call chain.vi to get the path of the server itself when it is running (vislt_serverXX.vi). But if I opened a ref on it to get its path, I have a <not a path>...The idea was to retrieve the path of vislt_serverXX.vi, because when I create an exe, I noticed that in the builds folder, there is a folder \builds\LVDSC\Custom VI Periodic Server\9.0\templates inside. And this folder is included in same folder than the .exe

    I attached also a picture showing dsm, with my server running (post-17476-12732215004_thumb.jpg).

    Thanks again

    Here's an installer option that works fine :

    registry_install_for_lvproj.jpg

    Hugues.

×
×
  • Create New...

Important Information

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