LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HP 4145 Graphics Plot.vi from the instrument library, gives an error when run on HP 4145A!

I am using the drivers downloaded from NI.  I tried using the "Example" demo and was able to get (Channel Def & Source Setup) to work...other than "Graphic Plot"  I used the highlighted debugger to trace the signal down to GPIB Read.  After a period of time (I assume it was polling timeout), it spits out the signal to indicate "Receive Message" Error.  The VI was able to control the 4145A to plot the graph...but I'm unable to receive the data from the system.  I tried opening the NI-SPY, but I'm not familar with the application (It's constantly looking for a *.spy file).

Thanx for your previous suggestions.

0 Kudos
Message 11 of 15
(2,099 Views)
Hi, I am having a similar problem as described in this discussion.  Has anyone had any luck getting any data back from the HP4145a?  Sending works fine, I can easily control the device, however, whenever I try to send a "DO 'XX'" command, I get the above mentioned errors.  In the 4145a documentation, there is an example, figure 3-42 on page (3-105) which reads a status byte and waits unitil bit 0 of that byte is 1.  This indicates that the data is ready, at which point it sends the "DO 'XX'" command.  However, a GPIB Read returns nothing.  Is there possibly a way in LabView to check that bit value.  I am new to LabView so I am not sure how this would be done.

Any help would be appreciated.  Thank you.
0 Kudos
Message 12 of 15
(2,078 Views)
oneeyedd,
 
I finally got the 4145A to take measurement and receive data.  Unfortunately, out of 101 points, I've only received 73 data points.  The rest is all '0's until the 101 slot.   After the DO 'XX' command, did you also send in "DR1" to let the machine knows that it's data ready?  It might be the one regarding your "Status bit" problem.  Also, check the back to make sure your last to bits (6 & 7) is set correctly.  It's either comma or LF (bit 6); and EOI (make sure that's also correlates to your 'Mode" setting when you're trying to read data from the device.
 
Good Luck
0 Kudos
Message 13 of 15
(2,021 Views)
Hello everyone

I have been experiencing the same problem as others on this thread. I can send commands to my 4145B but I cannot read data from it (I keep getting the receive message error).

I am using the LabVIEW 7 VI set downloaded from the NI website here:
http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E948F659CE034080020E74861

I have tried adding in delays in the send message.vi and receive message.vi files but I keep getting errors. I am inexperienced with LabVIEW so I am probably doing something wrong.

Could someone please post step-by-step directions on how to edit the VI's so that I can receive data from the instrument? Or explain a different way to get the data?

Or better yet, if anyone has a working driver for the 4145 could you please send it to me.

Please help!  I would greatly appreciate it. Thanks!

- Jeff
0 Kudos
Message 14 of 15
(1,800 Views)
Duplicate Post

Regards,
Ebele O.
National Instruments
0 Kudos
Message 15 of 15
(1,763 Views)