LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1D Array of Waveform DBL to file or sound

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(4,065 Views)

You could look at "Write to text file.vi" example that ships with labview for some pointers.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 7
(4,056 Views)

I will.

 

Thank you.

 

Any other input is greatly appreciated.

0 Kudos
Message 3 of 7
(4,043 Views)

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.

0 Kudos
Message 4 of 7
(4,036 Views)

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).

0 Kudos
Message 5 of 7
(4,031 Views)
Solution
Accepted by Abraham_E

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.

Message 6 of 7
(4,003 Views)

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'. 🙂

0 Kudos
Message 7 of 7
(3,983 Views)