error message on VISAWrite

I'm using Igor Pro for data acquisition, when Igor Pro is trying to compile a procedure that has such a line:

VISAWrite InstrumentID, "command"

It returned an error message "expected a keyword or an object name".
Does anyone knows how to fix it? Thanks first.

Igor Pro Version: 6.1.2.1
LabVIEW 2009
Windows Vista 32-bit
deltasigma wrote:
I'm using Igor Pro for data acquisition, when Igor Pro is trying to compile a procedure that has such a line:

VISAWrite InstrumentID, "command"

It returned an error message "expected a keyword or an object name".
Does anyone knows how to fix it? Thanks first.

Most likely you haven't installed the VISA XOP. Select Help->Show Igor Pro Folder to get an Explorer window showing the contents of your Igor Pro folder. Find More Extensions:Data Acquisition:VISA.xop. Right-click, select Copy. Back in Igor, select Help->Show Igor Pro User Files Folder. Open the Igor Extensions folder; right-click and Paste Shortcut. Re-start Igor.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
johnweeks wrote:

Most likely you haven't installed the VISA XOP. Select Help->Show Igor Pro Folder to get an Explorer window showing the contents of your Igor Pro folder. Find More Extensions:Data Acquisition:VISA.xop. Right-click, select Copy. Back in Igor, select Help->Show Igor Pro User Files Folder. Open the Igor Extensions folder; right-click and Paste Shortcut. Re-start Igor.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com


Yes that trick worked. Thanks a bunch!
No complaint, but why can't Igor automatically search for these .xop files located in the \More Extensions folder? It's just not that convenient to do it manually.
Igor has to load any XOP it plans to use when it starts up. Theoretically, you could make it so that Igor loads every available XOP when it starts up, but that would make starting Igor take quite a bit longer and would add hundreds of operations and functions to the list in the command help browser, most of which you wouldn't ever use.