LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW returns different results than MAX in response to the same query string

I am sending an indentical query string to both MAX, VISAIC and LabVIEW, and am getting garbage data in LabVIEW not returned in either MAX or VISAIC. Anyone know whats going on here?
0 Kudos
Message 1 of 7
(2,635 Views)

Define 'garbage'. Is the reading incorrect, incomplete, or something else? Is the string indicator from the VISA Read set to hex display or '\' Code Display? What is the command you are sending? What type of connection do you have - serial, serial, etc?

If you could post the VI you wrote after running it, doing a Make Current Values Default, and then a save, it would help to actually see what is being returned.

0 Kudos
Message 2 of 7
(2,629 Views)

yeah, that was grossly uninformative. so I have a TCPIP connection to a spectrum Analyzer. I am querying for waveform data in int,32 format. The data block returned in MAX and VISAIC have the correct header eg. #42204 and data in the specified format . However, in LabVIEW, the data block is without the #, and the block contains int 32 data, ascii data and possibly a third data format.

hope this helps

0 Kudos
Message 3 of 7
(2,619 Views)
Did you wanna see the bd? I dont know how to post images.
0 Kudos
Message 4 of 7
(2,610 Views)
The actual VI would be better with some data as I mentioned. You can attach a VI or an image by clicking the 'Browse' button next to the attachment field right below the message body here.
 
What's the make and model of the instrument? Did you try to find a driver already written for it?
0 Kudos
Message 5 of 7
(2,603 Views)
Its an Anritsu MS2717B. I am actually writing the driver for it. Its a new instrument, just released.
So, this problem is showing up in other VIs, now that I'm testing extensively. Its the most bizarre thing ever. some fetch measurement VIs I just ran did the same thing......inaccurate results only in LabVIEW(7.1).
0 Kudos
Message 6 of 7
(2,596 Views)
Since you didn't include the results from the VISA Read, I'm not sure what else I can say. It would be nice if you created a string indicator for the VISA Read output so someone can look at the raw data. Below is the fetch function for the 2721 model. The first Scan From String has a #%1d yours is just %1d. You might also want to bump up the number of bytes to read just in case you are not emptying the buffer. It doesn't hurt anything to put some very large number there.
0 Kudos
Message 7 of 7
(2,578 Views)