From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Custom Input Signals For Unit Testing Purposes

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

 

 

0 Kudos
Message 1 of 3
(1,100 Views)

Has anyone had success with the above? 👆

0 Kudos
Message 2 of 3
(1,054 Views)

Is this possible to do in software?

 

I would rather not have to send in an external voltage signal for testing. 

0 Kudos
Message 3 of 3
(1,035 Views)