These C# examples demonstrate a few use cases for the VeriStand .NET API.
The C# examples attached provide example programs that use the NI-VeriStand .NET API. The examples are structured to replicate the functionality of the LabVIEW examples located in <labview>/examples/NI Veristand.
Unzip the examples run them in a C# compatable programming environment.
Software
This examples were orginally created for use with NI VeriStand 2011. VeriStand 2011 is required to use the examples contained in C#-VS Examples.zip.
Additionally, these examples were updated for use with NI VeriStand 2014. VeriStand 2014 is required to use the examples contained in C#-VS Examples_2014.zip.
We have developed examples based on user feedback. Please feel free to leave comments about these examples and feedback on future examples that would be helpful. Immediate support-type questions can be directed to the VeriStand forums.
This add-on is provided as open-source software. If it does not meet your exact specification, you are encouraged to modify the source code to meet your needs. It is not officially supported by National Instruments.
If you encounter a problem with this add-on, or if you have suggestions for a future revision, please comment below.
National Instruments does not support this code or guarantee its quality in any way. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
Tried this solution, I was able to read channel values. However, could notice that an extra digit is coming in the left side of 0th index element. ie, an extra element is added on left side of 0th index element while reading a no. of channels.
Anyone faced the same?