LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating "instantaneous" voltage switch

Hi,

My question is fairly basic. I have been using an already existing vi from the NI example folder called "Cont Gen Voltage Wfm-Ext Clk" to output a square wave (voltage) to a motor. My problem now is the switch from +V to -V does not occur fast enough: typically the time required for it is ~10ms  and I would need it be 5-10 times smaller (ie 1-2ms). Is there a way for me to achieve this?

Thanks,

Thibault.

0 Kudos
Message 1 of 7
(3,240 Views)
What data acquisition device are you using to output the voltage?  The rise or fall time is going to be dependent on the speed and quality of the card.
0 Kudos
Message 2 of 7
(3,235 Views)

I am using an SC-2350 carrier.

0 Kudos
Message 3 of 7
(3,210 Views)
Good for you. Now can you answer the question about the type of DAQ device you are using? And when you answer that, also provide information on what sample rate you've got it set to.
0 Kudos
Message 4 of 7
(3,204 Views)
Sorry... the DAQ device I'm using is an NI DAQCard-6036E. As for the sampling rate, this will sound really stupid but I am not quite sure about what it actually is... You are talking about the rate at which the voltage signal is actually output to the motor (?). Is it something set in some of the built-in subvis (I have attached a pic of the block diagram I am using)?
0 Kudos
Message 5 of 7
(3,195 Views)
It's displayed on your front panel. It also seems to be derived from the number of samples per buffer. Increase that.
0 Kudos
Message 6 of 7
(3,191 Views)
Hi Thibault,

Does your application require external clocking?  If not, I would just use the Cont Gen Voltage Wfm-Int Clk shipping example.  If you want your +V to -V transition to take 1 ms, simply enter 500 Hz for your desired frequency.

update.jpg

Let me know if I have misunderstood your application.
Rod T.
0 Kudos
Message 7 of 7
(3,146 Views)