I'm new to LabVIEW and I wanted to find some information on a instrumentation communication problem.
I'm using LabVIEW 2015 ( 64 bit) and there is a example GPIB vi from NI example finder (Simple GPIB.vi)
(also installed NI MAX ver 19.0.0f0 & NI488.2 ver 19.0).
The instrument I'm trying to communicate with is an old HP 4142B from the late 1980s.
I seem to be able to communicate with it if I use the NI488.2 interactive programs outside of LabVIEW.
Within the Simple GPIB.vi I am able to write to the instrument but I cannot read, and I reach the timeout.
One of the notes in the VI states that in some instrumentation it may be necessary to place GPIB initialization in the LabVIEW code.
So my question is that someone have an example which adds GPIB initialization to the VI?
or does somebody know of a reason why I might be just having trouble in general?
Solved! Go to Solution.
You need to terminate your commands with and End Of Line character. You can use Concatenate Strings and an End Of Line constant to add this termination to your command string.