06-25-2010 07:54 AM
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.
06-25-2010
09:08 AM
- last edited on
07-08-2024
02:20 PM
by
Content Cleaner
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.
06-25-2010 09:12 AM - edited 06-25-2010 09:13 AM
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!
06-28-2010 12:35 AM
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.
06-28-2010 10:04 AM
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.
06-29-2010 07:48 AM
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.
06-29-2010 09:02 AM - edited 06-29-2010 09:02 AM
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:
06-29-2010 09:05 AM - edited 06-29-2010 09:07 AM
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
06-29-2010 09:26 AM
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.
06-29-2010 09:29 AM