LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to generate a clipped waveform on CRO by using DAQ... in case of clipped waveform i am not able to display it on cro...its saying error stating buffer is not sufficent use buffer 2...please help me out of this problem...

Please put a little more detail in the body of your message rather than cramming it all into the subject.

 

Do you have an error number associateed with this?  A screenshot of the error?  What exactly do you mean by a "clipped" waveform?  With CRO do you mean a compact RIO?  How are your trying to display it?

0 Kudos
Message 2 of 8
(3,639 Views)
We are working on project, as a part of which we are to make a vi program to perform positive and negative clipping to a sine waveform. We are able to show the positive and negative clipping of the waveform in the waveform chart in the labview version 8.5 front panel. When we tried to interface it through a DAQmx8.8 to a cathode ray oscilloscope(CRO) to view the waveform we are getting an error saying the generation cannot be started because the buffer size is too small, increase buffer size.Also the error message is suggesting to use buffer2 and says the currently selected buffer is 1. The error number is 200609 occured at DAQmx write(Analog 1D waveform Nchan Nsamp).vi:1. Could you pl tel us how to go about with this problem..How do we change the buffer size..
0 Kudos
Message 3 of 8
(3,610 Views)
This being my first time to queries, am not sure of how to post my code. I tried to make the running vi as an image and upload it. I am getting an I\O error. Is there any other way to do this..
0 Kudos
Message 5 of 8
(3,578 Views)
I have just found this provision to attach my code and the image of the error we got as well.
Download All
0 Kudos
Message 6 of 8
(3,576 Views)

You have it set to write 100,000 samples at a 10,000 sample/second rate inside the DAQ assistant.  Try a smaller number of samples.

 

What frequency are you trying to output?  If it is 10.1 Hz like it is now, then a 10,000 Hz rate is way too much.

 

I would recommend that you start looking at the DAQmx examples.  Also, I don't understand what you are trying to do with all the comparisons.  Doing a comparison on a dynamic data type, then sending the resulting dynamic data type to a Select function doesn't make sense.  If you use real DAQmx functions instead of the Express VI's, you can eliminate the dynamic datatype and work with data that makes sense.

0 Kudos
Message 7 of 8
(3,572 Views)
Since a scalar is being passed to the DAQ Assistant, using anything other than 1 sample generation mode does not make any sense to me. Even if you solve the error by changing the number of samples, you are not going to generate anything that looks like the data in the chart.
0 Kudos
Message 8 of 8
(3,556 Views)