Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

why i cannot use the floating point value as input for sine wave generation

hallo
i hope some of Application Engineer will answer my question.in my following VI, i just want to apply frequency not only in integer format like 2 HZ but also in floating point like 1,6 Hz. when i give 2 HZ as frequency input (Sine pattern/Function generator/sine wave etc)it works fine, but when the input is 1,6 HZ. i get the delay. why? can somebody tell me?
This Vi i try to break and resume the number of cycles/periods(cycles to be done through various methods), but i cannot break resume the AO start. why?
i dont want to bring the break start Vi inside a loop, because in that case it starts giving delay between every cycle/period.
can somebody answer my these 2 simple questions?

or it is not possible?
Thanks Regards
0 Kudos
Message 1 of 6
(7,235 Views)
Hi,

Floating point:
this problem could be solved, after changing the setting for the "localized decimal point" (LabVIEW -> Tools -> Options -> Front Panel) or use 1.6 instead of 1,6.

AO:
i hope i understood your question correctly -> you would break the output of the sine wave (e.g. 200 of 1000 samples) and after that you will start again with sample 201 without the init function -> this isn't possible!
But you can take an external clock (counter) for this!
So, it's possible to break the counter and to restart the counter - without a impact of the AO...

regards,
Thomas Sandrisser
NI Germany
0 Kudos
Message 2 of 6
(7,235 Views)
Thanks you mentioned that with with external clock/counter it is possible,how? can you please give me one example(VI), how do i implement it with AO start. it would be nice for me as i am in learning stage and a beginner.
Thanks
Regards
0 Kudos
Message 3 of 6
(7,235 Views)
one important thing i want to mention that when i start/begin generation, i want to break and resume and then again break and resume. for example i want to generate 50 cycles and display it on oscilloscope.
i start my program,after 10 cycles, i break it and after few hours i want to resume the rest 40 cycles.after 5 cycle i break it again and after few days i resume again.now the rest 35 cycles must run on the oscilloscope.if i dont break it must run the rest 35 and stop, but what happened if i break after 6 cycles.it must run the next 29 cycle when i resume it. this kind of pause and resume i want to implement with this AO start.it would be very nice if you explain me this counter with some example.
Regards
Thanks
0 Kudos
Message 4 of 6
(7,235 Views)
good morning,

look at "...\National Instruments\LabVIEW 7.1\examples\DAQmx\Analog_Out\Generate Voltage.llb\Cont Gen Voltage Wfm-Ext Clk.vi"

Clock Source: for example choose PFI0 and put a function generator on it and produce xx flags -> after the xx samples, the AO stop and wait for the next flag. It's also possible to take CTR0 as clock source, aso.

this is selectable by yourself...

regards,
Thomas Sandrisser
0 Kudos
Message 5 of 6
(7,235 Views)
Dear ThSa
The problem is that these DAQmx VIs are not supporting the Board.only i can use traditional DAQ vis.like Ao start, Ao config etc.
i am using AT-MIO-16XE-50 Board. and with this board it is not possible to use these new VIS. is it possible that with this OLD DAQ Board we can pause and resume the signal generation?if not then for these new DAQMX which new board i must purchase?
Thanks
Regards
0 Kudos
Message 6 of 6
(7,235 Views)