07-25-2006 07:10 PM
07-25-2006 07:38 PM
What is the datatype of your global variable? It would probably help if you attached a sample VI (along with a sample global) that demonstrates the problem. The Excel Easy Table.vi is a polymorphic VI that has two instances...one instance accepts a 2D array of strings, and the other instance accepts a 2D array of numerics. Make sure you aren't using one of the polymorphic instances, as opposed to the polymorphic VI itself. Anyway, if your global variable is a scalar value, or a 1D array, you'll need to use the Build Array function to add dimensionality to your data until it is a 2D array.
So with more information, I'm sure we can help you solve your problem.
-D
07-26-2006 03:42 PM
07-26-2006 04:13 PM
Please attach a sample VI and a sample global variable (also should be a .vi file) that demonstrate the problem and I should be able to help.
-D
07-26-2006 06:02 PM
07-26-2006 06:15 PM
Ok, it seems like you need to convert your scalar numeric value from your global variable into a string for the Excel Easy Text.vi. To do that, go to the String > String/Number Conversion palette and use the Number to Decimal String function. Wire your global value into that function, and use the string output of that function for the "text" input of the Excel Easy Text.vi. That should be all you need.
Good luck,
-D
07-26-2006 06:48 PM
07-27-2006 12:25 AM
Try adjusting the "width" parameter on the Decimal String to Number function.
-D
07-27-2006 10:19 AM
07-27-2006 11:08 AM
Oops, I meant the Number to Decimal String function...got the name switched around.
Anyway, from the VI you attached, it looks like you're dealing with an integer number (I can tell because the global variable is a blue color). So the number coming out of your global variable won't have any digits after the decimal point because it's an integer. If you are trying to write decimal data to your global variable, perhaps you should change its datatype to be a floating point value (orange in color) instead of an integer. You can do that by right-clicking the numeric inside your global VI and choosing Representation, then selecting DBL. Check the LabVIEW Help if you need more information about data types.
Hope this helps,
-D