03-25-2007 08:14 PM
03-25-2007 08:50 PM - edited 03-25-2007 08:50 PM
このメッセージは 03-26-2007 11:54 AMに Makoto が編集しています。
03-25-2007 09:06 PM
thank you very much for your quick and detailled answer 🙂 .
The function viPrintf() is the same thing as viWrite ? What is the best function for you ?
Ah one more thing : how can I easily get the TCP IP address.
Thank you veru much for your help
03-25-2007 09:08 PM
03-25-2007 10:02 PM - edited 03-25-2007 10:02 PM
> The function viPrintf() is the same thing as viWrite ? What is the best function for you ?
Basically they are the same, but viPrintf() is buffered IO that the VISA internally buffers the contents before sending them out. Plus, viPrintf() is more flexible for ASCII based IOs and you can use it as if using print() with "%" identifiers, taking veriable numbers of parameters. This is also true for viScanf() and viRead().
> Ah one more thing : how can I easily get the TCP
Normally, the instrument IP address can be shown on the instrument's front panel including DHCP enabling or fixed IP address. (See the instrument manual.) If the instrument is VXI11 based, you can also search for it from NI-MAX.
As for Borland environment, you can use VISA in the same manner of VC++. Mind that the visa32.lib to link is different for MSVC and Borland. The correct visa32.lib for Borland is found in the C:\VXIpnp\WinNT\lib\bc directory.
このメッセージは 03-26-2007 01:04 PMに Makoto が編集しています。
03-26-2007 03:14 AM
03-26-2007 06:05 AM
03-26-2007 09:52 PM
03-26-2007 09:53 PM
03-26-2007 10:59 PM - edited 03-26-2007 10:59 PM
このメッセージは 03-27-2007 02:06 PMに Makoto が編集しています。