LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple RFSG instantiations?

I'm trying to run a simple VI that generates signals on two RFSG units (sine wave and a square wave) in a PXI chassis.  I've done this before without any problem.
 
I've noticed before that for some reason LabView will create multiple instantiations of the RFSG (i.e. the RFSG is named in MAX "RFSG1" so it will create "RFSG1 (1)...") and now all the sudden I am unable to run my VI since the 2nd RFSG continues to randomly link to "RFSG2 (15)", etc. when it finishes the Initiate VI and not what I input on the front panel, "RFSG2."
 
Any suggestions or help for removing these ghost instantiations?  Thanks.
0 Kudos
Message 1 of 2
(2,373 Views)
Hi Snuzzbff,

This problem occurs when you open a session reference with a device and don't close the reference to the instrument handle at the end of your application.  It will open additional instances of that resource.  To correct this you need to first make sure that you are calling niRFSG close.vi at the end of your application to close that reference.  This is demonstrated in our examples that can be found in the example finder (Help » Find Examples » Hardware Input and Output » NI-RFSG.  Since you already have created many references, you will need to correct the situation by closing these references.  All you need to do is place a niRFSG close.vi down on the block diagram in a blank vi and create a constant on the instrument handle pin.  Select the instances (in the constant) you want closed such as "RFSG2 (15)" and run the application and it will close that reference.  You can do this for all instances of the reference handle.  Please let me know if this doesn't correct the situation.

I hope this helps,
Paul C.
0 Kudos
Message 2 of 2
(2,356 Views)