Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

multichannel data save

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?

 

 

VI.png

 

NI Data Acquisition System.png

Thanks in advance!

0 Kudos
Message 1 of 5
(3,302 Views)

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.

0 Kudos
Message 2 of 5
(3,293 Views)

Thanks for your willness to help.

 

I have attached the VI.

0 Kudos
Message 3 of 5
(3,276 Views)

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.

0 Kudos
Message 4 of 5
(3,273 Views)

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

0 Kudos
Message 5 of 5
(3,270 Views)