06-18-2012 09:49 AM
hi
spreed sheet by default out 2D-ARRAY how i can make it out 1D array
if u suggest array type block
tell me how i can do that by using it
thanks alot
06-18-2012 09:51 AM - edited 06-18-2012 09:51 AM
Hi oi,
"spreed sheet by default out 2D-ARRAY how i can make it out 1D array"
You already say it: when the default type is a 2D array you have to change the input for the data type!!!
"tell me how i can do that"
Create a new array constant of the required type...
06-18-2012 09:52 AM - edited 06-18-2012 09:53 AM
@ChrissyC87 wrote:
@oiuuhjoi wrote:
the spreadsheet string array onla accepts 2D array.
To make the function accept a 1-D array you have to wire a 1-D string array constant to "Array Type".
Posted only a minute before your question, sorry if you didn't see it in time.
-CC
06-18-2012 10:15 AM
i change array diemensional to 1D array
but
it is query error and no graph appear
06-18-2012 10:21 AM
Your string doesn't contain any data that would be considered a 1-D array. It is just a single piece of data.
You need to use Scan from String to pick out the numeric value in it. Then you need to either feed that data to a Waveform Chart. Or to feed it into a Waveform Graph, you need to use Build Array and either a feedback node or shift register.
How come your VI doesn't have a while loop? Right now it only runs once then stops.
06-18-2012 10:21 AM
Based on the string that is shown, your conversion to a 1D array is incorrect. You have a single value in that string and even if was converted correctly, you have point style set to none and with 1 point, no lines connecting them. Your code just does not make any sense as it is. If you are getting a different string than what is shown, save the VI with that default value. If the string is correct, use Scan From String to get a scalar and write to a chart.
06-18-2012 10:32 AM - edited 06-18-2012 10:37 AM
Right first things first:
A good idea would be to read the basic Labview tutorials and/or have a look at the examples that ship with LabVIEW (particularly the basic serial read write.vi)
If you want the graph to update with your serial reads then it needs to be inside the loop and changed to a "waveform chart"
-CC
[edit: sorry for repeating Ravens and Dennis's points - he lieth the danger of nipping off for a cuppa midway through a reply! ]
06-18-2012 10:49 AM
hi
sorry for being Obtrusive. 😄
but im not good in using labview and i need to do this work essentialy.
thats what i understand to do
1- i will make while loop
2-put scan from string block
3-connect s-parameters string to input string (in scan from string)
4-write %f to format string (in scan from string)
5-take out to waveform graph(error occure)??