04-06-2011 08:43 AM
The following 2 errors keep occuring everytime i try to run the code to control a stepper motor through serial communication.
I have created many sub VIs for the various movements of the motor and am calling all the sub VIs in one higher level VI.
Please somebody help me out with this.. its part of my project.
Thanx.
Error -1073807313 occurred at VISA Write in X.vi->inc1.vi
Possible reason(s):
VISA: (Hex 0xBFFF002F) You must be enabled for events of the specified type in order to receive them.
Error -1073807346 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->YN.vi->inc.vi
Possible reason(s):
VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.
04-06-2011 12:28 PM
Did you try a search?
The first one is pretty explicit. You're trying to use events, but have not registered them. Have you looked at the shipping examples on how to use VISA events? Open the Example Finder (Help -> Find Examples) and search for "serial". Open the example called "Detect Break Event".
The second is also pretty explicit. It indicates you are not providing a valid VISA reference. Have you verified that you are correctly passing the VISA reference to the subVIs?
04-07-2011 06:08 AM - edited 04-07-2011 06:13 AM
Well thanx...
First of all, I am new to instrument control via serial comm.
So I dont really have any idea as to how to register beak events in the code.
If you could help me with that..that ll be great..
Secondly, I am passing the VISA reference inside each of the subVIs. Is that correct or should I pass it through the main higher level VI?
And yeah I did try a search.. but couldnt get anything exacting to my situation and the amount of detail that I was looking for.
Thanx...
04-07-2011 08:27 AM
Please post your code. Be sure to include the subVIs.