06-19-2012 01:58 PM
That makes no sense. The VI you posted does not use traditional DAQ and the read is not outside of the loop. It is also broken so you can't be running that.
And clean up you block diagram. Senseless to wire all of those constants to the Index Array function. You have wires going in every direction and some are hidden. Neatness really does count.
06-19-2012 01:58 PM
Hi,
You threw me with the Traditional DAQ Vs. DAQmx spin.
You are saying:
The Serial device and code works fine alone. (presuming the same code is used, and this was done in a separate VI)
Serial with Traditional DAQ works fine. ( there is no attached version with TDAQ)
(Were you also saying the VI with TDAQ had the DAQ out of the loop?)
This latest VI with Serial & DAQmx doesn't work.
The symptom is that the serial data doesn't update when this VI is run. Do you get multiple sets of 5point DAQmx data each loop, all the indicators are constantly updating on the UI?
Have you run this actual VI, with DAQmx disabled, to make sure the Serial is working fine? I mention this as this VI has a broken arrow, and there seems to be an empty while loop inside the while loop, never seen one like that before. The big 'square', looks like a decoration, my help window says it is a while loop.
***
How about putting an error indicator after the VISA read to see if there is some issue there.
If you are upgrading a TDAQ application, it might help to see that VI also.
Not sure if this helps, on the surface of it, the DAQmx and Serial data flow do not interact, so it doesn't seem to be their interaction that would stop the serial com and allow the DAQ to continue.