LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datas from table

Solved!
Go to solution

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 121 of 189
(745 Views)

Hi danil,

 

yes, that's possible: don't overwrite that array index with new values...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 122 of 189
(743 Views)

As we are appending the array with new values where to place the replace array subset?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 123 of 189
(740 Views)

Think about that yourself - you wanted to go through LV basics atleast for two weeks?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 124 of 189
(738 Views)

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 125 of 189
(717 Views)

Here we are sending(writing) values before the array formation.So how can we fix a particular array index element?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 126 of 189
(712 Views)

Hi danil,

 

can you please explain what you're trying to do here:

check.png

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 127 of 189
(697 Views)

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 128 of 189
(693 Views)

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)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 129 of 189
(686 Views)

- 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?

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 130 of 189
(683 Views)