Jump to content

Custom alarm log


Aleksey

Recommended Posts

Hey,
I need to create my own alarm log. I decided for each accident to create its own discrete variable. By triggering an accident to display the text in the log. With the disappearance of the text to remove. Does the development environment have a table type tool? Or how to implement this algorithm. Thank!

Link to comment
Share on other sites

OK. I can create an event structure. And create a new element in the data table for the event (Or rather, I can not create a new line, just add an entry to the existing ones). The question is different. How do i visualize data table fields. Can I link them to tags of visual elements? The designer asks to make a magazine in the following form ...

monitoring_system13 (1).jpg

Link to comment
Share on other sites

I looked at an example. You do not quite understand me. I need to move away from the standard accident log, since it does not suit the customer.
Let's say I created a data table for crashes. Created a separate structure of the accident. (For example Alarm (bool active, int
 index, string description, time response time))
Created an accident summary page. On the page I create binary elements of images. How do I attach a tag of a picture's status to the field of a table element. How do I dynamically create image blocks in an accident. How to tune the position of the image to the variables, to precisely position the dynamically generated elements.

Link to comment
Share on other sites

  • MVP 2023

It is not possible to dynamically position an image in UniLogic or load it into a data table.  Unfortunately, the end user is going to have to settle for something simpler that you can achieve with the tools we have.  What they want requires a development environment with more graphics horsepower, like .NET.

Joe T.

Link to comment
Share on other sites

You can have 5 structs with the same structure that is used in the Data table, and load 5 rows into them.

Once the up or down arrows are clicked, change the start index of the first row, and either re-read the entire 5 rows (The memory will need to be read and written 5 times anyway, even if you copy from 1 struct to another).

You could create a custom control that represents the row, and place it 5 times (and control the visibility  if needed if a struct is empty), and / or don't let the user scroll after the last / first row

 

If you need dynamic images (and not just image by index), then the DT can store a string that will be used as a path for the image (if you use an image with indirect source).

Those images will have to be stored on the external SD (and you will have to place them there).

Link to comment
Share on other sites

On 5/15/2019 at 10:47 AM, Saragani said:

You can have 5 structs with the same structure that is used in the Data table, and load 5 rows into them.

Once the up or down arrows are clicked, change the start index of the first row, and either re-read the entire 5 rows (The memory will need to be read and written 5 times anyway, even if you copy from 1 struct to another).

You could create a custom control that represents the row, and place it 5 times (and control the visibility  if needed if a struct is empty), and / or don't let the user scroll after the last / first row

 

If you need dynamic images (and not just image by index), then the DT can store a string that will be used as a path for the image (if you use an image with indirect source).

Those images will have to be stored on the external SD (and you will have to place them there).

I went exactly this way, thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.