02-06-2007 10:15 AM
02-06-2007 10:24 AM
Thanks Ben,
One goal of this particular implementation (which may not be stated in the article) is to support non-LabVIEW and non-Windows clients on the other side of the cable. Therefore the data passed in the TCP packet was kept as generic as possible to allow for easy decoding on a wide range of platforms and programming languages. One focus for this is to be able is to develop RT applications that can run as deployed independent components in a networked system with different tools on each box.
For LabVIEW-only applications your suggestion is a logical extension to this recommendation.
02-06-2007 11:23 AM
"....support non-LabVIEW and non-Windows clients on the other side of the cable..."
My job is done here! ![]()
Ben
02-13-2008 12:36 PM
02-13-2008 03:38 PM
02-13-2008 04:12 PM
02-13-2008 04:43 PM
02-13-2008 05:07 PM - edited 02-13-2008 05:08 PM
Actually, that is not quite the same, because he seems to compare with "not equal". The first case will turn TRUE for [00, 11, or 01]
tbob wrote:
One improvement that I can see right offhand is the replace your two case structures with one. Wire the string into the case structure selector (?). Make a case when the string is "10" and another case when the string is "11". Add a default case to handle code when the string is neither "10" nor "11". You can add more cases for different string values expected.

02-14-2008 02:06 AM
Good long discussion about Using Type defs and strings
To the first post of joeycao i would like to add one more suggestions
i keep "No Event" state as my default state instead of startup. Generally when you startup your program you do some initialisation (which is never required afterwards) and then just sit idle till any event is generated. as soon as event is triggered; you respond to the event and become idle once again.
if you keep the no event as the default case then you dont need to tell system "GO IDLE"... "KEEP IDLE" "STILL KEEP IDLE"
And Regarding Altenbach's response
i was expecting case structure binary radix to be found in Darren's Weekly Nugget!
any ways thanks for a nice tip
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
03-18-2008 02:47 PM