Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

NI Virtual Instrument Simulator

9 ratings | 3.22 out of 5
Print

Downloads

Filename: simulator7x.llb
Requirements: View

The NI Virtual Instrument Simulator emulates simple serial instruments using a serial port on your PC just as the NI Instrument Simulator would, using its' built in serial port. However, the Virtual Instrument Simulator uses a subset of the NI Instrument Simulator commands.

The NI Virtual Instrument Simulator responds to the following commands:

SENS:DATA?
MEAS:DC?
*IDN?
*TST?

*The NI Virtual Instrument Simulator requires a line feed termination character and will disregard any commands sent to it unless this character is appended to the end of the command string.

The default settings for the serial port use COM 2 with 9600 baud, 8 data bits, 1 stop bit, and no parity. If your system does not match these settings they can be changed in the VISA Serial Initialization.vi.

To run the NI Virtual Instrument Simulator:
1. Connect another serial equipped device to the com port on your machine.
2. Run the VI and select the com port used in step one from the front panel.
3. Enable the simulator by flipping the power control "ON" on the front panel.
4. Send serial commands that the device responds to and power "OFF" the simulator when finished.

*A serial crossover cable can be connected from one com port to another on the same machine in order to send serial commands from another VI running on the current machine.

Requirements


Filename: simulator7x.llb

Software Requirements


Application Software: LabVIEW Full Development System 7.0
Language(s): LabVIEW

 
9 ratings | 3.22 out of 5
Print

Reader Comments | Submit a comment »

wow - well done !
this little proggy is precisely what I was just about to write myself. You sure saved me a lot of work. Thanks :)
- helmut.urban@joanneum.at - Jul 29, 2005

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).