Jump to content

Minh Pham

Members
  • Posts

    171
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Minh Pham

  1. Anyone seen this before? Please explain what is in the red circle.

    Im having a problem: webserver can not start after running my exe

    After many builds I found that It is come down to one little vi that i used: Inverse matrix as shown in the attachments.

    If i open this vi for the first time it shows: localhost as shown

    then i close it, reopen the vi again and it is now changed to: my project/My Computer as shown

    I dont understand, can you explain? This is the main cause of the error that i have as attached.

    (i know this because if i remove this vi, my exe runs fine!)

    post-11757-0-98526000-1346817206.png

    post-11757-0-91392000-1346817207.png

    post-11757-0-89134200-1346817208.png

  2. Attached is a small VI that generates 4 sinewaves and plots them in two equally configured WfmCharts.

    ChartUpdateProblem.vi

    The WfmCharts is configured as

    • Scope update mode
    • All plots have thicker lines to make the problem more visible
    • Plot1 and Plot 2 are anti-aliased

    In this case the Stop button overlays the plot area in the upper WfmChart.

    Run the VI and notice the difference in the lines in the upper and lower WfmCharts. The upper chart should have somewhat jagged lines, and if you run the VI for a while you might even get to see this ;-)

    post-5958-0-89847700-1345097806_thumb.pn

    Pressing the stop button forces LabVIEW to redraw the upper chart.

    If you move the stop button outside the plot area, the problem dissapears, but the same problem can be seen if you move the plot legend inside the plot area.

    /J

    Could you please save the vi as 2010 version, thanks

  3. Dont think it is the end of the world though. I suggest to use a little trick to display your cursors on the chart:

    1. Create your chart as normal

    2. Create a graph, then create cursors as normal.

    3. Use the color tool to make the Graph border and its grids to transparent color.

    4. Untick all the visible items for X scale and Y scale, so that you only see the cursors.

    5. Move the transparent graph on top of the chart, adjust the cursors to your desired positions.

    6. Enjoy watching the chart updating with the fixed cursors.

    Hope this is what you are after.

    Pics attached to demonstrate the idea.

    post-11757-0-66376100-1345017366.png

    post-11757-0-57737000-1345017378.png

    • Like 1
    • Thanks 1
  4. We always working with 2 monitors for our LabVIEW development. Normally we have 1 standard size monitor (19 inches) to build our front panels since our apps will normally be running on this size in the manufacturing and production rigs, and 1 bigger size mornitor (22-23 inches) for block diagram/coding/debugging...purposes. Much easiser to work with 2 screens side by side, nothing to complain at all :)

  5. Not fully understand what you are trying to ask but I guess you want to see when you can use the Boolean value change AND the mouse down at the same time, right. Since normally you click the control to fire a value change event for that button which means value change AND mouse down already. So what is the Boolean value change AND mouse down you can use for???? is the question.

    I have create an example on what you can do with it.

    The 1st Boolean button has the value change event: as you can see from the example, the string indicator doesnt clear after you clicked the button

    The 2nd Boolean button (Boolean 2) has the value change AND mouse down, the string indicator shows the text WHILE you hold the button and clear it straight away after you release it.

    Hope this is what you are after.

    booleanandclick.vi

  6. you can either create an interface (a popup VI for example) for this purpose or just add a custom command string control somewhere on you GUI for user to type in.

    Then add an event case for this value change, send the command to the instrument and display it on a string indicator. Pretty much what you have done, just add a few extra code.

  7. I did recompile and the error is still there. I tried to copy that while loop into a blank VI, ran, and confirmed it work. Then I delete the case in my main VI, and build the case. Copy back the while loop, and error still happens.

    I have just tried to remove the -1 block from inside the while loop to outside the while loop and it works now. I am lucky that I don't have to rebuild the whole VI.

    I sent the VI to NI already.

    Best regards,

    Thang Nguyen

    This is starting to freaking me out ph34r.gif

  8. Another method is you can overlay a boolean array (flat square classic buttons work best) where the booleans are transparent except for the true state border colour. Then you just use the number to boolean array primitive to set one or more booleans "True" for the value or values you want to highlight in the main array. This will create a border around the value. But if you move it behind your array and make your array transparent, you can also make the boolean array "True" state bg coloured and it will look like you changed the background.

    Nice workaround mate.

    I normally use ARRAY of CLUSTERs to do this purpose as you can access each cluster element (contains 2 controls/indicators that you can change the

    colour property). here is the result:

    post-11757-0-03117000-1299553925_thumb.j

  9. Last Tuesday I learned my contract was going to end on Friday, so I lined up a LV dev position with another group that I was supposed to start today. On the way in to work this morning I checked my voice mail to discover the person who was planning on leaving (thus opening the position for me) decided to stay (thus closing the position to me.) Not exactly the kind of news that kicks off a great week.

    Here's hoping the economy picks up soon...

    Try knocking NI's Door ! They always welcome people like you :)

×
×
  • Create New...

Important Information

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