Cursor identification

Post beginners questions here. Don't be ashamed starting stupid topics.
Ответить
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Cursor identification

Сообщение zidz »

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.
jg69

Professionalism
developer
developer
Сообщения: 265
Зарегистрирован: 14 окт 2008, 00:09
Награды: 1
Версия LabVIEW: 8.x, 20x

Re: Cursor identification

Сообщение jg69 »

The event "Cursor Move" of the event-structure does tell you which cursor has been moved:
Image01.png
Image01.png (2.8 КБ) 8325 просмотров
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.
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Cursor identification

Сообщение zidz »

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...
jg69

Professionalism
developer
developer
Сообщения: 265
Зарегистрирован: 14 окт 2008, 00:09
Награды: 1
Версия LabVIEW: 8.x, 20x

Re: Cursor identification

Сообщение jg69 »

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":
Image01.png
Image01.png (653 байт) 8318 просмотров
Jens
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Cursor identification

Сообщение zidz »

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
jg69

Professionalism
developer
developer
Сообщения: 265
Зарегистрирован: 14 окт 2008, 00:09
Награды: 1
Версия LabVIEW: 8.x, 20x

Re: Cursor identification

Сообщение jg69 »

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
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Cursor identification

Сообщение zidz »

Yes I can, but not now....I haven't Labview by me... I send it on evening.
Ответить

Вернуться в «For beginners»