Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial device hangs up on multiple Visa Writes/Reads

Hi there,

Im communicating with a DMM (Rigol DM3062) by serial port. After a few minutes of writing and reading bytes the multimeter crashes and hangs up (screen frozen).

I got a VI(attached) which uses Visa Writes and Reads to get the measured data and they are arranged in a sequence with timeouts in between. Both are in the same while-loop with some flush buffer functions. I first thought that its all about a buffer overflow but im not sure at the moement, because the Read function is linked to "Serial Instr->Bytes at Port" and all bytes are elected (i cheched this by putting an indicator to "Visa Read -> return count"). Allways the same amount of bytes a read(14 bytes for :measure:voltage:DC?).

 

Any ideas out there?

 

Best regards,

Jan

0 Kudos
Message 1 of 9
(4,756 Views)

I don't see any issue in your code except bit worried about local variables. Try to change your code to Basic serial write and read example. That would be pretty easy and you can easily get rid of the freeze.

0 Kudos
Message 2 of 9
(4,745 Views)

The DM3062 likely programs the same way as the DM3058 since the same Series 3000 Programming Guide covers both, and drivers for the DM3058 are available here: http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=15348

 

I would suggest trying the drivers for the DM3058, as you may not need to do much with the meter.

0 Kudos
Message 3 of 9
(4,734 Views)

Never change a shipping VI without changing the name!

 

Your mods are a little strange. If you enable the termination character, you have no need for a wait or for the Bytes at Serial Port.

0 Kudos
Message 4 of 9
(4,730 Views)

Hey there,

Thanks for your responses.I already had a look at this driver, but im not that familiar with IVI. Im not able to set a baud rate and so the initialize.vi errors out due to timeout. Doesn't IVI need a "configure serial" like VISA?

 

Best regards,

Jan

0 Kudos
Message 5 of 9
(4,717 Views)

Did you download the IVI one? Why? Download the LabVIEW one. The one that says just "LabVIEW" in the ADE column and says "project-style". Specifically: http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7056A63387FD22BFE04400144FB7D2...

0 Kudos
Message 6 of 9
(4,699 Views)

Hi deryoshi,

 

since you observe a crashing/hanging multimeter panel display I would definitely recommend to contact the Rigol technical support. Most likely it is an internal problem of the Rigol DM3020 device, maybe it can even be fixed by a firmware update. Serial communication with the device should not be able to bring the device to an erroneous state.

 

Let us know how it goes! 🙂

 

Best regards,

 

Benjamin

0 Kudos
Message 7 of 9
(4,696 Views)

hey there,

The project style took alot work away from me. Thanks for this man. But the freezes are still present. I contacted support again today.Stay tuned 🙂

0 Kudos
Message 8 of 9
(4,676 Views)

Now the time for this project is sadly over and i have to focus on other things now. There will be no more input to this thread by myself. I still did not solve the hangup-problem and the Rigol support is cruelly bad. I wrote about 15 emails and most often got an unsatisfied feeling about their "answers". Sometimes no response at all.

 

Best regards,

Jan

0 Kudos
Message 9 of 9
(4,637 Views)