10-16-2019 11:04 AM
hello,
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?
thank you
Chris
Solved! Go to Solution.
10-16-2019 11:37 AM
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.
10-16-2019 03:04 PM
Worked fine...thank you