Labviewguru wrote in message news:<506500000005000000378A0000-1023576873000@exchange.ni.com>...
> You can modify the value of controls and indicators with property
> nodes. However; you have to be able to pass the referenes into the
> subVI, or obtain them through VI server.
Yes, I found property nodes shortly after posting this. It was really
hard to find, because in labview when you click on a reference and hit
help, the description is like two lines long and doesn't say how to
use it. I eventually found out about them on the ni site.
> This sounds like a bit of a challenge, but is very doable. It will
> just be a lot of work to determine what type of data to set the values
> to, as you will have to figure out what the data is.
Yep,
I got it done this morning. I took the output of the Type
Descriptor property, took the second element (index 1), bitwise and'd
that with 0xFF, tested to see if THAT was less than 8, if it was, I
sent an int constant to the proper function (variant to data for
reading, unflatten to string for writing) and if it wasn't I sent a
float constant. I found out about the g type code in the Type
Descriptor array from a discussion on the NI site and how to get at
that code by the pdf help file about Type Descriptors. Bitwise AND
and logical AND are the same function, which also took me by surprise.
Also, a reference seems to be it's own data type, as you can make an
array that contains references to indicators of different types (maybe
you can make arrays of different types with out references? I don't
know). This was _very_ convenient.
> Do a search on NI's websites for information along these lines. You
> should see plenty of information. Also, be sure to check the examples
> and hel
p that ship with LabVIEW.
Thanks for your help.
TS