LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i do hardware compare using hsdio when the generation and acq clock rate are different

Solved!
Go to solution

Hi there

 

my application should generate a digital stream in clock rate A with bus width (number of bits) very from 1 to 4 bits

The DUT will response always on on bit but with clock rate B.

 

1. can i use the hardware compare mechanism of the hsdio boards.

2. if answer is YES is there any sample that can help me getting started.

 

Thanks for advance

Gabel Daniel

0 Kudos
Message 1 of 4
(3,308 Views)
Solution
Accepted by topic author aplication_developper

Hi,

 

Yes, you can do hardware compare with different acquisition and generation rates.  There are several examples that are included with the NI-HSDIO driver.  There are a few hardware compare examples you would want to check out.

 

Jon S

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,292 Views)

Hi Jon

 

Thanks for the reply

 

Gabel Daniel

0 Kudos
Message 3 of 4
(3,286 Views)

Hi,

 

One good example to use as a starting point can be found in the NI Example Finder.  Navigate to "Hardware Input and Output" >> "Modular Instruments" >> NI-HSDIO >> Dynamic Acquisition and Generation >> Hardware Compare - Error Locations.vi.  You'll need to explicitly wire in your new rate into the "niHSDIO Configure Sample Clock.vi" on your response task.

 

hardwareCompareRates.png

 

There is also a portion of this code that warns if the stimulus and response waveforms are not the same size.  This is not necessary, and could be deleted from the program. You are allowed to have different size stimulus and response waveforms.

 

hardwareCompareRates_2.png

 

Jon S

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,276 Views)