LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build array from discrete event cases

Hi,

 

New to Labview so apologies if the wording of my question seems simplistic or not clear, if anyone feels they can help but needs further clarity on my issue please let me know.

 

I am trying to create a user interface for a test lab environment, where the operator will select specific options or input data. I then want these options and data to be recorded and written to spreadsheet or text file so that the information can be reviewed to find out who did what, when and for how long. The intention is this will constantly run and return the operator back to Page 1 to choose the same or different activity. 

 

I feel ok with creating the events etc and writing to either spreadsheet or text file and I know my block diagram needs tidied up but that isn't my issue. My issue is that when the cases aren't active they send default values and my output file is full of blanks and the data I want is on multiple rows. What I get is shown in the attached .txt file. Above the dashed line is what I get but what I want (manually typed into .txt file for explanation purposes) is below the dashed line. 

 

Hopefully someone out there can help, and if there are any other useful pointers please let me know. Fingers crossed. 

 

Enthusiastic but learning

Download All
0 Kudos
Message 1 of 3
(2,286 Views)

Saving back to an LV16, 17 or 18 will get you more traffic.

0 Kudos
Message 2 of 3
(2,274 Views)

What I would do is use a Shift Register to hold the values in the array.  Then you just have to replace (Replace Array Subset) the value(s) you need updated.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,268 Views)