Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

HI, I'm having problems initializing object for CNiFgen class.

Hello, I'm having problems initializing object for CNiFgen class, I declare a pointer *m_pFgen to the CNiFgen class, then m_pFgen = new CNiFgen(m_driver, true, true) and then it gives me an error message Primary Error: (Hex 0xBFFA000C) Invalid attribute.
0 Kudos
Message 1 of 4
(2,939 Views)
Here is how to make a call to initialize a session to niFgen:

//Create a new session on the device
_session = new CNiFgen(m_resourcename);

Also. I'm attaching an example on how to generate standard waveforms with the class interface for Fgen.

Let me know if you have any other questions,
Jack Arnold
Applcation Engineer
National Instruments
Message 2 of 4
(2,939 Views)
Here are some other questions I recently received about niFgen:

>>How do i generate a sequence of waveforms, like first a sine wave,then a square one, and say again a sine wave?

I have attached another example shows how to sequence waveforms with the class interface.

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,939 Views)
Jack
The examples require several header files, including NiFgenComponent.h and NiFgen.h which were not put in the \VC\include directory during the MeasurementStudio installation.

Are these available for download? NiIviFgen.h and similar headers do show up in the directory, btw.
0 Kudos
Message 4 of 4
(2,939 Views)