From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-30-2014 11:43 PM
hai friends,
i am a beginer in the labview, i need a suggestion HOW TO GET A VALUE OUT FROM A FOR LOOP during the operation(runtime).
what VI should perform:
1. As shown in the VI the module one generates an array which contains the number of channels selected (booleans enabled).
2. the module 2 & 3 have some data put in the arrays which has to be sent accordingly. [ module 2 is for differant tests & module 3 differant freq values ]
3. During the operation for each channel(i.e., selected from module 1) it should select one test and accordingly it should select the frequencies.
In the below attached vi the operation is being done, but the value that has to be sent is inside the for loop and i am unable to use that value during the operation.
element , element 2 and element 3 are the variables from which the data should be taken.
i have tried using with local variables, property nodes and shift registers. but the result is negative.
here the final array is the data that i have to send through serial port.
Please suggest me a appropiate solution.
thanks in advance
12-31-2014 12:04 AM
Your code show a complete lack of understanding of LabVIEW dataflow and I would recommend to start with some tutorials and look at the shipping examples. ...then design a proper state machine.
Some of the problems:
What is the program supposed to do?
12-31-2014 12:37 AM
yes. i'm using it in continuous run mode.
program flow has to be as following:
channel selection(select the channelsusing booleans) ==>> then for each channel it has to perform each test(module 2 means send 17,33,49,65,81) ==>> then for each test it has to send 1-11 values.
if channel 1 & 2 are selected then:
for channel 1
1 17 1
1 17 2
.
.
.
.
.
1 17 11
1 33 1
1 33 2
.
.
.
1 33 11
1 49 1
.
.
.
1 49 11
like wise it has to send the data serially to controller for each channel all tests and 1-11 values.
i hope you have got some idea about what i am saying.
thanks
12-31-2014 06:09 AM
You need to go back and learn LabVIEW before you begin tackling problems like this.
12-31-2014 08:30 AM
Go read this, especially the links at the end which point to tutorials on LabVIEW. It is nice to have a "reasonable problem" in mind when starting to learn a programming language, but you really do need to start with the basics. In the case of LabVIEW, that means the concept of Data Flow ...
Bob Schor
12-31-2014 08:34 AM
Oops, I screwed up the link. Here's another try -- just in case I blow it again, it is Hooovahh's Unofficial Guide to Forum Etiquette, which includes a set of links to (free) training material.
BS
12-31-2014 08:36 AM
@Bob_Schor wrote:
Oops, I screwed up the link. Here's another try -- just in case I blow it again, it is Hooovahh's Unofficial Guide to Forum Etiquette, which includes a set of links to (free) training material.
Here's the more controlled document over in the NI Communities: https://decibel.ni.com/content/docs/DOC-40451