> I've read in zone.ni about "Setting Occurrences from C in Windows"
> that is is possible to use PostMessage to raise a Labview occurrence
> from Outside of Labview. This wouldn't have acceptable time response
> for my application, (Windows message handler isn't fast), but would it
> be possible to do something similar using and external event to signal
> Labview to go get more data (not necessary a Labview event).
>
> Also, the discussion in zone.ni "Passing a Variety of Datatypes from a
> DLL to Labview" looks interesting. I'll have to run an experiment
> using GetModuleHandle.
>
I'm not sure what your timing requirements are, but the setting an
occurrence from C code approach is exactly what drivers written by NI
do. CAN, the old D
DE VIs, DAQ occurrences, and pretty much all
asynchronous nodes, even the wait MS node in LV work this way.
I haven't looked at the article in awhile, so I'm not sure how indepth
it goes. It is possible to set the occurrence by sending a windows
message, but it is also possible to set the occurrence by calling the
occur function directly. You can also arrange for the LV thread that is
waiting on the occurrence to be running at a higher priority to help
reduce latencies.
Greg McKaskle