Jump to content

hma

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

hma's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. hma

    RS232 receive errors

    QUOTE (orko @ Apr 16 2008, 03:25 PM) Well I added 100msec delays after each VISA vi, even after the Flush buffer VI it was necessary. Now all is working. Thank you all! Hugo
  2. hma

    RS232 receive errors

    QUOTE (orko @ Apr 15 2008, 08:53 PM) Thank you all for your respons! Well in short, the device is programmed to set to a certain temperature with the command "T1=(°C*100)". Next the receive buffer is flushed to be certain nothing can disturbes the response on the next command "T1" on which the device returns the programmed set point with a string as defined in the comments in the VI. I am using the default timeout 10 sec as the help says abouth the serial init Vi. 2400 baud should allow to communicate more than 200 characters per sec. I only have messages of 16 characters. I made exercises with time delays between sent and receive commands but nothing seems to help. The ashtonishing fact is, however, that the VI runs fine in "slow motion" or "debug mode" where all is sloooow, while it returns timeout errors in normal run modes and returns only "$/r/n" as the answer string, so where is the first part of the message going? The fact that there is a flush of the buffer before the "T1" command is given and the fact the VI sees always the last 3 characters of the message means that all 16 characters must have been sent by the device, but the first 13 characters are sent to a "black hole". Probably it has something to do with the 2 CR-LF's in the message. I have to find that black hole! Regards, Hugo
  3. Hi, Take a look at the included VI. While running in debug mode the output string of 16 characters is red normally from the device, however running on normal speed the VI reads only three characters and all the buffer characters including the CR-LF combination in between seemes flushed. I have inserted delays, but nothing seems to help. Why oh why? Thanks in advance, Hugo
  4. Hi, I have seen some interesting vi's now but what I was asking for was a nearly same mechanism like it is used in VB:http://forums.lavag.org/index.php?act=attach&type=post&id=6051 In VB you set the tabs on the front panel, select the properties: number of rows and colums, adapt the size of the tab page, create "the fields" on tab page 1 and copy next the fields to tab 2 and all following tabs (the number of copies isn't even in VB6 automatically equal to the number of tabs). Atomatically VB asks if it has to create for each "dublicated field" an array, indexed by the selected tab. Later on each field on the visible tab will display the contents of the elements of the arrays indexed by the tab. In LV all "fields" on a tab page could be bundled to a cluster element in a cluster array indexed by the tab. In any case thanks for the responses. Hugo Sorry, English isn't my mother tongue.
  5. Hi, How about a manner to define a cluster on a tab page and define its size and automatically generate a tab page with the same layout for each cluster index? I need to enter the data of 16 different specimen for testing purposes. Until now, I programmed it in a loop with a vi and popup window, but if some data of some specimen is wrong I have to go trough the loop again until I attein the right specimen, change the data and continue looping through the rest of the specimen. It would be much easier if I could use a tab page for atteining the data of a specific specimen. Hugo
  6. Hi, How can I change the property (blinking) of the all colums in a row of a table by example if a value in a column is wrong ? Thanks in advance Hugo
  7. Mike, thank you. It works very well ! "Comments with an attached leader" would be however a nice expansion to the development environment. Thank you all for your welcome and comments. Hugo
  8. Hi, I am new to LV. My development is rather complex and I have a lot of comments in the block diagram. Can comments have leaders (arrows) to wires etc. ? Thanks in advance, Hugo
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.