LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807346 will get away when i run VI for second time

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?

CLAD, CTD
Download All
0 Kudos
Message 1 of 4
(2,732 Views)

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.

Prompt(VISA).png


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(2,724 Views)

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   :Smiley Sad this is embarrasing ..

 

thaknk you

CLAD, CTD
0 Kudos
Message 3 of 4
(2,719 Views)

@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   :Smiley Sad 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!)


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(2,695 Views)