Visualising of machine status/log (1 Viewer)

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
Hello,

I want to visualize the statuslog of production machines.
I have a table with data form the run/stop times of 40 machines.

1639723227513.png


Field : NAME = Machine name (only one machine is selected)
Field : DTSSTART is the field with the starttime of the disturbance.
Filed : DTSSTOP is the field with the stoptime of the disturbance.
The runtime of the machine is the time between the DTSSTOP from the first record until the DTSSTART of the next record.
In this case the machine was stoped at 1:50:02 until 1:52:27 (2,5 minute) and then runs from 1:52:27 until the next disburbance 1:54:12 (+/-2 minutes)
Now i want to visualize al 40 machines on one page with i timeline where stop-periodes are colored in Red and run-periodes colored in black.
Example of 1 line for machine 700A :
1639723831393.png

The lenght of this line must be over a periode of 24h.
I tried to do this with rectangles where the width of this rectangle dependes on the duration of the stop/run time but the maximum of fields in a form is 256.

My question :
Is there a posibility to do this an other way? (not adding rectangles after each other)

Thanks in advance,
Bieke.
 

Attachments

  • 1639724030529.png
    1639724030529.png
    998 bytes · Views: 267

June7

AWF VIP
Local time
Yesterday, 16:46
Joined
Mar 9, 2014
Messages
5,466
All 40 machines on one line?
Couldn't there be hundreds of stop/start records for 1 machine?
I don't see a way to do this for even one machine.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:46
Joined
May 7, 2009
Messages
19,229
you can use a Crosstab, though.
the "missing" minutes from your data will be "filled" in using
a Cartesian query (cross-join).

on second thought only 255 columns (?) can be outputted from a query.

the other option is "put" the (24 hrs) data in excel, then save the data as Picture.
save the picture to disk and use the image in your form/report.
 

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
All 40 machines on one line?
Couldn't there be hundreds of stop/start records for 1 machine?
I don't see a way to do this for even one machine.
I can spread it in 2 pages. It is indeed possible that there are more than 100 start/stop per 24H.
I tought maybe ther is a possibility to setup fragments in a rectangle object or a picture that i can write the pixels to?
 

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
you can use a Crosstab, though.
the "missing" minutes from your data will be "filled" in using
a Cartesian query (cross-join).

on second thought only 255 columns (?) can be outputted from a query.

the other option is "put" the (24 hrs) data in excel, then save the data as Picture.
save the picture to disk and use the image in your form/report.
Your proposal to do this in excel, it it not possible to have different column width over more rows i think.
Can you make an example of such an excel sheet to explane?

Thanks,

Bieke
 

CJ_London

Super Moderator
Staff member
Local time
Today, 01:46
Joined
Feb 19, 2013
Messages
16,610
you can simplify your image by having a single dark box for the total timeline and overlay the stop times over the top (suggest remove borders). Or consider using a line control with (the maximum) borderwidth of 6 points

The minimum width a line is 1 pixel=15 twips.

Say the minimum disturbance period you want to display is rounded to 1 minute (anything less shows as 1 minute)- there are 1440 minutes in a 24 hour period, so the width of your dark time bar would need to be 1440*15=21600 twips to display the stop times accurately - around 15 inches or 38cm

