LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hp4145a GPIB through LabView write but no read

Hello dear spectro,

I am encountering this same problem. Do you think you can tell me exactly how you add 50 s delay before the DO command? I am using the Labview GPIB example, I can write to the instrument fine, yet once I execute "DO 'VS1' " I get error in the read. and no data shows up.

would really appreciate if someone can help me on this.

Regards,

Pat

0 Kudos
Message 11 of 19
(2,495 Views)
There is a function called "Time Delay" in LabVIEW. It uses the error cluster to maintain dataflow, delaying the output the specfied amount of time. You can place this function before the read function.

Tip: Right click on the function and say "view as icon" to make it have a smaller footprint on the block diagram.

Hope this helps,
Rick Kuhlman
0 Kudos
Message 12 of 19
(2,475 Views)

Dear Haosan,

 

I  included the delay at each sequence, in order to allow the hp4145 to have enough time to send the data.

By using the command print and after 50 s the gpib read, you have enough time to get the data.

 

Best Regards

 

 

0 Kudos
Message 13 of 19
(2,463 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 19
(2,341 Views)
Hi Jeff,

How much of a delay did you use? You could try increasing it a bit to see if you can get things working. Also, I assume you are using the "Send message" VI, and then calling the "Receive Message" VI after it. You'll need the delay between those two VIs. Basically, you need a delay between after each "write" VI before you do a "read". Hope this helps. Thanks!

Regards,
Ebele O.
National Instruments
0 Kudos
Message 15 of 19
(2,305 Views)

I too recieved the same error when I tried to use HP4145. I kept a wait of 14000ms between send and recieve signals. This is the error I recieved from LABView.

 

Error 0 occurred at ; HP 4145 Receive Message

Possible reason(s):

Motion:  No Error.
---
Motion:  No error.
---
NI-845x:  The operation completed successfully.
---
NI-488:  Error connecting to driver or device.
---
VISA:  (Hex 0x0) Operation completed successfully.

 

 

 

Kindly Help me out!!

Suchit Shah
Graduate Student
Electrical & Computer Engineering,
Northeastern University,
BOSTON
MA 02115

Certified LabVIEW Associate Developer
0 Kudos
Message 16 of 19
(2,037 Views)
Hi Suchit,
Error code 0 is an instrument specific error code and is not associated with LabVIEW.  This makes it a little bit hard to troubleshoot.  There are a couple things I would like to have you try to narrow it down to either a hardware or a software problem.  First, can you try using the example program that comes with the instrument driver?  You can also try comunicating with the instrument through Measurement and Automation Explorer (MAX).  Use the VISA test panel if you want to go through MAX.  If you cannot communicate to your isntrument using these 2 methods, then there is either a hardware or driver issue.  If one of these 2 methods work, then there is something wrong with the code you are trying to run.
Scott G.
AE Specialist
National Instruments
0 Kudos
Message 17 of 19
(2,016 Views)

spectro,

 

I am trying to program LabVIEW to take measurements from a HP4145B.  Where did you specifically inlclude time delays in your program to get the data to send back to your PC?  You were simply changing the "example.vi " from the hp4145b library correct?

 

Thanks,

 

Orb 

0 Kudos
Message 18 of 19
(1,667 Views)

Hello everyone:

 

My name is George. Sorry for bringing back this old post but I am having the same problem reading out the data from the HP4145B through the GPIB interface and VI HP4145B Example.vi in LabView.

 

I am quite new with LabView, 2 days to be exact, and I don´t know how to solve this issue. I can successfully comunicate with the device using the GPIB interface and the VI with the HP4145B example in LabView. However I cannor read out the data from the equipment into the grapchics plot of LabView. I get the error code 6 "HP 4145 Receive Message".

 

Would you be kind enough to explain me how can the delay be inserted (is it done in the HP4145B equipment or in LabView in some block) and then how were you able to read ot the data? I tried to insert a delay of 50 sec (as suggested by spectro): I did it in the channel setup of the HP4145 with the DELAY function but for 50 sec delay it gives me Overflow. I can introduce 5 sec max. Is that the right place to do it in the equipment? (maybe not). Do I have to do it somewhere in LabView and how? Then I pressed PRINT but nothing happens, I can see the PRINT message on the CRT display of the equipment...What do I need to do then?

 

I hope you can provide me the solution as I am really new with LabView, just started the other day and I cannot figure it out.

 

Best regards,

 

George.

0 Kudos
Message 19 of 19
(960 Views)