LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multithreading

Hi,

 

                     I am using LabVIEW for Creating a GUI, through which the user can change the target board register  values and read those registers. The communication protocol is CAN. l want to change the register values through user intervention,without effecting the process of reading the status registers in a timely manner. how shall i implement this? i think by using the concept of multithreading. Any body please comment on this.

 

mfp.

0 Kudos
Message 1 of 10
(3,922 Views)

You need to set up a multiple loop pattern, such as a master-slave architecture or a producer-consumer architecture. Read over the articles that I linked and take a look at the examples.

Message 2 of 10
(3,912 Views)

If you have your UI seperated from the actual CAN communications part you can do this. LabVIEW is easily multithreaded by having parallel loops. If the UI and the comms are in seperate vi's launched by a "Main" vi and communicate using some version of the producer/consumer model (queues, functional globals, etc.) they can be made pretty isolated from each other. There are basic  examples of these when you  use the "Help" pull down and "Find Examples"

 

 

I see my associate is a faster typist!

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 10
(3,908 Views)

Thank you for the inputs.

I couldnot able to download the mastersalve example vi from the link.

anyboby please share me that zip file.

 

Regards,

mfp.

0 Kudos
Message 4 of 10
(3,862 Views)

I did not encounter problems downloading the file. Perhaps it was a momentary server issue, or perhaps it could be a firewall issue. The example is attached.

Message 5 of 10
(3,839 Views)

 

Hi,

 

I need to parse a file and input the contents into a table. the data items in the file are seperated by "," and starts comment by "//". the table contains 3 columns two for data items and one for comment. i did this using Spreadsheet to Array converter pallete and possbile to fill two data items column. the delimiter used is ",", so the comment also coming along with second data item. How shall seperate the comment from data item without any modification in the input file.

 

-mfp.

0 Kudos
Message 6 of 10
(3,800 Views)

Are you asking a different question? I'm not sure anymore since I don't know what you're doing. I don't know how you configured the Spreadsheet String To Array, but are you doing this:

 

0 Kudos
Message 7 of 10
(3,785 Views)

Exactly.

 

I need to Print the Comment (Portion After "//") in another column without "//".

Also Please note after last data item in the file, there is no ",".

 

-mfp

0 Kudos
Message 8 of 10
(3,779 Views)

What are you trying to get as an output? A 2D array of strings? A 1D array of clusters? A 2D array of numbers for the first two columns and a separate 1D array of strings for the comments? What you want as the output will dictate how to do it.

0 Kudos
Message 9 of 10
(3,769 Views)

moved to here

 

please discontinue any further comments of the parsing in this thread.

0 Kudos
Message 10 of 10
(3,762 Views)