05-31-2007 11:14 AM - edited 05-31-2007 11:14 AM
Message Edited by smercurio_fc on 05-31-2007 11:15 AM
05-31-2007 11:32 AM
05-31-2007 12:05 PM
You really need to be more specific than 'the serial port code doesn't work'. How doesn't it work? Is there an error generated? Wrong values read? A hole is torn in the space-time continuum? You've not posted a good explanation of what is going wrong or even what exactly you want to do. You wanted the two VIs merged. I merged them.
Remember what I said about dataflow? Your Agilent code has a while loop. This loop must finish before the main outer while loop can iterate again. If you want the serial and agilent code to run in parallel, you can simply put a while loop around the serial code.
I don't know what you mean by 'RED stop button'. The only stop button you have has no affect on "stopping" anything. All it does is control whether you do one VISA Write.
05-31-2007 12:44 PM
05-31-2007 02:29 PM
This starting and stopping of the agilent loop is a bit more complicated than just copying and pasting code. As it is now, there is no relationshipt between your front panel controls and the agilent loop. You will have to modify the logic of the Booleans. I'm sorry, but I don't have time to rewrite your program from scratch and I that is what it will take.
I'm still not sure why the none of the VISA Writes will occur when the agilent loop is there. I would believe that the write might be delayed but not happening at all is something I can't see. Have you used any of the program debug tools? You could set a probe and see what happens when one of your front panel 'Run' buttons goes true. See if there is an error.
05-31-2007 03:49 PM