Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic output signal control

hi

i am using a PCI-6259 card with Measurement Studio 2003 and NIDAQ 7.4

I am trying to change an analog output signal on the fly, e.g. using a slider.
My first attempt was using the 'WriteMultiSampleAsync' -function and installing an eventhandler.

So when i put my write-function into the 'OnEvent'-function of my event handler i get an error
message telling me that i got too less memory. Anyone has an idea how i can solve this problem?
I think i'll have to use multiple buffers, but am not sure how this exactly works.


Thx

Markus
0 Kudos
Message 1 of 3
(3,641 Views)
Hello Markus,

the examples that are installed with Measurement Studio which should be enough to give you an idea how to create such an application. If you are looking for a way to change an analog output with a slider, it is actually pretty easy. As log as you dont want to do a waveform output you dont need buffering at all.
If you write a value to an analog output, this voltage will stay there until you write a new value or the PC is powered down. That is why it is enough to work with single point AO in this application.
Pleas have a look at the "AO Point example". It will show you the principle.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 3
(3,624 Views)
Thank you Ingo,

i figured the problem out meanwhile.

the next days and weeks when i'm going to expand my application to waveform output
i'll probably write again ^^

regards

Markus
0 Kudos
Message 3 of 3
(3,615 Views)