Hi,
I have three cursors in digital waveform graph. How I can identify the right cursor in event handler (cursor move)?
I have similar problem with controls too. I have three knobs. How I can identify specific knob in event handler? Can I define some ID?
Thank you for you reply. Regards Zdenek.
Cursor identification
-
- developer
- Сообщения: 265
- Зарегистрирован: 14 окт 2008, 00:09
- Награды: 1
- Версия LabVIEW: 8.x, 20x
Re: Cursor identification
The event "Cursor Move" of the event-structure does tell you which cursor has been moved:
Also with your three knobs, just define a value-change event for each knob inside the event-structure.
If that does not answer your question please upload a VI where your problem is explained in more detail.
Jens.
So I don't understand your problem.Also with your three knobs, just define a value-change event for each knob inside the event-structure.
If that does not answer your question please upload a VI where your problem is explained in more detail.
Jens.
-
- beginner
- Сообщения: 18
- Зарегистрирован: 27 июл 2010, 15:23
- Версия LabVIEW: 9.0
- Контактная информация:
Re: Cursor identification
My bad...Knobs are clear.
I know, that in event handler is CursIdx but what is it?
When I create in window Object Properties: Digital waveform graph three cursors: Cursor 0,1, 2, how I retrieve Idx for each cursor? It is 0 for Cursor 0?
Thank you...
I know, that in event handler is CursIdx but what is it?
When I create in window Object Properties: Digital waveform graph three cursors: Cursor 0,1, 2, how I retrieve Idx for each cursor? It is 0 for Cursor 0?
Thank you...
-
- developer
- Сообщения: 265
- Зарегистрирован: 14 окт 2008, 00:09
- Награды: 1
- Версия LabVIEW: 8.x, 20x
Re: Cursor identification
Exactly that. Think of the list of cursors that you have created as an array (BTW: internally it is an array!).
CursIdx is the array index of that list, so 0 is the first Cursor, 1 the second and so on.
Compare this with the array of Cursor settings that you can always set or read with the property node "Cursor List": Jens
CursIdx is the array index of that list, so 0 is the first Cursor, 1 the second and so on.
Compare this with the array of Cursor settings that you can always set or read with the property node "Cursor List": Jens
-
- beginner
- Сообщения: 18
- Зарегистрирован: 27 июл 2010, 15:23
- Версия LabVIEW: 9.0
- Контактная информация:
Re: Cursor identification
Thanks....now it is clear......
I have next question....
I have digital waveform. Length is about 5s. I will show it in digital waveform graph, but by 100ms block. I will set graph range 0 - 100ms and x-scrollbar. It works fine.
My problem is: How I can show concrete block, which is marked by cursor?
For example:
I release cursor in block with time 3,9-4,0 s. After that I will scroll to the time 1,2-1,3 s and when I press for example button or event will be called I will scroll to cursor position.
How I can make it? Thank you for you reply.
Regards Zdenek
I have next question....
I have digital waveform. Length is about 5s. I will show it in digital waveform graph, but by 100ms block. I will set graph range 0 - 100ms and x-scrollbar. It works fine.
My problem is: How I can show concrete block, which is marked by cursor?
For example:
I release cursor in block with time 3,9-4,0 s. After that I will scroll to the time 1,2-1,3 s and when I press for example button or event will be called I will scroll to cursor position.
How I can make it? Thank you for you reply.
Regards Zdenek
-
- developer
- Сообщения: 265
- Зарегистрирован: 14 окт 2008, 00:09
- Награды: 1
- Версия LabVIEW: 8.x, 20x
Re: Cursor identification
Can you post an example vi with code as far as you got. I don't want to re-program your description from scratch...
Jens
Jens
-
- beginner
- Сообщения: 18
- Зарегистрирован: 27 июл 2010, 15:23
- Версия LabVIEW: 9.0
- Контактная информация:
Re: Cursor identification
Yes I can, but not now....I haven't Labview by me... I send it on evening.