LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clock config along with single update

I must calculate a value and update then the channel with this value and additional I want to set my own update rate with the clock config.vi is it possible to use it along with the single update.vi?
thanks for help
0 Kudos
Message 1 of 5
(3,230 Views)
please clarify what you are asking and what .vi's you are referencing... post them if necessary
0 Kudos
Message 2 of 5
(3,230 Views)
The best example I can point you to is the Function Generator example that ships with LabVIEW 6.1. This example demonstrates how to write a waveform to an analog output channel. You can specify the waveform and the frequency. The frequency will be the update rate divided by the waveform length. You can also find this example on our web site. I have included the link below.

Simple Function Generator Example
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3D82956A4E034080020E74861&p_node=DZ52311&p_submitted=N&p_rank=&p_answer=&p_source=External

You can not use the Clock Config VI with the Single Update VI and I'm not sure why you would want to. The Single Update VI will perform a *single* update. There is no continuous wavefo
rm to generate and therefore no clock needed. This VI will simply update the output channel with one voltage level and then stop.

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,230 Views)
sorry my description wasn't clear enough. The problem is, that I don't wan't to update the channel with a waveform. I need to write a single value in a certain time. First I get a value, then I add another value and then I update the channel. This must happen in a certain time (and the next Problem is that that the update rate must be changed during the operation time).
So I tried to use the "AO Single Update.vi" to put out the value and the "AO Clock Config.vi" for setting the update rate in tics per sec, and nothing happended. So I thought maybe the two vi's don't work together (in the examples "AO Clock Config.vi" is set only with "AO Write.vi").
maybe someone can help me!?
0 Kudos
Message 4 of 5
(3,230 Views)
AO Single Update will perform a *single* update. There is, and can not be, any timing involved since it only happens once. Using AO Clock Config with AO Single Update does not make sense. This is why you will always see it with AO Write.

If you wish to calculate your value and write the same value multiple times then use AO Clock Config and AO Write. If you wish to calculate your value and wait a specific period of time before writing it, for example calculate a value and wait 5 seconds until you write, then you will have to use AO Single Update with a Wait VI.

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,230 Views)