Hi,
I have been trying to control our RFSG (PXI5670) which contains a PXI5610 upconverter and PXI5421 arbitrary waveform generator. I wanted to use a specific waveform and accoring to the documentation under `Programming/Reference/ni-RFSG C function reference/ni-RFSG attributes/Arb/Data transfer/NIRFSG_ATTR_DIRECT_DOWNLOAD` you will see that "
For the PXI-5670, direct download is always disabled. For all other devices, direct download is always enabled." and so therefore I tried using the WaveformFromTextFile
example which is from C:/Users/Public/Public Documents/National Instruments/CVI/samples/niRFSG/ArbitraryWaveforms/WaveformFromTextFile
and changes that attribute. However when I run the example with no modifications I get the following error:
Now I have also tried using your ni/grpc-device server located at github (https://github.com/ni/grpc-device) to change this attribute using python however I get the same/very similar issue:
errorcode:-1074135024
Exception: Error: IVI: Invalid value for parameter or property.
For that I am using the example "getting-started-single-tone-generation" from your nirfsg examples and have added the following to accomplish this:
raise_if_error(
client.SetAttributeViInt32(
nirfsg_types.SetAttributeViInt32Request(
vi = vi,
channel_name="",
attribute_id=nirfsg_types.NIRFSG_ATTRIBUTE_DIRECT_DOWNLOAD,,
value=nirfsg_types.NIRFSG_INT32_ENABLE_VALUES_ENABLE
)
)
)
I have also tried using "value_raw=1" as I see that is what NIRFSG_INT32_ENABLE_VALUES_ENABLE enumerates to as well as what the CVI/labwindows example is using to try and set the value. I see the type is ViInt32 however could that not be the case? There is no documentation saying otherwise.
I can provide more information if required. I have posted ni/grpc-device github issues page but because the CVI/labwindows example also doesn't work it leads me to believe this is an issue that is much deeper.
Thank you for your help.