LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate analog values using 6052E and wait for a specific time between each generation:

Hi:
 
I have to generate voltage values from 0 - 10 Volts using PCI6052E.  However, I have to wait a specific time between each voltage value generation.  Anybody knows how I can achieve this?
 
Mizar.
0 Kudos
Message 1 of 19
(3,598 Views)

Look at the shipping example called Gen Voltage Update (assuming you are using DAQmx). You can put the DAQmx Write inside a for loop and auto-index an array of step values though the loop. Add a Delay function and you are done. You could get a bit fancier and use a while loop and exit if there is an error. Other shipping examples show that. You would just have to add another condition to stopping the loop. Instead of (or in addition to) get the array size and stop the while loop when the iteration count is greater than the number of elements in the array.

Message Edited by Dennis Knutson on 10-30-2006 01:27 PM

0 Kudos
Message 2 of 19
(3,576 Views)

Hi:

 

I am not using DAQmx.  How do I go about this hurdle?.  I am using LABVIEW 6.1.

 

Thanks,

 

Mizar

0 Kudos
Message 3 of 19
(3,561 Views)
Then you can just use AO Single Update in a loop. A bit higher level function is AO Update Channel. You can also look at the shipping example called Generate 1 Point on 1 Channel.
0 Kudos
Message 4 of 19
(3,558 Views)
Hi:
 
I have to generate a sine Wave with a particular DC offset.  Have tried many ways, but have not been successful.
 
Mizar,,.
0 Kudos
Message 5 of 19
(3,526 Views)
You haven't tried anything in this example. You just have to use the Sine Pattern function and add an offset.
0 Kudos
Message 6 of 19
(3,523 Views)
Hi Dennis:
 
If I have to do the stepping for the amplitude based on my array (from the VI you had helped me out with last week) how do I go aboit it?
 
Thanks,
 
Mizar
0 Kudos
Message 7 of 19
(3,517 Views)
This would be one way if I understand your question correctly. With each iteration of the outer for loop, it would take one amplitude value and step though it based on how many samples you define for the sine wave.
0 Kudos
Message 8 of 19
(3,513 Views)

Hi Dennis:

 

Thanks a lot!.  That works.  However it asks for a file name everytime it iterates.  Can I move the file dialog anywhere else?

 

Mizar,

0 Kudos
Message 9 of 19
(3,506 Views)
Yes. Move outside the outer most for loop if you want a single file for every iteration.
0 Kudos
Message 10 of 19
(3,501 Views)