From: Frida on
Hi,
 
I am working with an old program that I have to cinfigure in some applications. The pont is that the program should read data from an instrument, a HP 34970A. I thought that I can use the "old" VI, that reads from the serial port of the computer, but I cant seem to get it work. I attach the Vi, and if someone have any idea of what is wrong, please tell me!
 
( I don't understand what the "DATA:POIN?" and the "DATA:REM?" means! Any ideas?)
 
Thanks!


HP34970 Läs.vi:
http://forums.ni.com/attachments/ni/170/179099/1/HP34970 Läs.vi
From: nyc on
Frida wrote:

Hi,
 
I am working with an old program that I have to cinfigure in some applications. The pont is that the program should read data from an instrument, a HP 34970A. I thought that I can use the "old" VI, that reads from the serial port of the computer, but I cant seem to get it work. I attach the Vi, and if someone have any idea of what is wrong, please tell me!
 
( I don't understand what the "DATA: POIN?" and the "DATA:REM?" means! Any ideas?)
 
Thanks!


Those statements are queries to the HP 34970A.
Have you downloaded the manual for this instrument?  If not, it would be a good idea to do so.Message Edited by nyc on 04-12-2006 09:01 AM
From: JoeLabView on
Hi Frida,
Here is what the User Manual says about the two commands:
DATA: POINTS?           command to determine the total number of readings stored in memeory (all channels) from the most recent scan.
DATA: REM?  or DATA: REMOVE? number
The command reads and clears the specified number of readings from memory.  This allows you to continue a scan without losing data stored in memory.  The specified number of readings are cleared from memory, starting with the oldest reading.
If you do not have the user manual, you can download a pdf copy at this link:
<a href="http://www.home.agilent.com/upload/cmc_upload/All/34970-90003_users.pdf" target="_blank">http://www.home.agilent.com/upload/cmc_upload/All/34970-90003_users.pdf</a>
Unfortunately, I could not open you vi because I only have LV7.1, and you are using LV8.&nbsp; However, the old vi's should still work.&nbsp; Did you try to get the example working?&nbsp; The one that came with the drivers?
Since you are using the serial port, is the port configured to communicate with the instrument?&nbsp; port number, baud rate, etc..
JLV
&nbsp;Message Edited by JoeLabView on 04-12-2006 09:18 AM
From: Frida on
Hi,
I have downloaded the manual for the instrument and also installed the drivers. As you said, there were some examples included. But I can't even get the examples to work.&nbsp;Some if them&nbsp;work fine in Labview, no error messages, but I get error messages on the instrument display (among those, "Syntax error"). And in some of them I get an error message in Labview (-1073807339) at the VISA Read or VISA Write. I have tried all the ports in the drop down list, but none of them seems to work better than others. I have set the baudrate to 9600 which has worked fine before with this instrument (as i said, I update an old program and I know the rate was 9600 in the old program).
Does anyone have any ideas, is there something wrong with the instrument, or is it my limited knowledge in labview that limits my performance here?
I am glad to get all the help i can get!
From: JoeLabView on
Hi Frida,
Below are tid-bits borrowed from HP on equipment communication:
Below is open instrument for serial VISA:
&lt;img src="/attachments/ni/170/179311/2/openinstrument.jpg"&gt; &lt;/img&gt;
Here is what the quiery command typically looks like in Labview.&nbsp;
&nbsp;Message Edited by JoeLabView on 04-13-2006 08:35 AM


quiery.JPG:
http://forums.ni.com/attachments/ni/170/179311/1/quiery.JPG


openinstrument.JPG:
http://forums.ni.com/attachments/ni/170/179311/2/openinstrument.JPG


set serial VISA attributes.JPG:
http://forums.ni.com/attachments/ni/170/179311/3/set serial VISA attributes.JPG