02-25-2009 08:21 AM
I have problem with compiled VI: after 422 seconds run VI stopped without any error message.
If I close VI: message - VI reset, NI-DAQ-USB box is busy - can not restart VI.
Restart machine- USB Box founded - VI start - the same problem.
Labview 8.6 and 8.6.1 Base with Application Builder, NI-DAQmx 8.7, NI USB-6211
the problem is not depends on version (8.6/8.6.1) and run mode (in Labview/standalone EXE)
VI contains 2 DAQ-Assistent for reading and writing data from USB-Box.
Both have:
Samples rate:1000 Hz, No of samples:100
Signal output: Sinusoid with frequenz 0 Hz..200 Hz
By 20 Hz - OK, By 200 Hz - failure.
02-25-2009 08:28 AM
Can you post your code? It appears that something triggers a stop of the code. Which kind of sounds like a counter but this is a wild guess. We would need to see the code to give appropriate advice.
R
02-25-2009 09:04 AM
Labview 8.6
VI contains Periodic Trigger from OpenG
VI hangs up, NI USB Box is busy - only after system restart can be used.
The main question: sampling rate=? and samples to read=? by output frequenz = 180 Hz.
IMHO this is the main problem.
P.S. my thread in german:
http://www.labviewforum.de/index.php?showtopic=11332
02-26-2009 03:50 AM
02-26-2009 04:52 AM
You will need to design your VI in a much better way. I cannot pinpoint the problem right now but you will be getting race conditions, synchronization problems and user interface errors if you run this VI.
1) Use a producer/consumer architecture (events) for saving and loading your data
2) Use event structures to communicate with the controls on your front panel.
3) Place your DAQ assistants for input and output in separate loops.
4) Use queues as buffers (again producer/consumer) to take care of the analysis part after the data is acquired.
I would recommend that you go through event structures in LabVIEW Help and have a look at the producer/consumer templates for data and events. These can be found when you navigate to File -> New...
If you have any questions, be sure to let us know.
03-25-2009 07:33 AM
>2) Use event structures to communicate with the controls on your front panel.
In Base version there is no event structure.
Is there alternative in OpenG or another free libraries?
03-25-2009 07:37 AM
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=396157
Problem without solution?
03-31-2009 07:21 AM
03-31-2009 07:40 AM
I mean:
I have only Base version.
The only solution to create and modify event structure: pay/upgrade to professional version.
http://forums.openg.org/index.php?showtopic=1038
03-31-2009 11:40 AM - edited 03-31-2009 11:42 AM
Oh... 😮
okay... understood. Now your post makes sense..
Maybe a State Machine with producer/consumer architecture may be your solution.
R