I need help converting. My error list shows this
These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is string.
The type of the sink is 2D array of
If anyone knows how to convert pls help
You can "convert" a scalar string to a 2D array of strings with a single element (built array, init array, etc.) or multiple elements (spreadsheet string to array, etc.), but I believe that this is pointless and your problem is elsewhere and more fundamental. What is the "sink" (indicator, graph, function, etc.). Where does the string come from? What does it's content represent? Whys is a 2D array needed?
Can yo show us your actual code so we can help you fix the problem instead of simply covering it up with a bandaid.
I am bit new to LabVIEW and I am doing project on generating report of founded peaks in the given report, So here I am finding difficulty while loading the different data array output to table so please help me in finding the solution for this any help will be greatly appreciated.
I am bit new to LabVIEW
So you could take all those training resources offered in the header of the LabVIEW board!?
You have a 1D array of DBL values and you want to display them in a table, which is a 2D array of strings.
As has been said before you need to convert your values to strings using the StringConversion functions. I suggest to use NumberToFractString function…
(Or use a simple DBL array indicator: right click the output of the BuildArray node and select create->indicator.)
In your image you already create a table ("Table Control 2"), but you fail in creating the content for "Table Control3"???
Sir I tried "Number to fractional string conversion" and then to table but it shows error in wire and when i am using array it shows only first values of the "Build array" and actually i want the same data output that is given to the input of "Build array" with three different columns in table. So help me in finding the solution for this.
thank you sir,
This time i will attach my VI and sir i can easily load the output values of "peak detector" that is both amplitudes and locations to "table control 3" as i was previously done with "table control 2". But here i also want to load the values of amplitudes to table after subtracting it with 3. Basically i want the total output as in report format.
It is working.Thank you so much your help means a lot to me and sir another question if you don't mine I want to add serial number for that table and i will not Predefine those values and how can i add those numbers in increasing format is there any other option for that??????