07-23-2012 08:40 AM
I think I do something wrong, because it only writes one string into the txt file.
My vi ,I would like to upgrage runs continously, I have a string
input, which from I made a numeric double.
This string is changing all the time, and I would like to save the
actual strings into a txt file, but I dont have a constant sample
frequency, I would like to do it totally manual.
Could you help me with an example?
It is not needed to be complicated, it would be alright to have either
one row or column of the data.
07-23-2012 08:49 AM
07-23-2012 08:49 AM
Your VI doesn't show where you are trying to save the data to a file.
Your VI is set up to run once. So if you want to do something repeatedly, you need to put a while loop around your code. Make sure that only the VISA read and write functions are inside the loop. There is no need to open and close the VISA resource on every iteration of the while loop.
07-23-2012 03:51 PM
Hi manzano,
The example here shows a simple VI for writing to a text file. It requires a manual press of the OK button to write a string into the opened file reference:
https://decibel.ni.com/content/docs/DOC-22371
You could modify this to run after every hardware read instead of waiting for manual user input.
Regards,
07-23-2012 05:43 PM
Thank you all vey much! The last vi is really what I was looking for.
I hope it will work.
07-23-2012 05:43 PM
Thank you all vey much! The last vi is really what I was looking for.
I hope it will work.