FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert a 1D array row into a new array driven by event

Hello everybody,

I'm developing a acq program for [c]FieldPoint. During my measuremt loop (1Hz) I read 3 channel (two Temps and 1 AI) from the FieldPoint. I produce a histogram of each channel inside the loop and write the occurences back to an ini file each time when the ignition of the vehicle is turned off. I figured out that it takes a lot of time to write ini file so that I desided that I want to save the histo data within an array and after 86400 seconds I write a file.
My problem is that I don't know how I can add a row to an array driven by the boolean event ignition off:

e.g.
Ignition = 1 then put the histodata into the first row of an array.
Ignition = 0 do nothing
Ignition = 1 again, put the new histodata into the next row of the same array.

The result should be an array with multiple rows and colums (one column for each occurence and one row for each event).
Can anybody help me?

Thank you very much.

Thomas
Thomas
0 Kudos
Message 1 of 2
(3,036 Views)
Hello Thomas,

for an array there exists a property node "number of rows" and "number of columns". Perhaps you can increment this value with a button or anything else (boolean event) via "event structure" or "case structure".
0 Kudos
Message 2 of 2
(3,032 Views)