06-25-2024 07:27 AM
Hi,
I prepared code for multichannel by using COMM4, and now I am stuck in getting data from the condition loop and while loop. As I tried to get it within a while loop it is giving "To save file" after every iteration and also overwriting it means when I stopped the code to check file it gave only one row of data points.
kindly please guide
Hasham
Solved! Go to Solution.
06-25-2024 07:58 AM
What are you trying to talk to? What exactly is the messaging protocol (how the data is formatted)? I have many concerns, but I would like to have the real details before I give any actual advice.
06-25-2024 08:02 AM
Hi
I'm not able to open your file, can you please save it to version 2020 ?
As for the save data, there is a boolean input on the file function APPEND to file.
If this is true, it will add additional data as more lines. If this is set to false it will overwrite the previous data with the new one, that's probably what is happening with your code.
I would be able to give more input about the condition after you provide an updated version file.
06-25-2024 07:23 PM
hI,
Thanks for your reply. Data is in the form of array within a FOR loop after that conditional Loop and then while loop and when I am connecting Write sheet.VI after FOR Loop within conditional loop then it is giving only one row of data. and when I connect same VI out of all loops then it is giving multiple rows of zeros and before opening the excell file also show message that file is very large it will lost data if you save it.
I also attached code with this reply.
06-25-2024 07:26 PM
Hi,
Thanks for your reply; I attached the requested version of the code. Please guide me as I am stuck on this step.
kind regards
Hasham
06-25-2024 08:32 PM
Notice the input on pin 9 of this function:
The default is to overwrite. Wire a True constant to append.
06-25-2024 11:54 PM
Hi,
Thanks for your reply and yes, it's working. If I need whole data after complete run as by connect true to append it is saving data of every iteration but same time it is popping message to save it. Please guide if I need full data after complete run.
Kind regards
Hasham
06-26-2024 12:46 AM - edited 06-26-2024 12:48 AM
Hi Hasham,
@Hasham622x wrote:
If I need whole data after complete run as by connect true to append it is saving data of every iteration but same time it is popping message to save it.
What about reading the LabVIEW help for this function?
All its inputs are explained and also the behaviour for default input data is explained!
The message pops up because you forgot to wire a (correct) value to one of the inputs of that VI!
Btw. marking your own message as solution while still asking questions seems not reasonable to me…
06-26-2024 01:40 AM
Yes, Sorry, I accept it it's my mistake to tick my question as a solution.
If you don't mind, could you please guide which input pin, I should connect to write a delimited spreadsheet.vi.
Kind regards
Hasham
06-26-2024 01:43 AM