Jump to content

william wallace

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Posts posted by william wallace

  1. Hi Michael

    Thanks for your suggestion.I've amend the VI according to your suggestion,and it worked well now.

    And also thanks for your comment. Because I only used VB brfore I use LabVIEW,and VB is my first programm develop tool.So I think that's my habit to resolve these question in that way(Use event structure).I will try to investigate the queues and notifers later.

  2. I use LabVIEW 7.0

    This problem is that after you call the TMP_Main.vi more than one time,the TMP_Called.vi won't unload itself even after the TMP_Main.vi stopped.That means the event structure cann't handle the user event,"BooEve",which was registered in the TMP_Main.vi.

    see the attachment

    william

    post-3059-1130132241.jpg?width=400

  3. Hi Michae:

    Thanks for your suggestion.

    But I think there also must be some misunderstanding

    First,

    The front panel of Tmp_Called.vi MUST be opened before it can register for events. So the panel must be opened and then the Vi must be run.
    I have tried all the squence,open VI->sent value->run VI / sent value ->open VI->run VI / sent value->run VI->open VI / open VI->run VI->sent value / run VI ->open VI->sent value / run VI ->sent value->open VI, before I creat that topic.But nothing happend,the case structure can't handle the event.

    Second,

    Also why not send a TRUE event to BooEve? How can you tell if it's working if you are sending a FALSE?
    I can tell the case structure has worked well if the Tmp_called.vi stopped after the Tmp_called.vi stopped.

    This time I edit the VIs.And if the case structure handled the user event,Tmp_Called.vi will unload itself.Otherwise,the "NG" light will be lighted.I hope you try more than twice.Because sometimes,this structure can work normally at first run,but can't react the second time you call it.

    By the way,can you tell me where I can find the same information,just like how the user event work.I really want to know that. I haven't seen that in the manual which only tell me how can I use user event but not how the user event work.

    Hope for your help.

    william

    Download File:post-3059-1129859412.vi

    Download File:post-3059-1129859454.vi

  4. Dear all:

    I've made two VIs,Tmp_main.vi and Tmp_called.vi. A user event,"EveBoo",was created and registered in the Tmp_main,then I called and executed the Tmp_called.vi on which an event structure used to handle the "EveBoo" event was placed by VI server. After that I generated the "EveBoo" event,the strange thing happened.The case structure can't handle the evemt.

    I viewd the manual but can't find anything help.It didn't say that the event structure can't handle user events that were registered in other VIs

    The attachment is my VIs.Hope your suggestion.

    William

    Download File:post-3059-1129791584.vi

    Download File:post-3059-1129791618.vi

  5. Hi Guys,

    PLz help me with this, my problem is when i switched to RT it errors out saying " error code 56:The network operation exceeded the user-specified oy system time". I ma using labview 71, simulation tool kit 2.0.2 and labview RT 7.1 Nowrmal desktop simulation runs ok but as soon as switched to RT target I get this error. plz guys help me out..

    Thanks in advance

    Ravi

    Hi Raviļ¼š

    That's only a timeout error.You try the following step to see if it is helpful.

    1.Make sure that the LAN work all right.

    2.Amend the "timeout" property to make sure that your operation can contain the net delay.

    Best regards

    william

  6. Well, the program shouldn't have dialogs, because it's a remote panel application. But sometimes, one pops-up (you can't control all the embedded dialogs, particularly when some VIs come from another programming team, or sometimes caused by Matlab incompabilities). So I need to detect when a dialog launches and close it. And this I have no idea. I can quit LabVIEW, but just close that specific Windows dialog... :nono:

    Saludos,

    Aitor

    Hi Aitor:

    Hope I got what you means.

    Try to use this to control the dialog in your case.Use the "Simple Error Handler.vi" and set the "Type of dialog" to 0("no dialog").This maybe helpful.See the attachment.

    Good luck.

    William

    post-3059-1129686557.jpg?width=400

×
×
  • Create New...

Important Information

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