05-27-2008
12:14 AM
- last edited on
03-18-2025
03:30 PM
by
Content Cleaner
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><meta name="GENERATOR" content="OpenOffice.org 2.4 (Unix)">
Hello,
I'm an undergraduate Engineering Student. As a summer project I am working with my professor to develop some virtual instruments that can be used in the classroom at the Freshmen/Sophomore level.
Virtual Instruments to be made:
multimeter
oscilloscope
signal generator
Equipment:
I am using a National Instruments USB-6211 DAQ. For more information about this device click on the link below:
https://www.ni.com/en-us/support/model.usb-6211.html
LabVIEW 8.2
-------------------------------------------
Right now, I am working on the oscilloscope and have run into some errors. Initially, I kept getting the following error: “DAQmax read error: Error 200279.” This usually occurred when I set my sampling rate near to the maximum setting. This particular error has already been discussed on the NI forum here:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=221743
In this thread they discuss using a queue to solve this problem. I did this and I no longer receive the error. However, I do not have much experience with the programing logic associated with a queue, and I want to be sure that my code is correct, and efficient.
The only other problem is with the trigger. When I turn the trigger on, the waveform flickers on and off very rapidly. The trigger works though, the problem occurs when displaying the triggered waveform. I wonder if this is because of my loop structure or because I am not using the “Trigger and Gate” VI properly or perhaps something different all together.
In summary:
Am I properly implementing the producer/consumer design pattern in conjunction with my oscilloscope code?
Is there any way to optimize my code?
How can I fix the trigger function so that the waveform does not flicker?
Attached is my moderately commented code. I am not too experienced with LabVIEW, so please explain in detail so I may learn.
Thanks a lot!
Jimmy
05-28-2008 11:04 AM