i can use labview to read data sent from a 12bits A/D converter via rs232. these data are from two channels of the ADC, one channel is for x, the other is for y. x and y was sent alternatively. my next step is to treat (times factors for x and y), and then sort these data, even is for y and odd is for x, i want to plot x and y, and save these data in a spreadsheet(three columns, one for x, one for y, one for time) . the total numbers of data is unpredictable, but, typically less than 10k. could you please show me how to do that
thank you very much
how to display and save data read from an ADC via rs232
-
dadreamer
- professor
- Сообщения: 3926
- Зарегистрирован: 17 фев 2013, 16:33
- Награды: 4
- Версия LabVIEW: 2.5 — 2022
- Благодарил (а): 11 раз
- Поблагодарили: 127 раз
- Контактная информация:
Re: how to display and save data read from an ADC via rs232
You could implement the following algorithm:
Instead of the producer loop you should place your data acquisition loop. But I did not quite understand your time processing method. In general, time for x and time for y has to be different, and you cannot simply insert it as third column into spreadsheet file because it wouldn't match x or y values. In my example I used just even time values (50 for one column: x or y), odd values are not used, but you may need them.-
- interested
- Сообщения: 3
- Зарегистрирован: 10 июн 2014, 11:30
- Версия LabVIEW: 2013
- Контактная информация:
Re: how to display and save data read from an ADC via rs232
Hi, dadreamer:
thank you very much for your reply.
since I just start to use LabView, I am wondering if you could please attach the vi file. I do not quite understand what some of the labview palettes are for.
again, thank you
thank you very much for your reply.
since I just start to use LabView, I am wondering if you could please attach the vi file. I do not quite understand what some of the labview palettes are for.
again, thank you
-
dadreamer
- professor
- Сообщения: 3926
- Зарегистрирован: 17 фев 2013, 16:33
- Награды: 4
- Версия LabVIEW: 2.5 — 2022
- Благодарил (а): 11 раз
- Поблагодарили: 127 раз
- Контактная информация:
Re: how to display and save data read from an ADC via rs232
pengsun, this is Snippet. That means you can save it on the hard disk, drag 'n drop onto LabVIEW diagram and you get the code!
http://www.ni.com/white-paper/9330/en/
http://www.ni.com/white-paper/9330/en/
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
- 5 Ответы
- 847 Просмотры
-
Последнее сообщение dadreamer