LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using slider to display time

Solved!
Go to solution

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
Message 1 of 8
(4,675 Views)

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
Message 2 of 8
(4,671 Views)

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
Message 3 of 8
(4,668 Views)

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
Message 4 of 8
(4,642 Views)

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
Message 5 of 8
(4,631 Views)

@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
Message 6 of 8
(4,628 Views)
Solution
Accepted by topic author Sjefsgjogleren

Does this help you to get what you need?

 

 

 

Download All
Message 7 of 8
(4,619 Views)

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

 

Greetings

Kristoffer

0 Kudos
Message 8 of 8
(4,594 Views)