Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing raw data at 6542 IO pins, how do you do that?

I need to access the raw data (signal) at the IO pins of the 6542. I will use this data in my CIN to do some special processing. How can I read the raw signal at the IO pins of the 6542?
Thanks
6542User
0 Kudos
Message 1 of 2
(3,054 Views)
Hello 6542User. I'm understanding your question to mean that you want to do a software initiated single read of the data lines (i.e. a static acquisition). Use the following functions from the NI-HSDIO driver:

niHSDIO_InitAcquisitionSession ()
niHSDIO_AssignStaticChannels ()
niHSDIO_ReadStaticU32 ()
niHSDIO_Close ()

There's a good example that ships with the driver that shows these functions being called:

..\niHSDIO\Examples\c\Static\StaticAcquisition\StaticAcquisition.c

Channels on the 6542 may be configured for static acquisition even when another data operation is in progress. For instance, you might be dynamically generating a digital waveform at 100MHz for hours, but still have a seperate section of code that statically reads the same channels without interrupting or affecting your generation operation. And in case you're wondering, the data is physically being sensed by the pin comparators - it's not merely checking what's currently in a software buffer.

I hope this helps,
Chris
0 Kudos
Message 2 of 2
(3,046 Views)