05-15-2014 10:00 AM
This is the weird thing
i open the vi for the first time and run it and it will put out the error :
Error -1073807346 occurred at VISA Open in Prompt for com port.vi
Possible reason(s):
VISA: (Hex 0xBFFF000E) The given session or object reference is invalid.
i run the vi for the second time and the error goes away.. and everything works...
i dont know whats wrong, have you had this problem also?
05-15-2014 10:30 AM
You know that almost threw me untill I re-read the vi name!
Dude, that's not how you write a "Prompt User" routine! What is happening is that you read the VISA In Terminal run that value through the for loop (At warp speed burning a cpu core) while the user fiddles with the VISA in terminal. BUT, nothing changes the value on the wire! so you pass the "Old" value to the VISA Open.
I've been meaning to add Prompt(VISA).vi to my reuse for a while anyhow. Thanks for the excuse.
05-15-2014 10:38 AM
thanks jajja
this is a rookie mistake.. i dont know what happened to me, i solve some other issues on the program i was using this, and for some reason i never paid attention to that and thought it was something else : this is embarrasing ..
thaknk you
05-15-2014 09:50 PM
@buton wrote:
thanks jajja
this is a rookie mistake.. i dont know what happened to me, i solve some other issues on the program i was using this, and for some reason i never paid attention to that and thought it was something else :
this is embarrasing ..
thaknk you
I did not mean to embarass you!
Yes, its a rookie mistake- I made a rookie mistake last [<Year, decade, week, day>]
pick one-
You posted, you saw, you wired ( vini, vidi, VI!)