05-11-2011 10:08 AM
Hi Guys
Does anyone know how I can adjust the gain of an arbitrary waveform when using scripting mode in the C/C++ API?
I've found the relevant functions for Arbitrary Sequence mode and Standard Function mode, but not for scripting mode.
That is:
As far as I can gather its necessary to use niFgen_WriteNamedWaveformF64 in order to refer to that waveform in the script by name, but the function itself has no gain/amplitude argument and it does not return a handle to the function such that I could use niFgen_ConfigureArbWaveform.
I can accomplish this in a Labview VI by writing the 'arbitrary waveform - gain' property using the niFGen Property Node, so I assume its must be possible in the C API
Any pointers in the right direction would be appreciated.
Thanks
Greg
05-12-2011 05:28 AM
Hi Greg,
You could create a dll from your LabVIEW code and call it from you C++ code. Is there any reason why you are not just using LabVIEW?
05-12-2011 05:44 AM
Hi Tom
I was looking at the possiblility of modifying the script programmatically and thought it might be easier in C, no other reason. I just found it curious that something that can be accomplished in Labview can't (as far as I can tell) be accomplished in C, especially considering I assume Labview just calls the same C functions behind the scenes...
Greg