LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse output blackfin

I want to run a stepper motor from the general IO on the 537 EZ kit and i need functions for finite and infinite pulse train.
Is there anyone who might help me a little bit on the way? embedded/Blackfin is new to me and i havent even found the general IO pins on the board.
 
regards
 
Fredrik
0 Kudos
Message 1 of 4
(6,698 Views)
Hi LabRat,
 
For a beginner wanting to learn about timing and how to interface it with external signals, I would point you to the shipping examples that come with the LabVIEW Embedded Module for Blackfin.  (Help » Find Examples » Toolkits and Modules » Blackfin » Device Drivers)
 
At first glance, I would direct you to the examples titled RTC OnceAlarm.lvproj, RTC Periodic.lvproj, and TimerWithCallback.lvproj.  These examples illustrate how to toggle pins and use timers.
 
I hope this helps,
Kevin S.
Applications Engineer
National Instruments
Message 2 of 4
(6,677 Views)

Thanks a lot for your reply,

 

I have the pin outputs under controll and the infinite pulses was made for me in the toolkit (PWM vi)

 

But i still havent been able to make a finite pulsetrain. Ive been told that i should write a value to the timer register and let the counter count down the value. As far as ive understand the BF 537 counter count uppwards.

 

Ive thoght about using timers to clock out a digital pattern, but havent sucseed yet.

 

Anyone who knows what to do?

 

Fredrik

0 Kudos
Message 3 of 4
(6,460 Views)

Hi Fredrik,

 

I would take a look at the TimerWithCallbacks example in the example finder.  You can set a callback VI which will execute each time the timer runs to its count, and you can use that to output the next pulse in your sequence. 

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(6,440 Views)