Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

changing values while running in a real-timed digital output programm using 6251!

hello everyone! I've created a programm that produces pulses using digital output port of 6251! i would like to know if i can change the values (of the frequency for example) while the vi is running. Thank you all for your interest!!!!Smiley Happy

0 Kudos
Message 1 of 4
(3,863 Views)

Salpa,

 

I think what you are looking for is called non regeneration.  We have an example of this in the Example Finder called "Cont Write Dig Port-Ext Clk-Non Regeneration.vi".  Non regeneration prevents the VI from continuously looping through the buffer, instead requiring it to be populated fresh every time allowing your frequency change to take effect.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 4
(3,847 Views)

thanks for your help!! I saw this example but i think that the first data are  copied to the card buffer only once. I want them to run continiously until i change them.do you think that i can do this just by putting the vi into a while loop?Thanks for your help again!!!

0 Kudos
Message 3 of 4
(3,809 Views)

Salpa,

 

You are correct each piece of data is copied to the buffer only once.  The while loop in the example program allows the data to be written continuously.  So if you remove the ramp and instead place a control on the front panel to select the signal you want to send it will send the same signal until you change it.  This example was simply showing off a ramping signal.  So just use the while loop included in the VI to place the things you want to write.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 4 of 4
(3,799 Views)