ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two Operations is a Loop

Hello,

 

I need to Perform two Opreations one by one for a Particular no. of times.

 

Ex: register write operations need to perform, data is from a table of two columns and no .of rows depends on runtime only.

How shall i implement this?

Please comment on this.

 

-mfp.

0 Kudos
Message 1 of 8
(3,752 Views)

"I need to Perform two Opreations one by one for a Particular no. of times"

 

You can use sequence.

or

state machine architecture.

but I am not clear about your post so kindly please alobarate what u want?

thanks

CLAD
Labiew programmer
0 Kudos
Message 2 of 8
(3,738 Views)

Okay. 

I shall use Sequence structure for two operations to perform sequentially.

 

Each of the set of operations in the sequence required data from a table.Table contains two columns one is I/O Address and the other is Data, so that i need to write a Data to Corresponding I/O Address one by one, that means one operation is for Writing I/O Address and the other is for writing Data. The sequence has to take these I/O Address and Data from the table and perform the operation one by one. User can change the no. of sets of operation.

 

-mfp.

0 Kudos
Message 3 of 8
(3,733 Views)

For Loop.  Have the table autoindex on the tunnel of the for loop.  Then break the resulting 1-D array inside the loop using Index array to do your two writes sequentially.

Message 4 of 8
(3,726 Views)

Thank you very much for the reply.

 

Could you please share me a sample VI using the above concept.

 

-mfp.

0 Kudos
Message 5 of 8
(3,704 Views)

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 6 of 8
(3,693 Views)

Sorry, I couldnot able to crack the issue.

Anybody Please help a bit more to get it solved.

 

-mfp.

0 Kudos
Message 7 of 8
(3,663 Views)

Hi Favas,

 

do it like this:

18611i0B990E102CACAC32

Those two file functions just represent your two operations. They are sequenced by the error cluster - the preferred way to do so (no sequences needed!).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(3,656 Views)