Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

duty cycle IVI-driver

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

0 Kudos
Message 1 of 18
(4,766 Views)

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).

0 Kudos
Message 2 of 18
(4,736 Views)

Great 🙂 Thant you gagi1.

0 Kudos
Message 3 of 18
(4,725 Views)

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

0 Kudos
Message 4 of 18
(4,720 Views)

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.

0 Kudos
Message 5 of 18
(4,711 Views)

Hi, I don't understand Smiley Embarassed  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

Download All
0 Kudos
Message 6 of 18
(4,690 Views)

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. 

0 Kudos
Message 7 of 18
(4,666 Views)

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. Smiley Frustrated

 

regard,

Adrien

Download All
0 Kudos
Message 8 of 18
(4,642 Views)

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:

 

FrontPanelSimulated.png

 

 

My MAX configuration:

 

MAX1.png

MAX2.png

 

Snippet:

 

NoErrorSimulated.png

 

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.  

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments
0 Kudos
Message 9 of 18
(4,610 Views)

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

 

 

Download All
0 Kudos
Message 10 of 18
(4,578 Views)