12-02-2009 12:52 PM
Hi John,
The vi has been modified according to you suggestions. Now it is generating AO and DO in sync!!!. There might be few modifications required in future, if i have any questions i will post back them in this thread.
Thanks a million!!!
Regards
Viswa
03-16-2010 10:35 AM
Hi John,
I want to control each waveform parameters such as frequency, amplitude and phase independently, i can do that using numeric controllers. But i want to change frequency and amplitude while vi is running so i tried to use control KNOB instead of numeric control. The problem i cant control data range independtly for each of the elements. Could it be possible to implement it?
What i mean is that i want to have variable control knobs with different maximum and minimum values for all parameters in every array.
Suppose i want to have frequency for two waveforms say maximum to 10000Hz can be variable in steps of 100, where as for other waveform i want to have maximum frequency 50 only and can be varible precisely in steps of 1.
03-16-2010 12:18 PM
03-16-2010 12:30 PM
Hi Dennis,
I did try the method that you are explaining but if you look at the vi attached in the previous page ver 2.0 you might get what i am trying to explain. If i change max and min value to any one of the knob control, all other knobs get the same settings. I just dont want that to happen.
Thanks for your quick reply.
03-16-2010 12:56 PM
03-16-2010 01:08 PM
First of all, whether the control is a knob or a text field you can still change it on-the-fly.
It sounds like you prefer the knob (which is OK), but you want to have different max/min values on the different knobs. The problem is that the control is an array of knobs (each element in the array is a cluster with the desired waveform parameters--the idea was that this would be scalable to any number of AO channels). I don't know of a good way to change the scale of knobs in an array element-by-element.
If you want to have different knob scales for the different channels, I would probably use a cluster control for each rather than having one array of clusters.
Best Regards,
03-16-2010 01:18 PM
03-16-2010 01:26 PM
I had a feeling, it's hard to tell sometimes from a screenshot (it helps that I wrote the code in the first place). Thanks for posting anyway!
03-18-2010
06:58 PM
- last edited on
05-23-2025
05:04 PM
by
Content Cleaner
Hello John,
You are right about using cluster of waveform parameters individually for each waveform than using array of waveforms. I have modified the vi with my requiremnets and worked well, only the remaining thins is to implement triggering at rising or falling edge. Iknnow that its straight forward to implement.
I never understood the link https://forums.ni.com/t5/Example-Code/Two-Analog-Output-Waveforms-With-Different-Frequencies-and-or/...
I had always a question about multiple waveform generation. Does my task need to define any buffer lengths as explained in the above link??
Thanks for the help!!
I guess you have the sub vi Generate PWM.vi
03-18-2010 07:55 PM