06-07-2012 03:36 AM
Hi danil,
"what you actually meant by how many elements?"
I mean:
- Use a probe to test, how many elements your array contains after converting the string with "SpreadsheetStringToArray".
- When you have done this: think about the sense of replacing the first elements of that very array...
06-07-2012 04:04 AM
Please see the attachment:For proper understanding I made a for loop iterating only 10 times.
Also I have placed ARRAY1 after "SpreadsheetStringToArray" it showing 10 different values but in one index.Is the problem with that?I have wired the constant FF with the zeroth index of Replace Array Subset Function.Is it not correct?
06-07-2012 04:20 AM - edited 06-07-2012 04:21 AM
Hi danil,
"Also I have placed ARRAY1 after "SpreadsheetStringToArray" it showing 10 different values but in one index.Is the problem with that?"
No, the problem not with ARRAY1. It shows just what you programmed to show on that wire...
"I have wired the constant FF with the zeroth index of Replace Array Subset Function.Is it not correct?"
Well, the wiring is correct. But I doubt you really want to use the result of that operation...
Again: First think, then program...
- Write down the steps needed to achieve your goal. On real paper!
- Then start the programming!
To me it seems you first program something and then you ask questions about your own VI. Those questions only show you don't know what you have programmed on your own. Wierd...
- Start your two weeks of learning programming (in general) and LabVIEW (in special) right now!
06-07-2012 04:36 AM
Gerd
Some people will always keep insisting to walk with roped legs and arms, as it makes it so much more exciting. ![]()
06-07-2012 06:49 AM
Please see the difference between "concatenated string" and "concatenated string2".concatenated string always display the "FF" along with the array element.How to correct this and always make FF fixed as the first element?And then only give it as input to the VISAread(that is output of C to VISAread as input,shown in blockdiagram)
06-07-2012 06:56 AM - edited 06-07-2012 06:57 AM
Hi danil,
"concatenated string always display the "FF" along with the array element."
1) Wrong. You have to make the string indicator bigger to see the whole thing...
"How to correct this and always make FF fixed as the first element?"
2) To correct what? See comment 1...
3) FF is the first element, but you still made errors. Switch "output array" to display in "\ code" to see your failure...
"And then only give it as input to the VISAread"
4) When you talk about "output array" as "it": VISA-Write only takes a string as input, so you have to convert your string array to string first...
06-07-2012 07:17 AM
FF is the first element, but you still made errors. Switch "output array" to display in "\ code" to see your failure...
I did that,and gave it as input to VISAread.After running I got the values as:-see the attachment.
where is the failure?The concatenate string showing value with FF attached in every iteration.
06-07-2012 07:24 AM
06-07-2012 07:33 AM
Yes.
1.Yes I saw all the elements.
Iam giving this one as the input to VISAread.Sorry.....
06-07-2012 07:34 AM
How to send this one by one?