06-02-2010 01:23 PM
06-02-2010 01:37 PM
I put in a request on the forums to have the VI converted to 7.0 for you,
I will post it here if someone helps me out.
06-02-2010 01:40 PM
superomario wrote:
Why can't I use the same serial connection? I don't think I have much of a choice, the devices work in such a way that the first device is the only one connected to the computer and the next one is chained to the firsts "out" port and so on. So all the data is sent to the first device and if the address does not match it is sent to the next one down the line until the right address is found. How else can i do this? And i know the code is neither perfect or robust but I cannot think of any other ways to do these things. Someone posted on another thread of mine recently and what he suggests is incredibly complicated for me to do at this stage. So any simple recommendations you can suggest would be great
That makes no sense to me. No matter what, each write will happen with no error whether you have anything connected or not. That's the way RS-232 works. There is nothing in your code that 'finds' anything.
06-02-2010 02:26 PM
06-02-2010 02:58 PM
06-02-2010 03:56 PM
06-03-2010 09:12 AM
06-03-2010 09:17 AM
First, the RUN command is sent to all 3. Then in the while loop, the RAT command is sent to all three along with the ULN and value fron the front panel controls. When the Stop button is clicked, the STP command is sent to 00. It will be up to you to add the code to send STP to 01 and 02.
The building of the control array and it's being autoindexed by a for loop is explained in the LabVIEW help and the tutorials I mentioned earlier.
06-03-2010 09:17 AM
06-03-2010 09:53 AM - edited 06-03-2010 09:56 AM
Look at how I did it in the other 3 For loops.
Do you see the blue 'i' that is wired up to the 'number to decimal string'.
Do that exact same thing, and it will give you 00, 01, and 02.
(I attached a new version with this step completed)
And thank you Dennis for providing that explanation