02-21-2006 10:59 AM
02-21-2006 11:24 AM
How exactly would you define the strings that your pict ring would output? If you simply want the ring numeric value as a string, then you could use the Decimal String to Number function to convert the ring value to a string. Otherwise, I don't see how you would define the string values other than a case structure, or perhaps with an array of strings and the Index Array function (that's probably how I would do it).
-D
02-21-2006 12:20 PM
02-21-2006 01:19 PM
If you're using LabVIEW 8.0, you can create an XControl that has the appearance of a Picture Ring but is actually a string datatype that will output the appropriate value based on the index value of the picture ring.
-D
02-21-2006 01:37 PM
02-21-2006 01:51 PM
That's right, XControls are only in LabVIEW 8.0. Another thing I thought of is that you can create a little "bullet" subVI that does the conversion for you, and just insert this subVI on any wire where you need to read the string value instead of the control value. I have attached a sample VI (saved in LabVIEW 7.1) to this post to show you what I'm talking about. Drop it on another VI's diagram and notice it takes up very little space.
Good luck,
-D
02-21-2006 02:13 PM
02-21-2006 02:18 PM
02-21-2006 05:08 PM
LabVIEW, C'est LabVIEW
02-21-2006 05:48 PM