09-03-2023 02:39 AM
i am acquiring some 10 bytes of data from STM connected as serial port . further in while loop the data is being separated as bytes where some bytes are being plotted corresponding to timer which i have made. but the issue is that as the number of graphs increases it cause issue in plotting of data. means when i connect one graphs only to one of byte dat, it displays as expected when i attach 3 graphs it displays wrong data indicating some missing of packets . the data is being stored as shift registers. what could be possible reasons.
09-03-2023 09:40 AM - edited 09-03-2023 09:43 AM
Since we don't have your instrument, we cannot test. Could you create another shift register containing a 1D array of strings where you append each received raw string. This way we can delete all IO and play back your data and test.
Do you have a link to the manual that describes the data format of the strings?
Some notes:
09-05-2023 07:39 AM
Could you explain the message format coming from the STM? I suspect we can simplify your VI if we had the framing protocol being used.
Building arrays inside of loop can be very slow. It is even worse since you are adding at the beginning of the array. For a first attempt, try reversing how you are using the Build Array functions (arrays in the first item, new element in the second).