Measure

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure 2.0 and regular GPIB commands conflict

Hi, I'm using Measure 2.0 in Excel to grab some data from an old spectrum analyser through the GPIB port. That was working fine, until I decided to integrate more GPIB capable devices to my application. I've programmed these new devices using standard GPIB commands (ibdev, ibwrt, etc) because measure did not offer enough flexibility.
Now the funny part, is that whenever I start my application and sends a GPIB command to a new device, it screws up Measure and it can't properly send commands to the spectrum analyser anymore. Basically the spectrum analyser said it was receiving a bunch of garbage characters. I've used NI Spy to check what was going on, and that really startled me... When I sent commands through Measure using ibwrt, Measure would send the regular command, then truncate the 7 first characters of my command string and call ibwrt again, then remove 7 more characters and send the command again, etc. until the command string is empty. It looks a bit like this:

ibwrt(device#, "This is my instruments command string")
ibwrt(device#, " my instruments command string")
ibwrt(device#, "truments command string")
ibwrt(device#, "s command string")
ibwrt(device#, "nd string")
ibwrt(device#, "ng")

And then it proceeds to sending other commands if I there are more in queue.
If I send the commands using "Measurement and Automation", it works fine. I get this only when sending through Measure.
Any help ?
0 Kudos
Message 1 of 1
(6,826 Views)