08-03-2011 11:26 AM
I've got a VI which is talking to a VISA equipment. It sends frequency setting, through one sub-VI, the next sub-VI is power setting, and the last VI turns the RF power on. Through this routine, it is error free until it enters the RF Power On sub-VI. I've traced the problem to the actual input of this sub-VI. Again, there is no error feeding into this sub-VI, but it thinks there is for some reason. What could be causing this?
08-03-2011 11:36 AM
If I'm reading you right this makes no sense. Are you sure RF Power-On VI is not creating the error? What IS the error???
08-03-2011 11:38 AM
Post your code so we can look at what you are doing.
08-03-2011 11:40 AM
Is the error input actually not wired, and been set to an Error and accidentally set to Default that way?
08-03-2011 11:50 AM
Yes, I know it makes no sense. That's why I turned here.
The error listed comes across as code -1074000000, -113, "Undefined header +0, "no error"
08-03-2011 11:52 AM
Posting my code, but I hope I'm doing this right. Might need the actual project... at any rate, you should know it's not my sub-VI, but one I got from Agilent for a N5183A signal generator.
08-03-2011 11:53 AM
The error in is wired in... and it doesn't appear to be a default value.
08-03-2011 12:03 PM
Just about everything is missing from your VI (sub-vi's), or I don't have the add-on.
08-03-2011 12:40 PM
As the description says, it's an error being generated by the instrument (-113). One or more of the functions does an instrument error query.
I would suggest placing all of the functions for both instruments in a simple linear chain. The GPIB bus does not support parallel operations like you have programmed.
08-03-2011 12:47 PM
Just to be safe, I would wire an error cluster control or constant into the "Initialize" vi. (assuming that you aren't clearing the error inside the vi). This probably won't help, but it is good practice to be sure you start out with no errors.
Do you have the error wired into any shift registers in the sub-vis? If it isn't initialized properly, this could cause a problem.