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
Problems with VISA connections
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Problems with VISA connections
- Вложения
-
- Master Thesis VI.vi
- (86.74 КБ) 261 скачивание
-
- sub vi.zip
- (246.49 КБ) 270 скачиваний
-
mzu2006
- 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
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.
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.
Правила форума (Forum rules in Russian)
rm -rf /mnt/windows
rm -rf /mnt/windows
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Re: Problems with VISA connections
Sorry for uploading the wrong set of VIs. Here we go!!
- Вложения
-
- Master Thesis VI.vi
- Main VI
- (88.58 КБ) 249 скачиваний
-
- Selecting Data to Plot.vi
- (64.82 КБ) 352 скачивания
-
- Selecting Data to Save.vi
- (29.81 КБ) 263 скачивания
-
- Splitting Vaues.vi
- (26.83 КБ) 265 скачиваний
-
- Unit Selection.vi
- (18.62 КБ) 251 скачивание
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Re: Problems with VISA connections
2 more sub VIs
- Вложения
-
- VI Connection.vi
- (48.99 КБ) 255 скачиваний
-
- WriteDataToFile.vi
- (23.56 КБ) 239 скачиваний
-
- beginner
- Сообщения: 27
- Зарегистрирован: 19 мар 2012, 16:03
- Версия LabVIEW: 2010
- Контактная информация:
Re: Problems with VISA connections
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
Thank you
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
- 2 Ответы
- 662 Просмотры
-
Последнее сообщение Borjomy_1
-
- 4 Ответы
- 246 Просмотры
-
Последнее сообщение Embedder74