11-17-2011 08:41 PM
My setup is a multi-channel system as shown in the following pics. Now I am going to save the signals in a data file with the format as
time |
Channel_0 |
Channel_1 |
Channel_0 |
Simulate signal |
Time |
Data1 |
Data2 |
Data2 |
Simulate data |
But with my configured system, I can only save the data from stator current, vibration_1 and vibration_2. Even though, these data are saved in one single column, while I expect to keep each data source in one specific column.
Can anybody teach me how to modify my system so that the required format can be achieved?
Thanks in advance!
11-18-2011 08:37 AM
Why would you need two file write functions? The Write to Measurement File is probably working correctly. You are incorrectly converting that evil dynamic data to a 1D array and then saving that. That is probably why you have a single column. You do not even attempt to save the simulated signal by merging it with the acquired signals.
To really get help, you need to post the actual VI. Cannot debug an image and the use of Express VIs is especially bad since so much code is hidden.
11-21-2011 09:20 AM
Thanks for your willness to help.
I have attached the VI.
11-21-2011 09:24 AM
The conversion to a 1D dbl is all wrong. You would need to convert to a 2D dbl. Still don't see the point of having both a Write to Text File and a Write to Measurement File. Use one or the other.
11-21-2011 09:24 AM
@Dennis Knutson wrote:
Why would you need two file write functions? The Write to Measurement File is probably working correctly. You are incorrectly converting that evil dynamic data to a 1D array and then saving that. That is probably why you have a single column. You do not even attempt to save the simulated signal by merging it with the acquired signals.
To really get help, you need to post the actual VI. Cannot debug an image and the use of Express VIs is especially bad since so much code is hidden.
Sine I could not save correctly with the File I/O module, I tired to use Write to Measurment File instead.