01-14-2015 01:09 PM
I am trying to connect 1D array of strings output to a strings input but it will no let me.
Solved! Go to Solution.
01-14-2015 01:12 PM - edited 01-14-2015 01:14 PM
An array of strings and a string are very different things. Your arrays seem to contain only a single element, so insert an "index array" to get that element as a plain string.
Where do these string array diagram constants come from? If it is just a diagram constant, grab the element and move it out of the array container, then delete the array container.
01-14-2015 01:14 PM
From what to what are you trying to connect? There are way too many possibilities in the example you gave us.
01-14-2015 01:21 PM
And what exactly are you trying to do here? There is no need to open a file 3 times in parallel. Just open it once and do whatever reads you have to with the same reference, preferable in series. You might even be able to just use a FOR loop to do all of your reads.
01-14-2015 01:21 PM
I just added an index array and it works good now.
01-14-2015 01:22 PM
im not that good at labview quite yet to put it in for loops and stuff like that.
01-14-2015 01:25 PM
what i am trying to do is read the data collected from my daq modules and display them on three different graphs.
01-14-2015 01:32 PM
If you are new to LabVIEW here are some tutorials when you get some time.
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
As for you issue specifically. An understanding of what the data represents is important, and knowing this will likely answer your question for you.
Lets say you have a single analog reading of 5 volts. This is a scalar double. Now you want to graph it so you grab the Waveform Graph and put it on the front panel. But when you wire your 5V reading to the graph it says you need to provide a 1D array. This makes sense when you realize the graph is intended to display many values at once, not just one value. This is why it wants an array of values to put on the graph all at once.
A single reading can be turned into an array using the Build Array function, but it is still just a single reading. If you wired your 5V reading to a build array then to the graph it would run, but what would you see? Nothing because the graph can't display a single point of data, it needs multiple values. So you could try to build previous 5V readings into the array so you have multiple values to display at once.
Your situation is similar, you need to understand why you have a 1D array of strings, and you need to understand why your function needs a single string value.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-14-2015 01:33 PM - edited 01-14-2015 01:34 PM
01-14-2015 01:39 PM
you make this look super easy.