01-05-2009 05:19 PM
Hello,
I am using a NI 6509 I/O card. I have to write in Visual C# different lines on different port to drive Leds, Relay, Motors and so on ...
I have found in dotnet 2.0/example some examples written in C# to write digital ports set in output like "ReadDigPort".
I would like to know if code examples exist on "masking or Xoring" data in order to modify only a single line of the port without
affecting the value of the other lines ?
Solved! Go to Solution.
01-07-2009 07:05 AM
hi,
You can use the function "WriteSingleSampleSingleLine" to write only one byte on the port or you can read, masking and write all the line with "WriteSingleSamplePort".
Regards,
Aurélien J.
National Instruments France
11-10-2011 10:47 AM
Hi all,
Aurélien J. (National Instruments France) wrote :
***
You can use the function "WriteSingleSampleSingleLine" to write only one byte on the port or you can read, masking and write all the line with "WriteSingleSamplePort"
***
can you please explain to me what "WriteSingleSampleSingleLine" function is, and where is it written ?
I write C++ code with Linux 2.6 OS and I am intersted in the possibility to address only one line in a port without masking bits as masking rewrites values on a port and generates glitches that may damage receivers (for 0V output glitch is +0.92V ~ -1.12V and my TTL only supports 0~+0.7V) .
Thanks in advance.