kel712
-
Posts
5 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by kel712
-
-
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.
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
-
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.
-
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.
-
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.
Serial port and event trigger
in Hardware
Posted
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