LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

conversion of 1-d string to dynamic data

Solved!
Go to solution

Greetings,

I am acquiring data via serial from controller.

Now the problem is that the data is in the form of string which i have converted into 1-d array NOW  i want to save that live data in text file that can be viewed on EXCEL.
i have used "write to measurement file " box which is used for this purpose but it doesnt accepts the signal of the output that is in form of 1-d string.
Please guide me how to solve this problem.

Download All
0 Kudos
Message 1 of 15
(6,728 Views)

Hi,

Use Write to Spreadsheet file.vi. this will allow you to save 1-D array. please see attached picture

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
0 Kudos
Message 2 of 15
(6,721 Views)

thanks for the guidance. now the thing is how to append the file that is being created because when i set it to TRUE than also it asks for the path again and again.
also the data that is being created is being overwritten on the same row irrespective of creating five different rows.
LOOKING FORWARD FOR GUIDANCE

0 Kudos
Message 3 of 15
(6,677 Views)

You have the path Input, wire a valid file path so that you can avoid the browse window. Also please go thorugh LabVIEW basic materials so that you can understand how LabVIEW works.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 15
(6,670 Views)
Solution
Accepted by curiousmech

Hi,

Please find modified code and front screen this should solve your problem.

 

1. Make Append? property true so data will not be overwritten. (shown in picture)

2. Give some valid path (Shown in picture as E:/abcd.csv......you can give any valid path)

 

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
Message 5 of 15
(6,662 Views)

@Miraz_Automation wrote:

Hi,

Please find modified code and front screen this should solve your problem.

 

1. Make Append? property true so data will not be overwritten. (shown in picture)

2. Give some valid path (Shown in picture as E:/abcd.csv......you can give any valid path)

 


I have a comment.

 

You don't have to use local variable to switch the button back to Off. Set the Mechanical action to "Latch When released", so this will execute the High state once and automatically switched nack to Off.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 15
(6,655 Views)

Agree......i just quickly made it and posted, it can be modified for betterment.Smiley Wink

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
0 Kudos
Message 7 of 15
(6,651 Views)

@Miraz_Automation wrote:

Agree......i just quickly made it and posted, it can be modified for betterment.Smiley Wink


Hi, Miraz:

 

I notice you are a new contributor - which is awesome, because we always welcome new blood to the forum.  Answering a post with a VI to solve the issue isn't always the best path.  Have you heard the one about teaching a fisherman to fish...?  Many (most?) times it is better for the original poster if we engage their brain to make them come up with a solution based on information that we provide, rather than spoon-feed them the answers.

 

This doesn't apply to all posts on the forum, of course.  But after a while you recognize who needs help and who just needs an answer.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 15
(6,636 Views)

@billko wrote:

@Miraz_Automation wrote:

Agree......i just quickly made it and posted, it can be modified for betterment.Smiley Wink


Hi, Miraz:

 

I notice you are a new contributor - which is awesome, because we always welcome new blood to the forum.  Answering a post with a VI to solve the issue isn't always the best path.  Have you heard the one about teaching a fisherman to fish...?  Many (most?) times it is better for the original poster if we engage their brain to make them come up with a solution based on information that we provide, rather than spoon-feed them the answers.

 

This doesn't apply to all posts on the forum, of course.  But after a while you recognize who needs help and who just needs an answer.  😉


Not to mention you could be doing some student's homework.  We like to made the original poster show that they are at least trying.  Have then show their current code and have them tell you where they are having issues.  Then we help them fix that issue and point out anything else that could be problematic.  As Billdo stated, it is best for them to get the answer on their own.  We just try to provide the light to show them where it is.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 15
(6,628 Views)

Hi Billko,

 

Thanks for advice I personally belive you are 100 % correct. but my intension is to make people learn quickly and come to a stage so that they can utilize LabVIEW knowledge in achieving their organizational and personal goal . I think its not the age of doing R&D and reinventing the wheel its better to look around grab it and then put extra efforts to customize it for our needs. Thats what I belive.Smiley Wink

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
Message 10 of 15
(6,627 Views)