Jump to content

kel712

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by kel712

  1. Hi,

    You could try the VISA wait on event. I don't think it will help in making the diagram any smaller, just saves you from polling the port all the time.

    I have attached a VI in which I have done this for a IR remote control it is a modified example. The event structure is there just to stop the VISA wait instead of waiting for it to time out. It will always return an error will you stop it this way but that's not why the error is not wired to the stop I was getting framing errors all the time from the remote.

    Kelvin

    Download File:post-2707-1124710746.vi

  2. Ok, here's what I want to do: I want to enable user drawing on a graph (similar to examples > general > uievents.llb > Draw Graph with Events.vi), but the graph I have has two plots.  I only want to allow drawing on one plot.  The problem with the Draw Graph example is that it only supports one plot graphs.  In addition, having used LabVIEW for just two months, I am not too familiar with event structures and references.  Moreover, it seems I cannot modify the example to be a subvi without having to rely on shift registers.

    5726[/snapback]

    To use multi plots in the example see attachment. Also have moved one case to a sub VI to give you some idea of the use of the graph refnum.

    I have some more advanced code that can add any number of plots to a multi plot graph and changed their labels and a few other things and is done in sub VI's but this is at work. If you want a look let me know but you will have to wait to tuesday (Melbourne Time) when I go back to work. Moday RDO :D

    Download File:post-2707-1124510958.zip

  3. Try wiring a false to "Enable Termination Char" on the configure serial port and add a "bytes at serial port" and use the output of this for the input to the byte count on visa read. You might need to also add a delay between the write and the "bytes at serial port" depending on how quick its response is.

    Hope this makes sense!

    Kelvin.

×
×
  • Create New...

Important Information

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