Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Aquire samples into excel

Hello,
 
I am trying to aquire data straight into excel using active X. I found a sample code below that will do exactly what I want. It generates random data and writes it to excel on demand by user selecting a button. The data it writes now is just random data. I added a DAQ with 6 channels that will aquire one sample on demand which is what I want, and I would like to write this data into excel instead of the random data. I tried replacing the random data by the DAQ using a conversion from DDT, but then the loop indexing does not work, and it would not let me disable indexing. I am sure this is a simple solution and I would like you help.
 
Cheers,
Alloush
0 Kudos
Message 1 of 3
(3,007 Views)
One thing that's pretty obvious is that your simulated data is a 2D array and the output of the DAQ Assistant is a 1D array. With the DAQ Assistant set for 1 sample, you only have a single row.
0 Kudos
Message 2 of 3
(3,000 Views)
Thank you for that,
I solved the problem and you were right.


Cheers
Alloush
0 Kudos
Message 3 of 3
(2,996 Views)