Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: (Hex 0xBFFF001D) error

Did you even look around the vendor's site that you linked? After clicking on their Service link, it took me all of two minutes to find the manual.
0 Kudos
Message 11 of 18
(3,815 Views)

 

More specifically, in MAX, how can I query its corrent position? For instance, I entered the following input ( I am assuming that we are having same manual)

 

"com1:9600,n,8,1,d0"

 

followed by 

 

"U";CHAR$(67)

 

to get the current position, but I still get the same error as before. 

 

I'd really appreciate if you could make some specific suggestions I can try in MAX in terms of scripts.

 

Thanks

 

 

 

0 Kudos
Message 12 of 18
(3,810 Views)

As the manual says, the example is for Basic. You don't send the com port settings and you don't send CHR$ anything in MAX. Just send the ASCII character. You might want to download an ASCII lookup table. For example, try 'U@' (without the ') followed by a \r (carriage return) and then a read.

0 Kudos
Message 13 of 18
(3,794 Views)

I tried:

 

U@\r

 

and it's still giving me the same timeout error. Is there something else I can try?

 

 

0 Kudos
Message 14 of 18
(3,772 Views)
Contact the vendor? Perhaps they have a utility program or some other suggestions.
0 Kudos
Message 15 of 18
(3,767 Views)

Is there a standard way to convert the codes written in GWBASIC to something executable in Max (or Labview/matlab)?

 

I think I am getting some response from my device, but I am not 100% sure whether or not I am sending correct signals.

 

For example, in BASIC, I have (from the manual)

 

PRINT#1,"U";CHR$(0);"1000"

PRINT#1,"U";CHR$(80)

 

Bacially, the first one is to 'write' x-position (0) to be '1000' and the second line is to 'read' to start (80)

 

In translating the codes to be used in MAX, from the way you were suggesting before, I can write,

 

UNUL1000\r

UP\r

 

where NUL is the ASCII symbol for 0 and P is the ASCII symbol for 80. Note that each command is followed by \r. Is this how you would translate the BASIC code in general? Or is there a more specific way to make the translation. 

 

Here are some additional questions I have:

 

1. What's the difference between \r and CR (carriage symbol from the ASCII table)?

2. Is there something I need to insert between 'NUL' and '1000' in the first line? What happes if the number '1000' is preceeded by an ASCII symbol that is a number (like 48 or 49)? That would make codes quite confusing... 

 

This is something new to me, so any help would be much appreciated. 

 

Thanks

 

 

 

 

0 Kudos
Message 16 of 18
(3,760 Views)

I got the same problem with you.

 

So did you solve it?

0 Kudos
Message 17 of 18
(3,636 Views)
You don't have the same problem. Please keep to your original thread.
0 Kudos
Message 18 of 18
(3,629 Views)