LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data from cRIO 9076 to PC

 

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.

0 Kudos
Message 11 of 18
(1,630 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 18
(1,627 Views)

Yes, I got that now.

I am unable to program the stream write program for target.

 

Can u please help?

0 Kudos
Message 13 of 18
(1,612 Views)

Hi nehap,

 

I am unable to program the stream write program for target.

You already programmed the network stream for both host and target: what exactly is the problem?

Where do you need help?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 18
(1,608 Views)

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.

 

 

 


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 15 of 18
(1,599 Views)

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?

0 Kudos
Message 16 of 18
(1,596 Views)

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?

check.png

No need for TimedWhileLoop when they just handle non-deterministic network and serial communication!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 18
(1,591 Views)

Thank you

0 Kudos
Message 18 of 18
(1,584 Views)