As for number of stop events for any machine over a 24 hour period, that is for you to judge, A form has a lifetime total of over 700 controls (can't remember the exact number). Set those controls left, top, height and width to 0 and for each stop time determine the position of each control, surplus controls remain hidden

then have 40 subforms, one for each machine, you can hide borders
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 20:46
Joined
May 21, 2018
Messages
8,525
This is definitely daoble as @CJ_London says with 40 subforms. I have done a very similar thing exporting to Excel for reliability analysis, if that is an option. The image you show can be done in 6 textboxes. 1 for the background and 5 for down periods. So I assume 50 max down periods a day. that is pretty easy to make 50 hidden textboxes txtDown1 to txtDown50. However I would build a lot of my form by code so I am not manually making all those hidden textboxes. If you want a few hundred then that is not problem. When the subform loads it sizes and places the down period boxes over the black "Up line" in the correct place. As CJ_says make only the used ones visible.

However, 40 subforms would still be kind of a pain on one form. It would be a lot easier to have says 10 machines per page and then scroll each group of ten.

This idea is somewhat similar

This is created using excel by exporting the time data from Access. The code was written in Excel to build based on time data export from Access. These different periods are created using the time status with more than 2 statuses than just simple up and down.
status.jpg
 
Last edited:

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 20:46
Joined
May 21, 2018
Messages
8,525
If you can post a table with some data for a day, I will see If I can demo a graph. Include at least a few different machines. How many Max disturbance periods do you expect? I see a status block. Do you have different types of disturbances? Would you want different colors like I have depending on the status?
 

CJ_London

Super Moderator
Staff member
Local time
Today, 01:46
Joined
Feb 19, 2013
Messages
16,610
For me, I would use a function to parse the recordset for a machine and return an comma separated array providing the stop start data in twips and called from your form recordsource.

Some years ago I developed the equivalent of the Excel sparklines feature (which summarises row data such as sales by month in a small graph on each row) for access forms and reports. It's not really useable here, but if you provide some data as MajP has requested I can see if I can modify it to generate the type of report you require.

Edit: just googled to see if anyone else had done something similar - found this but for reports only - which you could display as a subreport on your form
Haven't looked at the code but you might be able to adapt it
 
Last edited:

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
Hello MajP, thanks for helping me out.
This example looks very helpful to me.
If you can help me with a demo a graph that would be very nice.
Find attached a table with the disturbance data from a few machines.
Thanks in advance.
Bieke
 

Attachments

  • Alarms.accdb
    404 KB · Views: 277

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:46
Joined
May 7, 2009
Messages
19,229
demo of your virtualization.
put all in same folder.
 

Attachments

  • mach_viz.zip
    77.9 KB · Views: 226

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
Thank u CJ_London, every data and examples are welcome.

Regards Bieke.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 01:46
Joined
Feb 19, 2013
Messages
16,610
this is my 'offering' - result
1639790703852.png


I've allowed for a maximum of 40 stops and 12 machines, to extend stops, simply add more lines ensuring they maintain a numerical order and similarly for machines add more textboxes and subforms.

Per my original comments on granularity, the time line represents 1440 minutes and a stop of less than a minute is treated as 1 minute so you should see every stop
 

Attachments

  • Alarms CJ.accdb
    508 KB · Views: 240
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:46
Joined
May 7, 2009
Messages
19,229
just another "flavor".
you can double-click on the visualization chart (any record), and it will
show you the details on a pop-up form.
 

Attachments

  • mach_viz.zip
    91.1 KB · Views: 282

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:46
Joined
May 7, 2009
Messages
19,229
I've allowed for a maximum of 40 stops and 12 machines
looks good, but the graphs are somewhat the same?
especially 660J-2K, which only has 1 record.
 

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
just another "flavor".
you can double-click on the visualization chart (any record), and it will
show you the details on a pop-up form.
Very nice feature, i'm going to complete it with all machines and i will post the result.
Thank u fery much, it is a great help.

Bieke
 

CJ_London

Super Moderator
Staff member
Local time
Today, 01:46
Joined
Feb 19, 2013
Messages
16,610
Oops! it was late, needed to reset the stop controls - updated
1639819250082.png
 

Attachments

  • Alarms CJ.accdb
    484 KB · Views: 277

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
just another "flavor".
you can double-click on the visualization chart (any record), and it will
show you the details on a pop-up form.
Very nice feature, i'm going to complete it with all machines and i will post the result.
Thank u fery much, it is a great help.

Bieke
Oops! it was late, needed to reset the stop controls - updated
View attachment 96938
Now it's better CJ, i appreciate you are working that late for me :). I will test it. I learned a lot from this.
Thanks i could not do it without you guys. Top !!!
 

Bieke

Member
Local time
Today, 02:46
Joined
Nov 24, 2017
Messages
57
just another "flavor".
you can double-click on the visualization chart (any record), and it will
show you the details on a pop-up form.
Hello arnelgp, is it also possible to generate a line chart when you double click on a record?
 

Users who are viewing this thread

Top Bottom