LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In NI Spy why is there not a buffer tab for viReadAsync commands?

I am debugging a program and want to use NI Spy to capture all the calls and report the data buffers for both Read and Write. In previous versions of Labview viReadAsync calls had a data buffer tab. Now they do not. Why? Is this a bug?
0 Kudos
Message 1 of 5
(3,127 Views)

Im not sure I understand the question. There is a read buffer parameter sepcified for the function. I'm assuming you're talking about LabWindows ( the ANSI C compiler) and not LabVIEW ( the graphical programming language ). Check out the documentation for the viReadAsync() function for more information. Here is a link to the VISA reference manual.Check out https://www.ni.com/docs/en-US/bundle/ni-visa-api-ref/page/ni-visa-api-ref/vireadasync.html 

Bilal Durrani
NI

Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,127 Views)
Hi,

Thanks for the response. I am using Labview 6.0.2 and do understand the function and that it has a read buffer. Using the function in Labview returns the buffer data to the vi. This is not a problem.

The problem is in NI Spy. When I go to view the properties for each call there are only three tabs to view the call detail for viReadAsync. I expected a fourth tab that has the return buffer data. Previous version of Labview using the similar VISA function had a buffer tab. The function from previous version is displayed in NI Spy as viRead instead of viReadAsync but I selected it from the same VISA communication palette. I assume it has been updated because the ICON also now has a clock in the upper right corner. So my question about a bug was
with reference to NI Spy dropping the buffer data tab for this function?

Thanks
Roger
0 Kudos
Message 3 of 5
(3,127 Views)
I assume that you�re accessing NI-SPY from the Measurement and Automation Explorer (MAX). What version of MAX are you using? Version 3.0.2.3005 displays the commands such as �ibrda�, or �ibrwrta�. If you double-click on these, the four tabbed dialog box appears with the tabs labeled �General�, �Input�, �Output�, and �Buffer�. I assume these are the four tabs that you are writing about. It may also help if you attach your code so that other users can help with this problem.

Russell G.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 5
(3,127 Views)
Hi Russell,

The version of MAX is 2.2.0.3010. If you view all the threads to my original question you will see a comment to an answer describing what I see in NI SPY. So when I click on "viReadAsync" to show the properties, I only see three tabs. The buffer tab is missing. When the vi includes the older routine "viRead" is shown in NI-Spy instead of "viReadAsync" and with that routine when I double click I see all four tabs.

I don't think the vi will help but I have attached a simple version a larger vi application.

Thanks
Roger
0 Kudos
Message 5 of 5
(3,127 Views)