Hints and tips for using daqviewxl – Measurement Computing DaqView for DaqTemp Applications User Manual
Page 24
![background image](https://www.manualsdir.com/files/797782/content/doc024.png)
DaqViewXL, pg.4
08-28-02
Document Module, 457-0909
Hints and Tips for using DaqViewXL
• Do not run DaqView first and then try to use DaqViewXL. When DaqViewXL runs, DaqView is put into a
special "server" mode which supports transactions with "client" applications such as Excel. Normally
DaqView does not run in this mode and cannot support DaqViewXL.
• When you acquire data into a worksheet, some of the data may be displayed as a string of hash marks
(e.g. ######). Excel will do this whenever the column is not wide enough to display all the digits of a
number. To eliminate the hash marks, just widen the column. An easy way to do this is to use the
"Format, Column, Auto Fit Selection" menu command. Immediately after an acquisition, all the rows and
columns of data are selected. Click this menu item to automatically fit all the columns to the new data.
• You can start an acquisition from an Excel macro as shown in the following VBA macro code example:
Sub Macro1()
Application.Run Macro:="menuGoDoIt"
End Sub
This is equivalent to clicking the Go! button on the DaqViewXL toolbar. It arms the hardware for an
acquisition, and if DaqView is set up to trigger on "External TTL" or "Channel Value", the acquisition will
take place automatically when the trigger condition is met. For acquisitions configured to trigger on a "Key
Hit", the acquisition will not start until the user presses the "Manual Trigger" button on the "DaqView
Armed" dialog box.
To automatically press this button after arming DaqView use the following macro:
Sub ArmAndKeyHit()
Application.Run Macro:="menuGoDoIt"
'presses the Go! button
SendKeys "{ENTER}"
'presses the space bar
End Sub
This macro will start a "Key Hit" acquisition immediately.
Note: Macro1, shown above, was generated by Excel's macro recorder.
• If you chose to customize DaqViewXL’s toolbar, you should avoid removing buttons. If DaqViewXL
detects missing buttons it will prompt you to allow it to remove the toolbar and recreate it with all buttons.
You can decline to do so, but DaqViewXL will continue to ask you to recreate the toolbar each time it
starts-up. You can add buttons, rearrange them, and re-size the toolbar without getting this prompt.
• If DaqView cannot connect to your hardware on start-up, it will automatically switch to the Simulated
Instrument mode when loaded from DaqViewXL.