01-30-2018 10:51 PM
Hi jwscs,
I do not want to build any standalone application.
Its only that, I have connected a device called MRU through the serial port of cRIO. I want that input data to be saved in a text file in my PC.
Please tell me how can I do that.
01-31-2018 12:28 AM
Hi nehap,
I do not want to build any standalone application.
Surely you want to run an application on your cRIO. And you want an application running on your host PC to receive data from your cRIO.
Use network streams to send data from cRIO to host PC…
02-01-2018 12:10 AM
Yes, I got that now.
I am unable to program the stream write program for target.
Can u please help?
02-01-2018 02:03 AM
02-01-2018 03:59 AM
regarding the Target VI:
open and close the VISA connection outside your "deterministic loop", you don't need the overhead of establishing the connection each time you want to read something.
also, but that may be only a personal preference, don't use the timed loops, it does not seem that you really need them and since you seem to know exactly how many bytes you want to get, you don't need the inner loop.
also for this simple case, i think you don't need the second loop to write the data to the network stream, just do it inside the VISA loop.
the idea to use the network shared variable for stopping is nice, but i think you can just take the error out of the 'write to network stream' to stop the loop and your program.
02-05-2018 01:28 AM
Thanks. I did that.
the issue is the text files which are getting created are blank, they have no data.
So, is it that for using serial port data in network streaming, do I need to program differently?
02-05-2018 01:46 AM
Hi nehap,
the issue is the text files which are getting created are blank, they have no data.
There has to be "something" in the file, atleast default data should get written - unless there is an error on the TDMS error line… (Did you debug this?)
So, is it that for using serial port data in network streaming, do I need to program differently?
You already got several suggestions.
Did you implement them?
No need for TimedWhileLoop when they just handle non-deterministic network and serial communication!
02-05-2018 05:29 AM
Thank you