scalpas
2008-08-06 21:40:05 UTC
Hello,
I have a PCI-6221 DAQ card and I need some advice for the interface I'm trying to program.
I need a program to define and build a waveform made up of several different levels (see attachment). This waveform will then be sent to the analog output of my card. The basic requirements of the program are :
- the number of levels is defined by the user (typically 10-20 levels)
- the duration (a few seconds per level) and amplitude are defined by the user
- this basic waveform is then repeated several times (typically a few hundred). However, there should be a factor to multiply the whole waveform at the beginning of each cycle, to increase it.
So I'm not sure about the best way to implement this, so any advice would be welcome.
The best approach I've thought of is the following :
- the user enters the number of levels, with the amplitude and duration of each level, in a table.
- the program then builds the waveform using the ''basic function generator vi'' placed within a for loop. The function would be a square wave with a duty cycle of 100%. Each time the loop would generate one level and append it to the previous levels.
Is this a good approach ?
Thanks,
waveform.jpg:
Loading Image...
I have a PCI-6221 DAQ card and I need some advice for the interface I'm trying to program.
I need a program to define and build a waveform made up of several different levels (see attachment). This waveform will then be sent to the analog output of my card. The basic requirements of the program are :
- the number of levels is defined by the user (typically 10-20 levels)
- the duration (a few seconds per level) and amplitude are defined by the user
- this basic waveform is then repeated several times (typically a few hundred). However, there should be a factor to multiply the whole waveform at the beginning of each cycle, to increase it.
So I'm not sure about the best way to implement this, so any advice would be welcome.
The best approach I've thought of is the following :
- the user enters the number of levels, with the amplitude and duration of each level, in a table.
- the program then builds the waveform using the ''basic function generator vi'' placed within a for loop. The function would be a square wave with a duty cycle of 100%. Each time the loop would generate one level and append it to the previous levels.
Is this a good approach ?
Thanks,
waveform.jpg:
Loading Image...