06-12-2013 08:52 AM
Hi,
I drive a Textronix AFG320 with its IVI-driver and Labview. But in this IVI and IVI-Class Driver, there is not Duty Cycle fonction. Why ?
have you got a solution please ?
Thanks,
Adrien
06-13-2013 03:22 PM
This driver complies with the IviFgen specification and implements the Duty Cycle High attribute. You can access this attribute in LabVIEW using a Property Node (see the attachment).
06-14-2013 02:08 AM
Great 🙂 Thant you gagi1.
06-14-2013 04:21 AM
I'm sorry but I don't understand the functioning of property node.
I did that: see attachment.
Yet I have an error: Primary Error: (Hex 0xBFFA0044) Channel or repeated capability name required.
Elaboration: Attribute: TKAFG3X0_ATTR_FUNC_WAVEFORM.
Regard,
Adrien
06-14-2013 08:39 AM
The attachment above is just to show how to access this particular attribute using a property node in LabVIEW. You should use the Getting Started example that ships with the driver and modify the Generate Standard Wfm example to add a property node if you want to access the Duty Cycle attribute. In the example, the channel control is not wired but Channel 1 is used by default.
06-18-2013 03:20 AM
Hi, I don't understand the Getting Started example is the first attachment ?
I don't see where I must put the property node with duty cycle.
Must I put the duty cycle node into the VI standard waveform ? : second attachment.
Moreover, the Duty Cycle node has just one input or one output.
Have you got a exemple please ?
I don't understand why this function is not by default...
Thank you
06-18-2013 09:59 AM
In my previous post, I was referring to a getting started example that ships with the specific driver (tkafg3x0). If you want to use a class driver example (your first attachment), you certainly can. You can modify the example as shown in the attachment below. You have to select a square waveform on the front panel and also specify your duty cycle on the block diagram.
06-20-2013 02:46 AM
when I do like your exemple (with IVI-Class), I have a bug with the message in first attachment.
With IVI-tkafg3x0 (second attachment) I have just an error message.
regard,
Adrien
06-21-2013 02:34 PM - edited 06-21-2013 03:00 PM
Hello Adrien,
I do not know what values were on your front panel, but I was able to run the following snipet of code without any problems. You can download the snippet onto your machine (right click the snippet at the bottom of this post » Save Image As...), then you may drag and drop the file "NoErrorSimulated.png" from where you saved the file on your machine into a block diagram in LabVIEW 2011. Alternatively, you could recreate the code using the specific driver. I simulated the device within MAX and used the following settings on my front panel.
My front panel settings:
My MAX configuration:
Snippet:
Would you mind trying this on your system and letting me know if you experience the same error?
You might also want to try using the values on my front panel (but without simulating the instrument). This would mean changing the resource name to actually use the hardware for the AFG320.
06-24-2013 07:04 AM
Hi,
I did your exemple in simulation mode and without simulation mode.
In simulation mode, I don't have error but I have it with a real hardware connected.
see attachments 1 and 2 for MAX configuration and 3 and 4 for Labview program.
error is: Primary Error: (Hex 0xBFFA0044) Channel or repeated capability name required.
Elaboration: Attribute: TKAFG3X0_ATTR_FUNC_DUTY_CYCLE_HIGH
otherwise, all other functions work.
Thank you,
Adrien