Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

a burning question on making a ramp with scan features

Hi,

 

I wanted to make a rate-tunable ramp signal which can be fed to the elec-device via analog output of DAQ board. I tried a simple one, and it seems working. Ramp starts from the set values and stops when it reaches the max set, this is all right, but how can I make it automatically initialize itself and starts over again for the same range? any help would be really appreciated!!!

 

Regards

0 Kudos
Message 1 of 4
(3,281 Views)
You could put your entire application in a while loop. If you explain your code, we should be able to help you better.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 4
(3,275 Views)

Hi Adnan,

 

Thank you very much for your notice:-) 

 

If you look at the vi, what does it do is: it generates increasing numbers from 11000 to 38800 with certain rate, I can change the rate just by changing the divider value. and these numbers can be converted to U16, so that I can fed my Aout.vi which only recognize such format. Aout.vi is D/A converter which gives you voltage ramp signal at the end, this part is not included in the diagram. If I only use the loop alone,what I got at the U16 terminal is a sawtooth signal with amplititue changing from 0 to 65536 continuously. This is already a ramp with scan, ramp range is 0~65536, and each sawtooth is one scan.  Problems I have in this case are:

1, the ramp range, I do not need 0~65536 but something like 11000~3880, and if possible with a slection so that I can change what range i needed.

2, it would be perfect if I can set the number of scans (or number of tooth shape in sawtooth wave, please refer atttached figure). I think its quite possible, and there are lot of other ways to do the same the job, I just could not figure out how to do it at the moment. Thank you very much in advance!

 

0 Kudos
Message 3 of 4
(3,257 Views)
Attached is the another code, which does the same work but much simpler. problem still remains as described above:-(
0 Kudos
Message 4 of 4
(3,233 Views)