07-27-2007 12:10 PM
07-30-2007 07:42 PM
08-01-2007 12:49 PM
Jesse O,
Thanks for the reply.
I have adjusted my code to use the same sequence of function calls that you used in LabView, however I am still observing the same issue. I cannot supply my code "as is", however I can supply the sequence of IVI functions ( As I did in my previous post ) with more detail.
IVI Function Calls:
IviFgen_InitWithOptions( (char *)GetObjectName(), \\ IVI Logical Name
VI_TRUE,
VI_TRUE,
(char *)m_pszInitString->c_str(), \\ Empty String
&m_hFGen ) \\ Returned Instrument Handle
IviFgen_GetChannelName( m_hFGen,
Index, \\ Value = 1
256,
pchName ) \\ Returned channel name used in following functions
IviFgen_ConfigureOperationMode( m_hFGen,
pchName ,
lOperationMode ) \\ Value = 0 (Continuous)
IviFgen_ConfigureOutputMode( m_hFGen,
lOutputMode ) \\ Value = 0 (Function)
IviFgen_ConfigureStandardWaveform( m_hFGen,
pchName ,
lWaveform, \\ Value = 1 (Sine)
dAmplitude, \\ Value = 3
dDCOffset, \\ Value = 0
dFrequency, \\ Value = 1000 ( I've tried many different frequencies with similar results )
dStartPhase ) \\ Value = 0
IviFgen_SetAttributeViReal64( m_hFGen,
pchName ,
IVIFGEN_ATTR_FUNC_DUTY_CYCLE_HIGH,
dDutyCycle ) \\ Value = 50
IviFgen_ConfigureOutputEnabled( m_hFGen,
pchName ,
bEnabled ) \\ Value = 1 (true)
IviFgen_InitiateGeneration(m_hFGen)
I've attached some screen shots.
Any feedback would be appreciated.
Thanks,
Anson Wooten
08-01-2007 01:32 PM
Jesse O,
I noticed something interesting after my last posting.
If I open the NI-FGen soft front panel, I can correctly generated standard waveforms using my PXI-5422 instrument. However, If I open the NI supplied IVI FGen soft front panel I see the same erroneous results that I am receiving from my C++ class ( which also uses the IVI interface ).
I've double checked my IVI configuration and It appears to be good. Also, I am able to generate arbitrary waveforms via the IVI interface with my current setup, so I believe it to be in working order.
Any Ideas why I would see this behavior.
I am currently using NI-FGen version 2.4.0 and IVI compliance package 3.0 ( as reported in NI-MAX )
Thanks again,
Anson Wooten
08-01-2007 04:22 PM
Anson,
@A Wooten wrote:
Jesse O,
I noticed something interesting after my last posting.
If I open the NI-FGen soft front panel, I can correctly generated standard waveforms using my PXI-5422 instrument. However, If I open the NI supplied IVI FGen soft front panel I see the same erroneous results that I am receiving from my C++ class ( which also uses the IVI interface ).
I've double checked my IVI configuration and It appears to be good. Also, I am able to generate arbitrary waveforms via the IVI interface with my current setup, so I believe it to be in working order.
Any Ideas why I would see this behavior.
I am currently using NI-FGen version 2.4.0 and IVI compliance package 3.0 ( as reported in NI-MAX )
Thanks again,
Anson Wooten
08-01-2007 04:34 PM
Hi Wooten,
I also tested your code by modifying it to constants and was able to get it working.
I agree with Saed's comments to check driver sessions.
Also on the scope side, can you please try with edge trigger in SFP so that you will not miss the signal as in Immediate Mode (Ignore it if you are already doing this).
Attached is the code which I was able to get working. The session name for the device in my code is "5421_ivi".
08-01-2007 05:23 PM
It seems to me that since the NI IVI Soft Front Panel is demonstrating identical behavior as my code, ( and since you have both tested my code sequence and found no issues ) that something must be wrong with my configuration.
Kalyanramu : What versions of NI-FGen and the IVI Compliance Package are you using?
Sead : You've identified that you are using NI-FGen 2.5 and IVI Compliance Package 3.1.0.
I would like to try these versions but have been unable to locate them on the NI website. The newest versions I can find for download are the versions I currently have installed. Where can I download these drivers?
Thanks,
Anson
08-02-2007 05:10 PM
@A Wooten wrote:Sead : You've identified that you are using NI-FGen 2.5 and IVI Compliance Package 3.1.0.
I would like to try these versions but have been unable to locate them on the NI website. The newest versions I can find for download are the versions I currently have installed. Where can I download these drivers?
Thanks,
Anson
08-02-2007 05:42 PM
Hi Anson,
Can we contact you directly to solve this issue?
Thanks,
Kalyan
08-03-2007 11:12 AM
Attached is an NI-Spy capture of the following sequence:
Also attached is my current IVI configuration store.
Please feel free to contact me. I am assuming you have my contact information on file.
Thanks,
Anson Wooten