Jump to content

Diego Reyes

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Diego Reyes

  1. Not sure what is causing this but here are a few things to try:

    1. what is in your Error case? Do you pass the queue ref through?

    2. Try using a shift register for passing your ref through the loop. This is just good practice and is very important in FOR loops because if the loop does not execute and you don't use a shift register then the output tunnel will be NULL. Not sure if timed loops can also do this. Normal While loops cannot since they always execute once.

    3. Are you sure you are not stepping on the queue somewhere else with a force destroy set to true?

    4. Can you post more of the code for us to look at?

    John,

    The Error case just passes the ref through. I just tired the code using a shift register. It seems to be working properly. I am going to set up my regression testing to run it over the weekend.

    Thanks for the suggestions. I am not going to have to stay late today trying to figuring this one out thumbup1.gif

    Regards,

    Diego F. Reyes

  2. Hi everyone,

    I have an issue that I have not been able to resolve. The attached screen shoot is taken from my VIT that simulates an AI operation. This VIT is used to create separate executions of the VI depending of the number of DAQ boards in the system. The simulation works well but the problem arises when the loop end execution and the program moves on. The Release Queue VI executes correctly for the first VI that reaches this point. However, the other VIs reach this point throw an Error 1 when they try to release the queue. Each VI has its own obtain queue at the beginning of the execution. The program is behaving as if the Force Destroy input in the Release Queue VI was set to TRUE. Do you have any idea or suggestions to continue my troubleshooting? Thank you.

    Regards,

    Diego F. Reyes

    post-15188-124845162414_thumb.jpg

  3. QUOTE (mballa @ May 2 2009, 04:46 PM)

    Here is an example of what Chris is talking about. I use this method when I need to disable/hide several controls or groups of controls.

    Hope this helps

    mballa, Thank you for the sample code :thumbup: . It help me to visualize Chris' idea :lightbulb: . I will use something similar to organize my UI. I have to disable/enable groups of controls at different parts of my application. Using groups should make my code cleaner and easier to maintain.

  4. Hi Everyone,

    I have about 30 Controls that I have to modify differently in each one of the states of my UI state machine. I would like to know what is the best way to implement this process. I have asked several colleagues and they have provided various options. Please, let me know what you think:

    Option 1

    Use property nodes directly linked to the control I want to modify. This will mean that I will have more than 90 property nodes in my block diagram

    post-15188-1241216602.jpg?width=400

    Option 2

    Create references to all my controls, bundle them into a cluster and pass it into my state machine using a shift register. Then when the application ends, close the references.

    post-15188-1241217669.jpg?width=400

    If I was to use option 2, Do I have to close the references after I use them?

    post-15188-1241218223.jpg?width=400

    In advanced, I thank you for your input.

    Regards,

    DFR

×
×
  • Create New...

Important Information

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