10-14-2007 02:36 PM
10-15-2007 07:46 AM
Thanks Jarrod,
When first released the SDE int to enum was "open" and it used the construct I illustrated.
What code construct can I use that achieve the same end but is more efficient?
Trying to learn,
Ben
10-15-2007 09:38 AM - edited 10-15-2007 09:38 AM
Message Edited by dwisti on 10-15-2007 09:39 AM
10-15-2007 09:58 AM - edited 10-15-2007 09:58 AM
Here's a copy of the example I used. It's not really meant to measure the absolute time these operations are taking, just to show a relative difference.
Message Edited by Jarrod S. on 10-15-2007 10:04 AM
10-15-2007 10:06 AM - edited 10-15-2007 10:06 AM
Well that was a nice "Whack on the side of the head"!
No operators required, and just let coercion do it thing. I did a similar thing to convert DAQmx device spec to a string.
Thanks*!
Ben
* i won't tell Christian about this.
Message Edited by Ben on 10-15-2007 10:06 AM
02-19-2008 07:37 PM
@jarrod S. wrote:
I did a quick experiment, and it seems that a quick easy way to convert an integral value into an enum is to build a subroutine subVI that simply passes an input integer into an output enum.
02-20-2008 06:28 AM
earlevel wrote:
Jarrod--could you please post a picture of that? I'm using LV 8.2, and can't open your example. I'm not sure what you mean by "passing an input integer to an output enum"--it sounds like something I already tried, which does not work...
02-20-2008 06:09 PM
02-21-2008 05:09 PM
@earlevel wrote:
Thanks tst--actually that's exactly what I tried (but in-place) the very first thing, but couldn't figure out how to make it an output and of course, the answer was to make it a separate vi (was so trivial, it seemed like I could do it without it being a subroutine/vi, but apparently not).
02-22-2008 04:00 AM
earlevel wrote:
After I wrote that it occurred to me I could make it a control and add a local variable to read it