Matlab, NI GPIB, Agilent N9010

Status
Not open for further replies.

fabienne607

Newbie level 1
Joined
Feb 23, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hi,

I am having trouble with my laptop communicating with the spectrum Analyzer using NI GPIB commands from matlab. I have examples and they don't work, I've duplicated code I've found on the internet and I always get an error when I do fopen(xxx). ans returns a -1 which i assume means it didn't work and when I execute the fopen command or try to write to it I get an error either complaining that the instrument isn't connected or too many variables.... I think the program thinks that the fopen is used to open a file. Does it matter is the code is written as a function or just a script....
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…