>
> Has anyone tried using the SCPI on an OOPic device. I have my
hardware
> set up to send and receive but am unsure about the formating of the
> data stream. The default it 9600,n,8,1 but the commands are listed as
> an ascII string something like CONFigure:VOLTage:DC 0.5 <CR><LF>.
(The
> Caps are what is supposed to be sent). This is from a VB example.
>
> As the meter is out of town I cannot check any code till I get it
back
> but would it be as simple as sending out the
> string "CONF:VOLT:DC0.5"&H0D&H0A
>
Sure, the OOPic can send the string but with somewhat different
syntax. Probably something like:
Dim s as new oSerialPort
sub main()
s.baud = cv9600
s.operate = cvOn
s.value = "CONF:VOLT:DC0.5"
s.value = 13
s.value = 10
end sub
You might be able to concatenate the CR and LF to the first string but
I haven't tried it in a while.
Where you may have a problem is the fact that the oSerialPort only has
a 4 byte buffer. It is possible the instrument will send the data
faster than the OOPic can process it.
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment