06-04-2009 02:25 PM
Solved! Go to Solution.
06-05-2009 11:53 AM
Hello,
I opened your VI, and it looks like you are just trying to output a voltage waveform based on a digital trigger. There is an example in the NI Example Finder that does this, that I think you should base your development on. If you open up the NI Example Finder (Help>>Find Examples) and browse to the folder path Hardware Input and Output>>DAQmx>>Analog Generation>>Voltage>>Cont Gen Voltage Wfm-Int Clk-Dig Start.vi.
This should give you a good idea of the proper way to set up a DAQmx task to perform this type of voltage output. It wasn't clear what exactly you were trying to do in your code, because I didn't have the VI named Modified AO wait ph.vi, but I think should help you get started in the right direction.
Chris W
06-05-2009 12:34 PM
Of course, I used this as my basis - but I want to output not a waveform, but a single voltage which stays on until the vi is stopped.
Whenever I try to do this, replacing the example sine wave with a single value, it tells me my buffer is too small. Hence I added the set buffer vi - but the problem of the vi hanging arose.
If you replace the ao wait with a simple write, the same thing happens.
06-05-2009 01:33 PM
06-05-2009 06:15 PM
06-08-2009 01:51 PM
Hello,
Hardware timed single point timing is different than what you're going for and as the error message is not supported on your card. You are also correct that that you cannot use triggering with a static generation. Since this is the case, why don't you just create a waveform that is multiple samples of the same voltage and perform a finite generation with this waveform. But, you will want to make sure not to clear this task until everything is done, so it does not reset the card and it's configuration and it hold the last value that was output.
Chris W