Assuming you are using direct io object, you just have to send some commands and read back the data.
for example your comand is RED?
you have to make a -write "RED?"- in directio and then a - read a- to get your data as "a"....
Does it help you ?
_____
Von: Stig Carlsson [mailto:stig_carlsson@bredband.net]
Gesendet: Samstag, 8. September 2007 07:23
An: VRF
Betreff: [vrf] Spoll Norma
I´m trying to program a Norma D6000 power analyzer. Sending the setup and measurement commands works, but I can not read the measured data.
In the manual is a Basic example:
350 FOR N=1 TO 9
380 CALL SPOLL(ADDRESS%,POLL%,STATUS %)
390
400 T$="UNL LISTEN 5 GET"
410 CALL TRANSMIT(T$,STATUS%)
412 S$="RED?"
414 CALL SEND(ADDRESS%,S$,STATUS%)
420 CALL SPOLL(ADDRESS%,POLL%,STATUS%)
430
440 IF (POLL% AND 16) = 0 THEN 420
450 PRINT "STATUS:";POLL%
460 R$=SPACE$72
470
480 CALL ENTER(R$,LENGTH%,ADDRESS%,STATUS%)
490
500 PRINT R$
510 NEXT N
How do I make VEE-code from this?
Best regards
Stig Carlsson
---
You are currently subscribed to vrf as: Detlef.Baranski@pilkington.de
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Der Inhalt dieser E-Mail (inkl. aller Anlagen) ist vertraulich und ausschließlich für den Adressaten bestimmt. Jede Art der Verbreitung, Nutzung oder Vervielfältigung ist untersagt. Sollten Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen die E-Mail.
Unternehmensangaben der Gesellschaften mit Sitz in Deutschland:
Pilkington Holding GmbH, Haydnstraße 19, 45884 Gelsenkirchen
Sitz: Gelsenkirchen, Amtsgericht Gelsenkirchen HRB 8997
Geschäftsführung: Jochen Settelmayer (Vorsitz), Dr. Clemens Miller, Thomas Kretschmann, Robert Hales
Vorsitzender des Aufsichtsrates: Dr. Axel Wiesener
Pilkington Deutschland AG, Haydnstraße 19, 45884 Gelsenkirchen
Sitz: Gelsenkirchen, Amtsgericht Gelsenkirchen HRB 2707
Vorstand: Dr. Clemens Miller, Jochen Settelmayer
Vorsitzender des Aufsichtsrates: Dr. Axel Wiesener
Pilkington Automotive Deutschland GmbH, Otto-Seeling-Straße 7, 58455 Witten
Sitz: Witten, Amtsgericht Bochum HRB 8443
Geschäftsführung: Thomas Kretschmann
Vorsitzender des Aufsichtsrates: Jochen Settelmayer
Bauglasindustrie GmbH, Hüttenstraße 33, 66839 Schmelz / Saar
Sitz: Schmelz / Saar, Amtsgericht Saarbrücken HRB 52020
Geschäftsführung: Manfred Ebbers
---
You are currently subscribed to vrf as: hua_jing@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
for example your comand is RED?
you have to make a -write "RED?"- in directio and then a - read a- to get your data as "a"....
Does it help you ?
_____
Von: Stig Carlsson [mailto:stig_carlsson@bredband.net]
Gesendet: Samstag, 8. September 2007 07:23
An: VRF
Betreff: [vrf] Spoll Norma
I´m trying to program a Norma D6000 power analyzer. Sending the setup and measurement commands works, but I can not read the measured data.
In the manual is a Basic example:
350 FOR N=1 TO 9
380 CALL SPOLL(ADDRESS%,POLL%,STATUS %)
390
400 T$="UNL LISTEN 5 GET"
410 CALL TRANSMIT(T$,STATUS%)
412 S$="RED?"
414 CALL SEND(ADDRESS%,S$,STATUS%)
420 CALL SPOLL(ADDRESS%,POLL%,STATUS%)
430
440 IF (POLL% AND 16) = 0 THEN 420
450 PRINT "STATUS:";POLL%
460 R$=SPACE$72
470
480 CALL ENTER(R$,LENGTH%,ADDRESS%,STATUS%)
490
500 PRINT R$
510 NEXT N
How do I make VEE-code from this?
Best regards
Stig Carlsson
---
You are currently subscribed to vrf as: Detlef.Baranski@pilkington.de
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Der Inhalt dieser E-Mail (inkl. aller Anlagen) ist vertraulich und ausschließlich für den Adressaten bestimmt. Jede Art der Verbreitung, Nutzung oder Vervielfältigung ist untersagt. Sollten Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen die E-Mail.
Unternehmensangaben der Gesellschaften mit Sitz in Deutschland:
Pilkington Holding GmbH, Haydnstraße 19, 45884 Gelsenkirchen
Sitz: Gelsenkirchen, Amtsgericht Gelsenkirchen HRB 8997
Geschäftsführung: Jochen Settelmayer (Vorsitz), Dr. Clemens Miller, Thomas Kretschmann, Robert Hales
Vorsitzender des Aufsichtsrates: Dr. Axel Wiesener
Pilkington Deutschland AG, Haydnstraße 19, 45884 Gelsenkirchen
Sitz: Gelsenkirchen, Amtsgericht Gelsenkirchen HRB 2707
Vorstand: Dr. Clemens Miller, Jochen Settelmayer
Vorsitzender des Aufsichtsrates: Dr. Axel Wiesener
Pilkington Automotive Deutschland GmbH, Otto-Seeling-Straße 7, 58455 Witten
Sitz: Witten, Amtsgericht Bochum HRB 8443
Geschäftsführung: Thomas Kretschmann
Vorsitzender des Aufsichtsrates: Jochen Settelmayer
Bauglasindustrie GmbH, Hüttenstraße 33, 66839 Schmelz / Saar
Sitz: Schmelz / Saar, Amtsgericht Saarbrücken HRB 52020
Geschäftsführung: Manfred Ebbers
---
You are currently subscribed to vrf as: hua_jing@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".