LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1073807339 error with a Hameg hm8118

Hi,

 

I'm trying to do some simple scans with a hameg hm8118 lcr bridge, but I keep receiving the error -1073807339.

 

The code Im using I downloaded from NI's website http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=80634808372B577CE04400144F1EF8... .

 

I have gone through both http://digital.ni.com/public.nsf/allkb/E6DFA2B8D7E99F9886256C14005E82F7 and http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0 without generating any fruitful result. I have managed to send some simple commands through windows hyperterminal but when I run the labveiw code I receive the timeout error 1073807339 at the first visa read. I have tried to use an usb connection (I installed the required software for that) and a serial connection both giving me the same result. I have also tried using two different computers but with the same negative outcome. Im using labview 2012 and visa 5.3. The hm8118 is very new (purchased in the autumn of 2012) and I have updated the firmware to its latest.

 

I'd appreciate any help I can get, because Im starting to feel a little desperate.

 

Thank you in advance /klirfan

0 Kudos
Message 1 of 12
(4,948 Views)

I have the same problem. Do you already know how to fix it? Thanks!

0 Kudos
Message 2 of 12
(4,731 Views)

Hi sagfuasgfi

 

I haven't found a complete solution yet. I sent some emails to hameg, but they didn't reply me. So I turned to the distributor instead. They were talking about some kind of software malfuction (I wasn't the one who spoke to them). I sent the hm8118 to the distributor for them to repair it. They sent it back quite fast and claimed there was nothing wrong with it. I have not had the chance to test it yet as I have put that part of my project on hold. If I learn anything new I will get back to U.

 

Kind regards /klirfan

0 Kudos
Message 3 of 12
(4,712 Views)

Hi Klirfan, I automatized the HM8118 by visual basic (RS232 interface, without any kind of problem. But now I'm trying to to the same by means of labview. I have usb or rs232 interface in HM8118.

I did exactly the same like you.  Do you already know how to fix the problem?. I installed the labview driver, and by measurement&Automation, I'm not able to send any command...

0 Kudos
Message 4 of 12
(4,647 Views)

Hello OLP

 

I was facing the same problem with HM8118

 

the Lab VIEW drivers were not working , Hence I have hardcoded own VI's but there is a non synchronous communication the expected outpot is diplayed

but some times there is no communication and there is missing of some data

 

I think there is a problem in

 

1. Delay between Read and Write or

2.start and termination bits missing

3.No chcksum

 

I have read the manauls but there was nothing sepecifally mentioned below is the attached VI , and manuals

 

What type of syntax did you use for the serial communication via Visual basic.

 

Did any one achieved success..!?

0 Kudos
Message 5 of 12
(4,559 Views)
0 Kudos
Message 6 of 12
(4,557 Views)

Simply saying the driver is not working is a pretty poor description of your problem. What is the error code that you get when you run something as simple as the Initialize function? Your code is not sending any termination character at all and that is certainly incorrect. Using the Bytes at Serial Port when VISA is configured to use a termination character is also incorrect.

0 Kudos
Message 7 of 12
(4,549 Views)

Thankyou Dennis for your time and reply 🙂

 

I am extremely sorry if I was mean , but the problem was the same error which was mentioned by the above users 

It was timeout error 1073807339.

 

1.yes there was no termination character mentioned in the manual( http://http://www.hameg.com/470.0.html?&tx_hmdownloads_pi1[product]=HM8118&tx_hmdownloads_pi1[produc....)

 

2.not using the bytes at port instead of constant resulted in no communication hence had to use the property node (by doing so i received the data from the device which was not continious) 

 

kindly suggest me what was the problem, I have set the baud rate,stop bit,handsshake parameters set according to the manual.

 

Can it be the drivers and Firmware of the instrument mismatch.!?

 

I do not know what am I missing.I receive the appropriate bytes return from the serial read,but some times 0.

 

Thanks for you patience and guidance 🙂

0 Kudos
Message 8 of 12
(4,535 Views)

communication instructions from the manual

Download All
0 Kudos
Message 9 of 12
(4,532 Views)
The link you provided is not valid.

A timeout failure can be caused by wrong com parameters, the wrong type of serial cable, sending the wrong command, sending no termination character, or sending the incorrect termination character. The instrument certainly requires a specific termination character and if it's not listed in the manual, you need to contact the vendor. It's also possible it is something you can set from it's front panel. It's also possible that you have to set serial mode from the front panel.

As suggested in the manual, first test communication with a terminal emulation program such as hyperterminal, putty, etc.
0 Kudos
Message 10 of 12
(4,521 Views)