LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialize array

I want to use the function initialize array in order to write data of waveform to a file.
The sampling frequency will be equal to 250Khz and the duration wiil be 40second.
What could i do to solve thi problem?.
Please answer me as soon as possible.
 
0 Kudos
Message 1 of 6
(3,112 Views)

Hi Paparas

How were you expecting to use the initialize array function? If you are trying to write to a file you will need to use some of the file IO functions available. What file type are you hoping to save to and can you post the program that you have so far please.

If I can understand what you need better than I will try my best to advise further.

 

best regards

Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 2 of 6
(3,100 Views)
Paparas,

the "Initialize Array" function creates an array of the given size and assigns every element the same value which you have to pass to the function. So there will never be any waveform contained in an array created with this function without any modification of this array within your software.....
For the start, i would suggest you to use the "Simulate Signal" express VI. I think it gives you many options you will be interested in.

hope this helps,
Norbert


Message Edited by Norbert B on 06-03-2008 04:43 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 6
(3,090 Views)
I want you to help me by senting you my vi.
I want to initialize array from data which are the y value of the waveform
 
0 Kudos
Message 4 of 6
(3,076 Views)
hi

this is my instant reactions before seeing the vi.
you wish to initialize an array with the data from the Y parameter of the waveform??

the Y parameter you get from the waveform cluster IS an ARRAY.

0 Kudos
Message 5 of 6
(3,063 Views)
Thanks for posting your code.
 
You are building two graphs here, "acceleration" and "acoustic emitions graph" to create both these graphs you have used some interesting designs of feedback nodes etc to be able to specify the Y component before it is displayed on the graph. As is stated in the above post, this is indeed in the form of an array.
 
The initialize array function will create an array with defined elements but after looking at your code it is still unclear to me how you can incoporate this into some cide of file opperation that you stated in your first post.
 
What is the desired effect that you are looking for so what is the eventual outcome that you want to do with this part of the program and then maybe I can sugest the best way forward.
 
best regards
Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 6 of 6
(3,040 Views)