10-30-2008 07:15 AM
Good evening alltogether,
what is a good way to generate a ramp using LV 8.5 and NI-DAQmx? It's supposed to look like a sawtooth, means going up linearly during something like 5 seconds, then drop linearly during something like 10ms.
Thanks
Kirill Illenseer
10-30-2008 07:24 AM
10-30-2008 07:24 AM
The best way would be to make the output a function of time
10-31-2008 07:20 AM
Here are links to some examples:
DAQmx: Simple function generator
I hope that helps,
Jochen Klier
National Instruments
11-04-2008 06:29 AM
Thanks, the simple wave generator is perfect. However, I've got another question.
As far as I understood, the waveform is generated by the driver on the hardware itself. This is of course good because the the waveform is independant from the CPU load of the PC. But how can I use the generated waveform to trigger something? I have a premade measurement sequence which has to be started when the ramp starts going up. Is there an elegant way to achieve that?
11-04-2008 07:20 AM - edited 11-04-2008 07:22 AM
The output waveform is generated in software and is stored in a buffer in the PC's memory. The DAQ board accesses the buffer via DMA and outputs the signal with very low impact on the CPU.
Depending on the DAQ board type that you use, there are several methods to do what you want. Here are some ideas:
Regards,
Jochen
11-04-2008 12:51 PM
11-05-2008 09:13 AM
I have several ideas how to accomplish this, but I don't know, which is adequate for your usecase. Could you please describe in more detail how the timing should look like? A timing diagram would be ideal.
Thanks,
Jochen
11-11-2008 06:48 AM