cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

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
Mensagem 21 de 24
1.236Exibições

@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.



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
Mensagem 22 de 24
1.216Exibições

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 triste

1.png

 

CH. PWR. GRID: (registers are different)

2.png

 

0 Kudos
Mensagem 23 de 24
1.179Exibições
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.
Mensagem 24 de 24
1.157Exibições