Some questions

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

Some questions

Сообщение zidz »

Hi,
I want write here some questions for my project.
First questions:
I have a digital waveform. How I can get count of samples from this waveform?
Regards Zdenek.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: Some questions

Сообщение Eugen Graf »

Use "Get Waveform Component" to get the Signal Array, and than "Array Size" to get the count of elements in the array.
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Some questions

Сообщение zidz »

THX, it works. I have next question. When I click in graph, I will move cursor in this position. I handle event click on graph and decode horizontal coordinate. How I can translate this coordinate to cursor.PosX?
Thank you for you reply. Zdenek

I have idea that I get start of waveform , end of waveform from graph and graph width and then I compute position by this formula: ((endWave - startWave) / graphWidth) * mouseClick.CoordinateX. If it is possible, how I can get from graph showed startWave and end wave?
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: Some questions

Сообщение Eugen Graf »

zidz писал(а):THX, it works. I have next question. When I click in graph, I will move cursor in this position.
Why you don't want to use built in cursors function of the graph?
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Some questions

Сообщение zidz »

Because I am absolute beginner ;) Can you please specified it? Where I can find this function? I need make this: when I click into graph, then I need move cursor in this point (only X coordinate is fine)...
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: Some questions

Сообщение Eugen Graf »

If you create a cursor, you can move them with your mouse.
Вложения
Digital Waveform.png
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Some questions

Сообщение zidz »

Yes, i have it. But when I choose allow dragging = single plot (free dragging is bad because I can go with cursor behind end wave) and I zoom wave, I can't scroll wave with cursor. So I though, that I scroll wave with scrollbar and then I click in wave and cursor'ld come. :)
zidz
beginner
beginner
Сообщения: 18
Зарегистрирован: 27 июл 2010, 15:23
Версия LabVIEW: 9.0
Контактная информация:

Re: Some questions

Сообщение zidz »

Hello,
I have next problem. I have digital waveform and I will show in grapf next waveform, which is first waveform in hexadecimal state (each 8 bits in first waveform = one hexadecimal number in second waveform). Please consuit me, how I can make it. Thank you for you reply.
Regards Zdenek.
Ответить

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