Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

Generate Custom Input Signals For Unit Testing Purposes

$
0
0

Hello,

 

I'm looking to perform some automated unit testing in my application, by generating custom input signals (analog and digital) that simulate my application.  I have a USB-6001 DAQ.

 

For example, I want to generate a "happy path" test that passes when the voltage rises from 0 to 4.5v.  The failing test would be that it exceeds 4.5v.  

 

I'm using C# .NET, but I haven't seen many examples of generating signals to accomplish this type of task.  

 

Can anyone lead me to an example of this type of signal generation that I can then read in on my analog and digital inputs?

 

Unfortunately, a virtual device doesn't seem to work as I need to generate custom signals.

 

Many thanks,

Ryan

 

 


Viewing all articles
Browse latest Browse all 1999

Trending Articles