LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to get array data from two string output

280003FC-76B4-4219-A2AF-57226FF10531.jpeg

  

47AADA77-0990-4797-B06C-C33FA7345C26.jpeg

4C20C2B4-E676-4094-BE66-DA154B2AA2B9.jpeg

77E3D987-A925-4D2D-A6E0-BC21200BCDEB.jpeg

306B5350-F187-498F-BBFB-20C6AEAE5591.jpeg

E7361E8D-4220-4E68-BE1F-F1C8FB990D03.jpeg

 

 

0 Kudos
Message 1 of 15
(1,321 Views)

I see poor, hard-to-read, impossible to understand pictures of a screen that may be showing some LabVIEW code.  There is no question asked (except, maybe, by the title of the Post).  Please attach all of the LabVIEW code (which are files that you write with the extension .vi or .ctl) and explain what you are trying to do.  If data are involved, be sure to attach the data in some useable form.

 

Bob Schor

0 Kudos
Message 2 of 15
(1,298 Views)

Flat code without a top level loop and just a 20 (!!) frame stacked sequence is not something that can be analyzed from a few photographs of a monitor. Modern code should not have any stacked sequence.

 

Attach a simplified version of the code related to the question, provide some input data (two strings?), and explain what you want to get out of it.

0 Kudos
Message 3 of 15
(1,272 Views)

Hi, I actually I post brief about the question. Unfortunately I found it’s not posted.
I want to get output 2D array from this string indicator output data (as in image 1 & 2). Image 2 block diagram I have used to connect block diagram of image 1 & 2. As you can see (image 5) I have get some output in string indicator (freq) and string indicator 2(Ampl). Now want to convert these output from string to 2 D array. So I have tried this block diagram(in image 4) but I did not got any output data you can see in image 6.
Mainly I want to know how can I receive output data of those two string indicator and convert those data in 2 D array. So that finally can plot Amplitude vs frequency (x vs y) graph using those two data obtained in string output.
I will really appreciate your responses. 
Thank you.

0 Kudos
Message 4 of 15
(1,251 Views)

Upload your code, the pictures don't give the full story 

0 Kudos
Message 5 of 15
(1,245 Views)

You won't get any helpful advice until you upload your VI like LHarris suggested.

0 Kudos
Message 6 of 15
(1,229 Views)

Your string indicator seems to be a comma delimited table of floating point values, but we cannot tell if there are any linefeeds, so it is either a 1D (no linefeeds) or 2D DBL array.

 

Simply wire it to "spreadsheet string to array", set the delimiter to comma, the format to %f, and the type to either a 1D or 2D DBL array.

 

If you need more help, run your VI until that string indicator has data as shown in your picture. Then stop the VI and right-click the string terminal and "create constant". Copy that constant to a new VI and attach it here.

0 Kudos
Message 7 of 15
(1,221 Views)

 

Hi all,

Thank you for your response as well as suggestions.
Actually I have used “stacked sequence structure” which have total 16 case structure. In between each case structure I have added wait time of 30 sec. I have attached the drive link for stacked sequence herewith.

“Repetition of the question”
I want to get output 2D array from this string indicator output data. As you can see (in front panel) I have get some output in string indicator (freq) and string indicator (Amp). Now want to convert these output from string to 2 D array. So I have tried this block diagram (16 on sequence) but I did not got any output data you can see in array and graph of “front panel”.
Mainly I want to know how can I receive output data of those two string indicator and convert those data in 2 D array. I am unable to receive that two string output data to get data in 2D array. So that finally I can plot Amplitude vs frequency (x vs y) graph as well as extract numerical data in .csv.
Please find the attached link of google drive which have the .VI file as well as some images.
Thank you all for your time.

 

https://drive.google.com/file/d/1LFh3ViKGXrDbgEPeM6m6mojJCmHIy6bY/view?usp=share_link

0 Kudos
Message 8 of 15
(1,188 Views)

You really (really!!!) need to stop posting endless numbers of blurry photographs! They are completely useless for us and just clutter the forum.

0 Kudos
Message 9 of 15
(1,183 Views)

What is your purpose for not uploading a VI? You have been told multiple times by other forum members that blurry images to not help in solving your question.

 

PLEASE upload your VI so we may help solve your problem.

0 Kudos
Message 10 of 15
(1,145 Views)