LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

thyristor pulses LabView 7

Hello John.  Thanks for the update. 
 
I think what the issue boils down to is that the update to your digital lines is completely dependent of software timing.  The one sample, to each of your 6 digital lines, will only be written after everything else in the while loop has executed.  With your 17 forumla express VI's and the plethora of other logic, it seems like the current speed is the fastest that your program can possibly execute.  Thus, I would recommend running a simple test with most of the logic stripped out and see how fast your computer can write the 1 sample to each of the 6 digital lines.  Then, as you add functionality, you will see that the update rate of the digital lines will slow.  Thus, you will need to refactor your code to allow the execution speed to increase.  Eliminate all unnessessary logic inside the while loop to allow your program to focus on setting those lines to the proper state. 
 
Let us know how this goes!
 
Brian F
Applications Engineer
National Instruments
0 Kudos
Message 11 of 13
(610 Views)

Sir,

Now I got a suggestion that I can use Microcontroller to produce the pulses.But I need to send some data (i.e Delay angle,frequency)from LabView to Microcontroller.

I heared that RS232 communication holds good for this purpose.I tried with Instrument I/O Assistant.But I don't know how to proceed with that.

Otherwise I can send signal in which data is encrypted,to the microprocessor.I tried to send through Analog output simultaneously while acquiring Analog Signal.But I received a error of "No DMA channels available"

Plz tell me whether I should go with the Suggestion.If it is so,Plz provide me the solution for the problem.

Thank you

-S.J.JohnWesly

0 Kudos
Message 12 of 13
(600 Views)
Hello John. 
 
I still believe that your best bet is to refactor your code and simply make it more efficient to produce a faster pulse. 
 
You could try using a microcontroller, but I am a little unfamiliar with this method outside of you would communicate with the device via a serial port.  You would have to refer to your specific microcontroller for the commands that it would accept in order to produce a digital output. 
 
For more information on the Instrument I/O Assistant, I recommend visiting the following website:
 
Instrument Control in LabVIEW Tutorial
 
Also, there is a helpful example on interfacing with a microcontroller at:
 
MIcrocontroller interface with labview
 
I would use these two resources and give the microcontroller method a try. 
 
Brian F
Applications Engineer
National Instruments
0 Kudos
Message 13 of 13
(580 Views)