LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing an array to file

Solved!
Go to solution

Hi I have a program which takes data from two separate counter inputs and I would like to write this data to a file.

 

I have used a producer-consumer based structure to provide the fastest data capture for my application. All requested data records to a file but it does not tabulate the data the way i want. I would like it to be something like this:

 

time, counter 1, counter 2,

0, 1, 1

1, 2, 2

 

at the moment it is producing a file like this:

 

time, counter 1,

        counter 2,

0, 1

    1

1, 2

    2

 

So basically what I am trying to say is that it is tabulating both counter inputs to one column and I would prefer separate columns. I am sure its a simple thing but cannot figure it out - an help would me much appreciated. I have attached a pic of my program and the writen file.

untitled.PNG

Many thanks

Notay

0 Kudos
Message 1 of 2
(2,573 Views)
Solution
Accepted by topic author Notay

Make sure the "convert to dynamic data" vi is set to "1d array of scalars - multiple channels".

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 2 of 2
(2,555 Views)