LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3 simple questions

q,w,d,f,g,j
1)how to take 2nd element ?Has any function like the split() function in VB.The Labview split function is quit week.
2)how to put all this to 1D array?

3)The indicator is output and the control is input so how to change the control's value by itself not by user.The control like string or radio buton....
0 Kudos
Message 1 of 7
(3,449 Views)
The answer to both 1 and 2 is the Spreadsheet String to Array function. Specify ",' as the delimiter and wire a 1D string array constant to the array type input. To programtically modify a control, use a local variable. Right click on the control or terminal and Create>Local Variable. Careful with locals however. They can be overused and cause memory problems.
Message 2 of 7
(3,449 Views)
"1)The output of the spreadsheet string to array function is in number format when i split the :
1q2,w,3,d,4
it wil come out:
12 0 3 0 4
so how to sove this problem. i want the output is
1q2 w 3 d 4

2)when i run a VI the VISA icon keep on flicker and the VI will not continue to next job already.i have to click the debug mode and then click the step out button to let the data flow out from the VISA icon.why i have to make the VI continue running in this way.what is the problem of my VISA there?i did not switch on any thing in sub-vi node setup.


3) what is enable termination, which is inside the VISA icon?"
0 Kudos
Message 3 of 7
(3,449 Views)
I dont know about 2),3), but for 1):

You need to specify the correct formatting - see gif
0 Kudos
Message 4 of 7
(3,449 Views)
How if i only want array(0,1) to store in string?
0 Kudos
Message 5 of 7
(3,449 Views)
I still can not do it.Actually what is the String Array(empty) use for in your block diagram? Maybe my one is in double format when i point to that position.Thus, how to solve it?
0 Kudos
Message 6 of 7
(3,449 Views)
The input is to define the type of array you want. If you want a 2D array os DBLs out, you wire an empty 2D DBL. You cannot simply click on the input and say "create constant" because the default is a 2D DBL array. Explicitly create a 1D string array and wire it up. Go to the array palette, put an array constant on the diagra, then go to the string palette and drag a string contant inside of the array constant. Voila, an empty 1D string array.
0 Kudos
Message 7 of 7
(3,449 Views)