LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CMU 200 error

I am trying to run one of the Driver VIs of the CMU200 in LABview. But everytime I run it, it gives an error "The given session or object reference is invalid." The measurement and Automation Explorer shows the CMU200 and I am also able to comminucate with the device, by right clicking on it. Any suggestions?
0 Kudos
Message 1 of 9
(4,294 Views)
If anybody has worked or working with drivers of CMU 200 in LABview, let me know. I am finding a hard time in dealing with the drivers.
0 Kudos
Message 2 of 9
(4,280 Views)
Did you pass in the VISA session (to the driver VI) correctly?
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 9
(4,274 Views)
I am using RSCMU_Init_GSM_sig.vi to initialize the operation. One of the connector of the VI is "BASE VISA Session". I am giving address here as GPIB0::20::0::INSTR (which is of CMU 200 ans is correct). Still cant figure out?
0 Kudos
Message 4 of 9
(4,262 Views)
The device descriptor you used "GPIB0::20::0::INSTR" seems to be the default value used in the driver vis, is the primary address of the instrument really 20 and secondary address 0? If you do not need to use secondary address, you don't have to use any value for this part. Please check the dip-switches on other instruments to make sure not another device is using the same address. You can also try to assign a different address to the device.

Can you communicate to the instrument just using NI-VISA function? Can you do a query in MAX? Both methods are simple ways to establish communications with your instrument.
0 Kudos
Message 5 of 9
(4,256 Views)
yeah I am able to Query the device by MAX. I checked the address, it is correct. Also, whenever I restart the LABview and open the VI that initiates the device, the device do go in remote mode but no further communication happens and the VI keep giving the same error.
0 Kudos
Message 6 of 9
(4,251 Views)
Also I am attaching the NI spy snapshot.
0 Kudos
Message 7 of 9
(4,250 Views)
Make sure that when you open the device that the ID Query input is set to true. The R&S CMU driver (dll) caches the firmware version of the CMU, if a command does not match the minimum firmware revision, you will get an error. If you do not query the instrument when you open it, the firmware is treated as 0 and all subsequent commands will error with an insufficient firmware revision error message.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
Message 8 of 9
(4,244 Views)
Looks like you are setting certain Attribute Event to False, that event could be something like ID Query. You need to change it to true to initialize the devices.
0 Kudos
Message 9 of 9
(4,227 Views)