LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

current pulse with labwindow cvi

Hello,

 

I'm just a beginner in labview cvi! I have a continuous generator current and i  want to make pulse with it.

i want to define the cycle time and the frequency and i don't want to depend of the clock of window

I've already define the channel of the current generator

#include windows.h

 

int i;

int cycle_time= 1200(s);

int frequency = 1000 (hz);

 

while (i<=cycle-time*frequency){

 

DAQmxWriteAnalogScalarF64 (current_task, 1, 0, 100, 0);

DAQmxWriteAnalogScalarF64 (current_task, 1, 1/2Frequency, OFF, 0);

wait (1/2frequency) (or sleep(1/2frequency);

 

i++;

 

}

thanks for your help

0 Kudos
Message 1 of 1
(2,652 Views)