LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sending new values for each repetition of a for loop

I tried to send different values for the each iteration of the for loop, but I couldn’t do it. Can anyone help me with this please? I have attached the full VI and the part VI to have a look.

Thanks

Regards

Mayuren

Download All
0 Kudos
Message 1 of 5
(3,338 Views)
You are sending a different string with each iteration of the for loop. The first iteration sends 'MARK1  5.000000GHZ;OUTPMARK;', the second sends 'MARK1  6.000000GHZ;OUTPMARK;', etc. Without an instrument, I have no way to tell whether the GPIB Read is actually doing anything, though.
Message 2 of 5
(3,334 Views)
Could you post image of block diagram. I have verion 8.5.
0 Kudos
Message 3 of 5
(3,314 Views)

Hi Mayuren,

                    What is it you are trying to do? I have opened the VI's and am unable to picture the application.

 

 

Regards

Jordan Power
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,247 Views)

Talk about race conditions! You code is highly flawed, because (among many other things), there is no data dependency between "GPIB write" and "GPIB read".

 

This means they can execute in any order and chances are that read occurs at the same time, or before, the write operation, messing up everything. You need to enforce execution order, e.g. by using the error cluster. LabVIEW does not execute left-to-right!

0 Kudos
Message 5 of 5
(3,232 Views)