Hi
we have created waveform using analog waveform editor . We are tring to generate this wave form using PXI6711 in CVI . The Code used for generating is as follows
niHWS_OpenFile ("D:\USB Project\pace500.hws", niHWS_Val_ReadOnly,
&fileHandle);
niHWS_GetWfmReference (fileHandle, "NULL", "NULL", &wfmReference );
niHWS_ReadAnalogI16 (wfmReference, 10000, samples, wave1);
//niHWS_WriteAnalogI16 (wfmReference , 1000, samples);
AO_Configure (1, chanel, 0, 0, 10.0, 0);
memcpy (wave_two, samples, sizeof(samples));
memcpy (wave_two + 50, samples, sizeof(samples));
WFM_Scale (device, 0, 1000, 1.0, wave_two, wave_bin_two);
WFM_Load (device, 1, chan,wave_bin_two, 1000, 0, 0);
WFM_Group_Control (device, 1
, 1);
In niHWS_OpenFile we need to define the file path accordingly path is defind but it is not reffering the file and throughing any error . I have tried giving some arbitrory file which is not exit still it is not throughing error . Would like know is there definit format define the file name .Pl help
Apriciate your help
Regards,
Sharanu