ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Waveform

Hello,

 Where can I find a Measurement Studio C# function to perform the same operation as the "Formula Waveform" VI in labview?

Thank you.

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

Hi MDKF,

 

I've got good news and bad news. The bad news is that there isn't a C# function that performs the same operation as "Formula Waveform" Vi in LabVIEW. 

 

The good news is that it is relativity easily to graph waveforms based on a function. This particular function is implemented in LabVIEW because it's difficult to graph waveforms due to the inherent structure of LabVIEW. With C#, all you have to do is to generate an array that contains all the vales of your math function. Then plot the array into a graph. Below is a Visual Studio link that explains how to create an array in C#.  

 

http://msdn.microsoft.com/en-us/library/dbcwkdwa%28v=vs.80%29.aspx

 

I hope this helps.

 

Josh L.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,284 Views)