LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I have data written to a file at the points where I want them to.

My application has 2 parts of programming
1. This part generates numbers (1-300)and saves in a file.
2. This part saves the data selected by user (from a series of multiple choice questions) into the same file.
I want my application to be in such a way that "the first answer selected (from the multiple choice question) must align corresponding to the number "1" generated by the first part of my application and the second answer selected(from the multiple choice questions) should correspond to "2" of the number generated and so on .
My coding however saves the answer one behind the other and Im unable to do the alignment. Is this possible?
0 Kudos
Message 1 of 3
(2,484 Views)
could you post an example. I think that you will need to use the format into string function. Or if you are using LV 7 you can use the build text express vi. These functions will allow you to format text and they you can write it to a file. The drawback is the build text express vi will only allow a maximum of 8 inputs. The format into string will allow more. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 3
(2,484 Views)
aps wrote:

> My application has 2 parts of programming
> 1. This part generates numbers (1-300)and saves in a file.
....


> My coding however saves the answer one behind the other and Im unable
> to do the alignment. Is this possible?
>

If the numbers generated in part 1 are in order, why not put int array
(300,1), expand this array in part 2 of program with a second column,
insert answer code at rich matrix row and save data at end of program.

Jörg
0 Kudos
Message 3 of 3
(2,484 Views)