Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

6552 Hardware Compare using a known good .HWS response file

I have a PXI-1045 with 3 6542's and 5 6552.  I am trying to test a circuit card that has 72 digital inputs and 46 digital outputs (no bi-directional). 

The 6542's apply the stimulus to the 72 inputs using stimulus files (.HWS) created in the Waveform Editor.

 I'm using 3 of the 6552's to acquire the waveforms from the 46 outputs.  So far so good. 

I also have a known good response file that was created in the Waveform Editor.  I'm wondering if it is possible to load that file into my
acquisition devices (6552's) and perform a Hardware Compare?  Or must I do this some other way?

So far all the examples I've seen for Hardware Compare are using the same device for Gen and Acq.

Thanks,
Rick
0 Kudos
Message 1 of 7
(4,225 Views)
rktork,

the 6552 is capable of hardware comparison.  You can download the HWS waveforms as expected response data and the hardware can be set to return only errors in the actual response relative to your expected data.  The latest HSDIO drivers have some examples for hardware comparison that are a good place to start.

LabVIEW>>Help>>FindExamples>>Hardware Input and Output>>Modular Instruments>>NI-HSDIO>>Dynamic Acquisition and Generation>>"Hardware Compare ... . vi".

These examples were authored expecting a single 6552 to generate the stimulus and acquire the response.  For just response data you may refer to the examples found at:

LabVIEW>>Help>>FindExamples>>Hardware Input and Output>>Modular Instruments>>NI-HSDIO>>Dynamic Acquisition>>"Hardware Compare - Response Only . vi".

When you look at the diagram, you'll notice that the code is almost the same.  The main difference is that now, you use the "Expected Response Only" input to the Hardware Compare attribute.  The expected response data is actually generated data so you need the  generation session in order to get the hardware times operation.  Whether the data is a driven 1,0,Z or an acquired/expected H,L,X, the data is still generated in the sense that it is stored into memory on the SMC then generated (hardware timed) down to the control logic. 

Also, the new digital waveform editor, has integrated the hardware comparisons and is not more tightly coupled with signal express allowing for a very quick integration of your response waveforms and the hardware.  Information on the latest Digital Waveform Editor can be found here:

http://sine.ni.com/nips/cds/view/p/lang/en/nid/13050

Hopefully that will get you going.  If you run into any trouble, don't hessitate to post

Thanks,
Ryan M

Message Edited by Ryan M on 08-15-2007 08:43 AM

0 Kudos
Message 2 of 7
(4,198 Views)
Thanks for the reply Ryan!  I'll give it a shot.

Rick
0 Kudos
Message 3 of 7
(4,176 Views)
ps, "not more tightly coupled" should read "NOW more tightly".  that was a rather dreadful typo hah
0 Kudos
Message 4 of 7
(4,172 Views)

Hi Ryan,

I ran similar file "Hardware Compare - Error Locations. vi" as you mentioned in your post and got the following error message:

Error -1074118626 occurred at Property Node (arg 1) in Hardware Compare - Error Locations.vi

Possible reason(s):

This attribute or function is not supported in this session.
Ensure that you are not using an acquisition-only attribute or function in a generation session or a generation-only attribute or function in an acquisition session.

My card is pxi-6541.

Could you tell me any possible cause for this error?

Thanks a lot,

jing

0 Kudos
Message 5 of 7
(3,900 Views)
Hi everyone,

This is a duplicate post (although predated). Please keep all discussion regarding Jing's error to this thread.
Ryan D.
District Sales Manager for Boston & Northern New England
National Instruments
0 Kudos
Message 6 of 7
(3,871 Views)

Thank you Ryan! I will post my question following that thread.

Jing

0 Kudos
Message 7 of 7
(3,862 Views)