Jump to content

kel712

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

kel712's Achievements

Newbie

Newbie (1/14)

0

Reputation

  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. 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 Download File:post-2707-1124510958.zip
  3. I take it you are trying to convert the 16 bit binary array to two string characters. I have modified your byte conversion to show some other ways of doing it. Hope one works for you just don't ask me which is the best way to do it. Cheers Kelvin. Download File:post-2707-1124276258.vi
  4. 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.
  5. It's all to do with rounding errors with floating point numbers. So instead of using "x = y" use "|x-y| <= 1e-14" which checks if the difference of the two numbers is close to 0. See attachment. This is not just a LabVIEW problem either. Kelvin. Download File:post-2707-1123402451.vi
×
×
  • Create New...

Important Information

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