07-12-2013 07:26 AM
Hello everyone
In my program I used two "for loops" which include visa write and read for a RS32 port. it is not possible to close a devise with visa close as the out put is changed to 2D array!!! would you please help me with this error
07-12-2013 07:33 AM
Right-click on the output tunnels to turn off the autoindexing. If using LabVIEW 2012, then it is "Last Value" for the tunnel type.
07-12-2013 07:43 AM
Thanks for reply,
It works for "for loop" but what about "event structure loop" still is error for that.
07-12-2013 07:46 AM - edited 07-12-2013 08:00 AM
Hi sam,
disable indexing of "VISA resource" wire output tunnels in every loop in every (event) case...
Btw.:
- It's no good idea to have events running for long/undetermined periods of time. Really!
- It's no good idea to hide (or even delete?) labels of controls/terminals...
- It's no good idea to start coding with a lot of local variables. They tend to lead to race conditions...
- It's a good idea to clean up a block diagram. It is easier to read then...
07-12-2013 08:03 AM
@sam009 wrote:
Thanks for reply,
It works for "for loop" but what about "event structure loop" still is error for that.
Right-click on the output tunnel and uncheck "Use Default if Unwired". You will now be forced to wire the VISA Resource through each case.
07-12-2013 08:11 AM
Dear Gerdw
thanks for reply,
-I put 1000 ms for event stuctre time out if you mean that.
-the labels were hiden for better reading. anyway the progam with full lable is attached.
-just 3 local variables are used do you think it makes a problem.
and sorry I didn't understand what do you mean by disable indexing.
thanks
sam
07-12-2013 08:16 AM
I unchecked "Use Default if Unwired" and error is this:
"The type of the source is 1-D array of
VISA session of class.
The type of the sink is VISA session of class."
07-12-2013 08:45 AM
@sam009 wrote:
and sorry I didn't understand what do you mean by disable indexing.
You need to do the same thing to the tunnel for the VISA wire on the innermost For Loop that you did for the For Loop that is a couple steps out.
As Crossrulz said in his post "Right-click on the output tunnels to turn off the autoindexing. If using LabVIEW 2012, then it is "Last Value" for the tunnel type."
07-12-2013 08:52 AM
Thank both of you,
I did and problem solved. thanks