02-21-2013 08:29 PM
i am trying to wrtie the complex numbers i generated using "write to measurement file".
The problem is i need to seperate the real and imaginary part of the numbers first before i can connect the results (write my data) to the "write to measurement file" function.
Is there a way to write the complex numbers directly using "write to measurement file" function?
Thanks in advance for answering my question.
02-21-2013 09:31 PM
You have found one of the disadvantages of using Express VI's. While they can be great for beginners to get some code up and running quickly, they aren't designed to handle every situation you can throw at it.
Exactly how do you want the complex number to look in the file? You will need to separate the real and imaginary parts to be able to use the express VI.
02-22-2013 02:02 AM
thanks for the comments
actually i want to write data in a complex form, both real and imaginary together as one data in a column.
regards,
dave
02-22-2013 03:19 AM - edited 02-22-2013 03:29 AM
There may be an easier way, but you can do a conversion to stings and save that.
Sorry, I forgot to initialise the shift register with an empty string !!
02-22-2013 09:34 AM
Thank you so much to the suggestion and the code. I got my problem solved. cheers
02-22-2013 11:14 AM
Use the "Array To Spreadsheet String" function for simpler code: