cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

Using slider to display time

Resolvido!
Ir para a solução

Hello!

 

I am trying to use a vertical slider bar to represent my 72-hour dataset. I have also added two additional sliders, to represent a time intervall inside the dataset. My problem is that when i try to connect the cluster with timestamps to the slider it says "Cluster->output_timestamp, a 1D of timestamp, conflicts with cluster slide, a double [64-bit real]".

 

I understand that there is a type conflict between expected input to the slider and actual input, my question is how to solve this problem? Do I have to convert all the data, or is there some options for the slider that I have not got right?

 

I have attached a image to show what I want my slider to do.

 

Greetings

Kristoffer

0 Kudos
Mensagem 1 de 8
5.091Exibições

I'm afraid I can't see any detail in your image. Can you create a small piece of code which demonstrates the problem you're trying to solve.

0 Kudos
Mensagem 2 de 8
5.087Exibições

The details in the image is not that important. It is as simple as that I want to represent the whole dataset with the green colour that you can see from the image, plus that I want to represent a certain time intervall inside the dataset with red colour (just as in the image).

 

Greetings

Kristoffer

0 Kudos
Mensagem 3 de 8
5.084Exibições

You need to explain the structure of your cluster. It sounds like you have a slider in the cluster that you are trying to connect a 1D array of timestamps to, so do you have a 1D array of sliders, or do you have a 1D array of clusters with a scaler slider? Is the cluster a control or an indicator? It could be that you just need to convert the timestamp into Double, but then you will need to adjust min and max values of the slider scale and it's display format.

0 Kudos
Mensagem 4 de 8
5.058Exibições

Yes, I am trying to connect a 1D array of timestamps (my whole dataset). In addition, I want to connect two certain timestamps. In order to get all the input to the slider, I am trying to use a Bundle function. The cluster is an indicator, and the input might vary from time to time. But, how can I easiest convert timestamp to number, if that might be a solution?

 

Greetings

Kristoffer

0 Kudos
Mensagem 5 de 8
5.047Exibições

@Sjefsgjogleren wrote:

Yes, I am trying to connect a 1D array of timestamps (my whole dataset). In addition, I want to connect two certain timestamps. In order to get all the input to the slider, I am trying to use a Bundle function. The cluster is an indicator, and the input might vary from time to time. But, how can I easiest convert timestamp to number, if that might be a solution?

 

Greetings

Kristoffer


I hate to ask the obvious but, what exactly is wrong with formatting the slider's scale as Absolute Time and use the to dbl conversion bullet?  The slider's scale understands how to format a dbl as absolute time (Look ma, No Code)


"Should be" isn't "Is" -Jay
Mensagem 6 de 8
5.044Exibições
Solução
Aceita pelo autor do tópico Sjefsgjogleren

Does this help you to get what you need?

 

 

 

Baixar tudo
Mensagem 7 de 8
5.035Exibições

Thank you! I was that property node that I needed in order to get the scaling right!

 

Greetings

Kristoffer

0 Kudos
Mensagem 8 de 8
5.010Exibições