01-23-2013 12:08 PM
Hello.
I'm trying to build an application where I sample data from an accelerometer with a USB-1208FS interface.
I have this while loop inside with some virtual instruments to display the waveform and the frequency components of it. I have tried many different approaches to save to a file but it just doesn't seem to work. No file is even created even though I'm admininstrator.
The data that is fed to the filters and such alike is "1-D Array of Waveform (DBL)". Tried converting it to other types of data but doesn't work. This VI for example "Write Waveform to File.VI" does not do anything even though it should accept this type of data; that is "waveform array is a 1D array of the waveforms you want to write to a file."
I'd appreciate any help on my way to achieve this task. Regards Abraham
Solved! Go to Solution.
01-23-2013 12:44 PM
You could look at "Write to text file.vi" example that ships with labview for some pointers.
01-23-2013 01:22 PM
I will.
Thank you.
Any other input is greatly appreciated.
01-23-2013 01:28 PM
Well, you say that you tried different ways to save to a file but the VI you posted does not have any file write functions. If you want suggestions on what might be wrong, you need to post the code you tried.
01-23-2013 01:37 PM
Sorry. Maybe I should have posted that but I was afraid I would then attach too many different type of tries and flood this topic 🙂
However, I did it as follows: I wired a VI function, inside the loop / outside the loop and created a contorl to specify path. Nothing happens.
It's sad, really because I've put many hours trying different approaches (converting to different data and such).
01-24-2013 09:38 AM
You still did not post this VI. You don't say exactly what function and what does inside the loop/outside the loop supposed to mean? My only guess is that you are using the stop button on the toolbar.
01-26-2013 01:38 PM
Thanks for the help. I was able to sort it out. I had used the 'Convert from dynamic data' instead of 'Convert to dynamic data'. 🙂