LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ni 9263 mod for compactrio signal stepping

Hi everyone,

 

I'm not sure if this is quite the right place ot post this (this is my first time here), but anyways, here's my issue. I'm trying to use a Simulate Signal VI to output a sinusoidal voltage through the NI9263 mod for CompactRIO. It appears to be connecting fine to the CompactRIO but the signal appears to be a sinusoidally shaped stpe function with each step taking about 100 milliseconds. 

 

My code works kind of like this. I have inputs for the user to type in signal frequency, phase, and amplitude. These get sent to a simulate signal VI which is inside a while loop that runs for a user-specified amount of time. The simulate signal's output is then coerced so that the output value is between 0 and 4 before it is linked to the AO0 on the cRIO mod. I have tried wiring things in a couple different ways and have adjusted just about every setting but the output insists on being a sinusoidally shaped step function. I have found that I can adjust the frequency of the steps by modifying the values for samples per second and number of samples in the simulate signal VI, but that only lowers the frequency to something even worse than it already is. How might I be able to improve this? Any suggestions would be greatly appreciated.

 

Thanks,

Trent

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

To clarify, as I'm not sure I stated this clearly enough in my original post, the problem is the functino stepping. I need the sine curve to be smooth, or if the function for some reason must be a step function, it needs to have a high enough frequency to appear smooth, something around a couple thousand steps per second would be ideal. Any input would be greatly appreciated. Thanks.

0 Kudos
Message 2 of 3
(2,224 Views)

Hi there, Assuming you are programming in FPGA interface...This example is doing the same operation you are describing so you can take it a as a reference. I hope this helps

Alejandro C. | National Instruments
0 Kudos
Message 3 of 3
(2,207 Views)