09-21-2018 09:11 AM - edited 09-21-2018 09:14 AM
@crossrulz wrote:
@JensG69 wrote:
wiebe@CARYAFormat Into String is usually the end point, as it's much more flexible. But not always. I'd slightly prefer Number to Hex String over Format Into String, if it fits the job.But it (ie Number to Hex string) does not do the job - in this case.
Correct. And the Number To Decimal String will fill the string width with spaces instead of 0s. So Format Into String, or even Format Value, inside of a FOR loop would be the way to handle arrays to get what the OP is asking for.
Or Array To Spreadsheet String? Haven't actually open OP's VIs (EDIT:in LV2013 at the momentas there isn't any), but sounds like a fit.
I think we're mostly creating our own party here. Is OP still there?
09-21-2018 07:40 PM
SHOULD BE IN STRING
09-21-2018 08:12 PM
IM TRYING TO GENERATE SERIES OF EXCEL FILE(.xls) ACCORDING TO HOW MANY I WANT. (SERIES FILENAME.)
THAT ENCIRLCE IMAGE IN THE PICTURE IS THE SUFFIX OF THE FILENAME.
I NEED 3 CHARACTER LIKE; 001,002.....010,011...100,101 AND SO ON
EXAMPLE:
I NEED TO GENERATE 69 PIECES OF EXCEL FILE(.xls),THE FIRST 5 CHARACTER IS "XXXXX" THE FILENAME SHOULD APPEAR LIKE THIS XXXXX001,XXXXX002 UP TO XXXXX069
THANKS FOR YOUR ANSWERS BTW.
09-22-2018 12:57 AM
Please check your keyboard. Something is wrong with it.
Your Caps Lock seems to be stuck on.
09-22-2018 01:33 AM
hi...
Try this VI, i have attached below
S Boopathy Raja
Certified LabVIEW Developer
09-22-2018 01:17 PM - edited 09-22-2018 01:58 PM
@பூபதிராஜா wrote:
Try this VI, i have attached below
Here's a much simpler way.
Of course there is also this function.
Some glaring problems with your code:
09-24-2018 03:39 AM
@altenbachAny reasonable programmer would use a "greater or equal" instead of the "equal" here.
Absolutely true. But only if a For Loop is not possible. As implied in your example, but just to emphasize that.
I'd always prefer a For loops over a While Loop. It's usually much clearer to see when they will run infinitely (never), and will cause problems in less situations, but a While Loop will have the same problem in those situations (for instance when wiring a double +inf to 'N').
Since we have the conditional stop terminal, the only reason to use a while loop is when it actually has to run infinitely, or when the number of iterations is determined in the while loop. In all other situations, use a For Loop. Basically, the For Loop is a While Loop with an implemented maximum nr. of iterations, and therefor much less error prone.
09-28-2018 11:23 PM
Hello Altenbach,
Let me correct the problems as u mentioned in the reply.
Thanks
S Boopathy Raja