LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BK2831E

Attached is my Initialize VI for the DMM.  It works fine.  I had a lot of trouble getting the DMM functions to work.  My Configure VI is attached also.  The meter seems to be very slow and needs large delays.

Download All
0 Kudos
Message 11 of 23
(1,661 Views)
Instead of images, you should post the actual VIs. Images should be posted as snippets. Look at how to create snippets on the help.
0 Kudos
Message 12 of 23
(1,644 Views)

I have this same code for the initialization, but it is still not working.  See the NI trace I acquired.  Any thoughts?

 

I did try to use the "Instr Assist" blocks and they seem to sort of work.  They lock the device though and it makes it very hard to debug.

 

iotrace_Capture.JPG

 

 

Here is my code:

code.png

0 Kudos
Message 13 of 23
(1,636 Views)

I notice that the instrument assist seems to use the same viOpen calls that NIMAX and the Agilent IO tool use.  Am I useing the wrong category in my VI such that I am getting the VISA calls instead?

 

This is the trace from the instrument assist box.

inst assist io trace Capture.JPG

 

Issue I have with this is that there is no way to insert delays between commands.  The DMM seems to have issues with the commands coming to fast.  If I split it up into different blocks, the block seem to flush the IO when they are called/leave so you loose your data.

0 Kudos
Message 14 of 23
(1,619 Views)
The instrument assistant, MAX, the agilent tool, and your VI all use VISA.

Setting the termination character to none is just wrong. Why do you have that?
0 Kudos
Message 15 of 23
(1,612 Views)

I agree.  You have to have the termination character enabled and set to 0xA for this meter.

0 Kudos
Message 16 of 23
(1,602 Views)

So why do they show up differently in the NI IO trace tool?

 

Not sure what you mean about the termination character.  It is on and set to xA for a LF.

0 Kudos
Message 17 of 23
(1,590 Views)
You have a property node that sets end in and end out to none. Why?
0 Kudos
Message 18 of 23
(1,575 Views)

I got it working.  I failed to see somehow my data bits got set to 7 instead of 8.  Also the setting of the buffer size seemed to be messing things up so I just removed that.  thanks all.  The DMM is very picky, I have had to put a bunch of time delays in or it errors out.

0 Kudos
Message 19 of 23
(1,570 Views)

Would it be possible to share the actual VI that was created for this DMM? I'm trying to connect mine to LabVIEW and am in way above my head. The pictures are great, but ideally I'd love to be able to grab the VI you developed and run with it.

0 Kudos
Message 20 of 23
(1,473 Views)