LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hidll for waveform generation

Hi
 
I am facing a problem with a DLL used to generate waveform.
 
I use LabVIEW 8.2.1.
 
I developed a VI to generate a sine waveform. The frequency, amplitude and no. of cycles of the waveform to be generated are its inputs.
I also have an input to abort the operation. The output of this vi is just an error message.
 
I made the DLL of this function and tried using it in another LabVIEW vi. This vi was hanging. I was not able to control the 'abort' input.
Later, I made  aborting as a second function of the earlier DLL.
 
I am using the DLL, as re-entrant, in two vis. One vi performs the generation function. The other vi performs the abort function.
 
The vi performing the generation must stop once the required number of cycles is generated. Or, it must stop when 'abort' is true.
This is not happening. LabVIEW is hanging.
 
This procedure is working on a simple counting operation, addition operation but not in the waveform generation.
 
I am not able to trace the error.
Am i missing something?
 
If you are not yet confused, please help me 
 
Thanks
0 Kudos
Message 1 of 5
(3,216 Views)

Hai,

Could you post your vi or screenshot. That will easily help us in tracing out what help you needed.

Thanks,

Mathan

0 Kudos
Message 2 of 5
(3,208 Views)
Hi

This is the screenshot of my vi.

I made the dll for this vi.

As the stop control comes inside a while loop, i used a global vi to read from/write into 'stop'. This global vi forms the abort function of the DLL. the main vi shown is the generation function.


thanks
0 Kudos
Message 3 of 5
(3,201 Views)
Don't create separate thread for same question. Continue here
0 Kudos
Message 4 of 5
(3,183 Views)
hi

 i have already done that.

thanks
0 Kudos
Message 5 of 5
(3,170 Views)