LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

broken wire


@cantata2014 wrote:

I just want to close the VISA session. and in the for loop there is a channel sweep

Untitled.png


Disable indexing at the output tunnels or use shift registers. If this is not clear to you, start with some basic LabVIEW tutorials.

 

You are also looping 200 times with a wait of 5000 seconds between iteration.  Your loop will take over 11 days to complete. There has to be a better way!

0 Kudos
Message 21 of 24
(979 Views)

@cantata2014 wrote:

I just want to close the VISA session. and in the for loop there is a channel sweep


If using a FOR loop, use shift registers.

 

I would change your code to use a state machine instead of the FOR loop.  As Altenbach said, it will take a VERY long time to run that FOR loop.  I'm sure you would like to be able to abort in the middle if something doesn't look right.  So use a state machine where you have a wait case that uses an Event Structure to look for either a timeout (the rate you want to sweep at) or a cancel button's value change.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 22 of 24
(959 Views)

Hello,

I tried to use the data flow, but it still doesn't work... the problem is I don't know where is the problemSmiley Sad

1.png

 

CH. PWR. GRID: (registers are different)

2.png

 

0 Kudos
Message 23 of 24
(922 Views)
You now need to double check of you are correctly writing the protocol. I don't see where you are calculating the crc and appending that.

Do you have software from the vendor? You could use a program such as portmon to capture the traffic and compare it to what you are sending.
Message 24 of 24
(900 Views)