10-22-2006 05:38 PM
10-22-2006 08:08 PM - edited 10-19-2012 01:31 PM
10-22-2006 09:50 PM
10-23-2006 08:33 AM
I'm not at a LV pc so I can't comment specifically on code. Here's some generic advice though:
I'd start up an independent loop that talks to the serial instrument and whenever it gets data back, it "publishes" it to some globally-accessible location. A standard global variable is conceptually the simplest such place, but there are other options that are typically preferable such as "functional globals", notifiers, or queues. Personally, I'd probably use a notifier here, but notifiers admittedly take a little getting used to.
Now there's another faster independent loop that's acquiring DAQ data. Well, whenever new DAQ data is retrieved you would also query this "global" which holds the most-recently updated data from the serial instrument. You'll probably spin through several DAQ loops which keep retrieving the same constant serial data, but at least you won't be sitting around waiting for new stuff.
-Kevin P.