mulderm
Member
Hello,
I want to make a histogram of an input (y-axis) is plotted against time (x-axis).
Using OB35 (100 ms), I want use DB1 (boolean, length 500) for store the status of an input and store in DB2 (length 500) the sample time.
If my sample is starting become the 1st place after 100 ms filled in DB1 and DB2 again after 100 ms the 2nd place in DB1 and DB2 etc.
DB1 en DB2 is filled up to the (500), and the sample is stopped.
If the DB1 and DB2 are full, I import them into Excel to create a histogram.
My question is: How can I make a program for this?
Are there examples of these programs?
regards,
mulderm
I want to make a histogram of an input (y-axis) is plotted against time (x-axis).
Using OB35 (100 ms), I want use DB1 (boolean, length 500) for store the status of an input and store in DB2 (length 500) the sample time.
If my sample is starting become the 1st place after 100 ms filled in DB1 and DB2 again after 100 ms the 2nd place in DB1 and DB2 etc.
DB1 en DB2 is filled up to the (500), and the sample is stopped.
If the DB1 and DB2 are full, I import them into Excel to create a histogram.
My question is: How can I make a program for this?
Are there examples of these programs?
regards,
mulderm
Last edited: