LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 200278 - When using a waveform generator in a PID controller

Hi bjohnson,
 
You have two options when it comes to creating the delay for this.
 
Create the delay yourself
To do this you will want to creat a sequence structure or a subVI (I suggest subVI just because everyone should use subVIs when possible) and place the signal generator in it along with a time delay. the time delay is going to be the sampling time multiplied by the number of samples. Your signal generator uses 1000 samples/sec and 1000 samples as defaults and therefore you would need a delay of 1 sec.
 
Use the express VI
This option has more overhead than the above mentioned option, but is still a good option. To do this, place the signal generator express VI instead of the sine wave generator VI you placed. There is an option when you are configuring the express VI that allows you to simulate acquisition time.
 
I'm happy to answer your questions, but for future reference we like to create new threads for every questions so that if people are searching for the same solution it is easy to find.
Sappster
0 Kudos
Message 11 of 12
(399 Views)
Sub VI worked great.  Also converted some of my other code into them as well.  Thanks Mark.

New questions contained in this thread:

http://forums.ni.com/ni/board/message?board.id=170&thread.id=345299


Message Edited by bjohnson on 07-30-2008 05:03 PM
0 Kudos
Message 12 of 12
(390 Views)