Problems with VISA connections

Post beginners questions here. Don't be ashamed starting stupid topics.
Ответить
Bombbooo
beginner
beginner
Сообщения: 27
Зарегистрирован: 19 мар 2012, 16:03
Версия LabVIEW: 2010
Контактная информация:

Problems with VISA connections

Сообщение Bombbooo »

Hello, I got a problem about acquiring data using VISA block diagrams. It doesn't read the data from my test bench correctly. As you can see on my VI, there are many acquired values from the test bench. All data acquisition block diagrams are obtained from the test bench, then I tried to connect it with my own VI with making a few changes. However it turned out to be not working properly. The values don't change along with the sensors. The data is only read once at the beginning, then no more responses. Could you please check if there is something wrong with my VI? The sub VI "VI connection" is responsible for the data acquisition which is connected to the VISA port block diagram outside the while loop



The attachment "Data Read (adapted)" is the VI from the company. I extracted the block diagrams inside the while loop, and then made them as a sub vi because I don't want to have any while loops in the sub vi.

You can ask me anything if you don't understand my problems. Its quite hard to explain.

Thank you
Вложения
Master Thesis VI.vi
(86.74 КБ) 259 скачиваний
sub vi.zip
(246.49 КБ) 268 скачиваний
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

Re: Problems with VISA connections

Сообщение mzu2006 »

It misses some subVIs (SplittingValues.vi)
In addition VIconnecton.vi has input/outputs that do not match the way it is wired in Master Thesis.vi
please, post a consistent piece of code, it is very hard to understand what did you mean.
Bombbooo
beginner
beginner
Сообщения: 27
Зарегистрирован: 19 мар 2012, 16:03
Версия LabVIEW: 2010
Контактная информация:

Re: Problems with VISA connections

Сообщение Bombbooo »

Sorry for uploading the wrong set of VIs. Here we go!!
Вложения
Master Thesis VI.vi
Main VI
(88.58 КБ) 247 скачиваний
Selecting Data to Plot.vi
(64.82 КБ) 350 скачиваний
Selecting Data to Save.vi
(29.81 КБ) 261 скачивание
Splitting Vaues.vi
(26.83 КБ) 263 скачивания
Unit Selection.vi
(18.62 КБ) 249 скачиваний
Bombbooo
beginner
beginner
Сообщения: 27
Зарегистрирован: 19 мар 2012, 16:03
Версия LabVIEW: 2010
Контактная информация:

Re: Problems with VISA connections

Сообщение Bombbooo »

2 more sub VIs
Вложения
VI Connection.vi
(48.99 КБ) 253 скачивания
WriteDataToFile.vi
(23.56 КБ) 236 скачиваний
Bombbooo
beginner
beginner
Сообщения: 27
Зарегистрирован: 19 мар 2012, 16:03
Версия LabVIEW: 2010
Контактная информация:

Re: Problems with VISA connections

Сообщение Bombbooo »

I think I found the problem already. I got a problem with time delay of the data writing into file. It also delays the data acquisition which I don't want. As you can see in my VI, I put the time delay only in the sub VI of writing data into file. However, it also retards the whole program. I want my DAQ to run at the normal speed but the data to be saved every 1s. If I remove the time delay of saving data, there will be too much data in the file. What should I change the time function? It might be the consequence of the position of the time block function.



Thank you
Вложения
labview 9.jpg
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

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