06-06-2012 07:28 AM
According to the code that you have made,Is it possible to fix a particular array index value as a constant one and also show that value as not changing after reading??Please answer.
06-06-2012 07:32 AM
06-06-2012 07:41 AM
As we are appending the array with new values where to place the replace array subset?
06-06-2012 07:42 AM
06-07-2012 12:34 AM
Hi Gerdw,
I tried in the below attached way.But it is outputting the same value in all the array indices.But the value is just wired to the first index only.Please have a look at it.please give possible suggestions.
06-07-2012 01:08 AM - edited 06-07-2012 01:09 AM
Here we are sending(writing) values before the array formation.So how can we fix a particular array index element?
06-07-2012 02:38 AM
Hi danil,
can you please explain what you're trying to do here:
That is the core of your "newone.vi"...
What is the goal of those string to array, replace, array to string dance?
Where is the place where you want to keep certain array elements fixed?
As told before:
- Go through the basics lessons.
- Before coding you should think about what you really want to achieve...
06-07-2012 02:56 AM - edited 06-07-2012 02:58 AM
What is the goal of those string to array, replace, array to string dance?
The input of "replace array subset" should be an array so converted string to array after fixing first element of the array with a particular element we have to input it into VISAwrite,so again reconverted to single string.
Where is the place where you want to keep certain array elements fixed?
while sending I want my first element fixed and only others have to change.After reading also we must see the first element as fixed and others have to change.
This is what Iam trying to achieve.I won't ignore your advice of taking the basic course.But now in a busy schedule.
I attached only the writing(sender VI which is named as newone.vi) and not the read VI.
06-07-2012 03:04 AM - edited 06-07-2012 03:05 AM
Hi danil,
"The input of "replace array subset" should be an array"
That's correct...
"so converted string to array"
That's not done correctly...
- You create a single string (your number, appended with LF).
- Then you convert that single string to an array of how many elements?
- Then you replace the 1st element of that array (with how many elements?) with a fixed value!?
- Then you convert that array (with how many elements?) back to a string.
- Then you prepend a different array (that probably is the one you really want to work with!) with that back-converted string element.
Again:
First think, then code!
I will not post any new VIs for you. I will only analyze your VIs for problems/errors, until I recognize some "real programming" of yours!
See it positive: atleast I don't unsubscribe from your thread(s)...
06-07-2012 03:33 AM
- Then you convert that single string to an array of how many elements?
what I understand is,each time the loop iterates and new string values will comes and it will form the array.what you actually meant by how many elements?