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