LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to register an dynamic event for/with NI-Scope?

Solved!
Go to solution

I know how to do that for example for DAQmx  to get a DONE event.

Now I tried that with NI-Scope but no luck

How to register an dynamic event for/with NI-Scope?

example with refnum , broken wire with the Scope.instrument-handle 😞

NI-Scope-event.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 1 of 3
(1,592 Views)
Solution
Accepted by topic author Henrik_Volkers

The short answer is: Sorry, you can't.  The NI-SCOPE refnum does not support any driver-dispatched LabVIEW events in the way that the DAQmx refnum does.

 

However, if you call NI-SCOPE fetch, that function call will block until the necessary samples have been acquired, which may be sufficient flow control.  Otherwise, you can poll the niScope Acquisition Status.vi in a while loop until it returns a non-zero result or errors (see attached snippet).

 

Message 2 of 3
(1,512 Views)

Thank you balexand for confirming. 

I wrote an idea on that one ..

 

I have a solution, however using dynamic events would have been more elegant...

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(1,497 Views)