04-23-2007 06:06 PM
04-24-2007
10:09 AM
- last edited on
04-18-2025
12:37 PM
by
Content Cleaner
Hi,
I had a look at your code and have a few suggestions for you. First and most importantly, please refactor your code. It will be extremely difficult to debug your program if it is not well documented and well structured.
Having a look at your VI, I have noticed that you destroy your queue at the end of the first while loop, whereas the consumer loop is still processing data. You may want to merge errors of both while loops and then destroy the queue. That way, we know that both loops have finished with the queue and it can then be destroyed.
I hope this helps,
Regards,
Nadim
Applications Engineering
National Instruments
12-01-2016 11:42 PM
Hi Sir/Madam, I am facing some problems while programming in LabVIEW 2013. So i request you to provide technical support for solving the problems listed below. 1. Error 1 occurs at dequeue element. 2. Initial readings are missing in the report. Only the final 50 readings are found in the report. Hardware used: USB-6002. Kindly provide the appropriate solution as soon as possible. Thanks and Regards,
Karuppanan K.
9962338830
12-01-2016 11:43 PM
Hi Sir/Madam,
I am facing some problems while programming in LabVIEW 2013. So i request you to provide technical support for solving the problems listed below. 1. Error 1 occurs at dequeue element. 2. Initial readings are missing in the report. Only the final 50 readings are found in the report. Hardware used: USB-6002. Kindly provide the appropriate solution as soon as possible.
Thanks and Regards,
Karuppanan K.
9962338830
12-02-2016 02:49 AM - edited 12-02-2016 02:54 AM
Hi vicky,
2. Initial readings are missing in the report. Only the final 50 readings are found in the report.
Because you programmed it that way!
Read the help for WriteToSpreadsheetFile. Then check all inputs of that function…
1. Error 1 occurs at dequeue element.
Because you programmed it that way!
There is no error handling code after Dequeue. And you try to dequeue an element after the queue has been released!
More than 9 years ago Nadim suggested a possible solution to this problem, but instead of solving it on your own you rather bring this stone-old thread back to live…
So i request you to provide technical support
When you "request technical support" you should call your local NI office. Here in the forum you may "ask for help" 🙂