04-27-2017 05:55 AM
HI. For more easy, I join you my VI so that you can manipulate.
I need to recover temperature and tension values at the same time. So I create 3 VI who I add in a big one. All VI works corretly, but when I gather it in the big one, they don't turn at the same time, and that brake my VI.
First VI going to create a graph, where I can see all of my thermocouples. I set a sampling frequency just for him.
Also, I want to recover some températues. Tipically, I see each secondes the températures in my graph, but i want to record every 5 secondes. So i set a new sampling frequency. It's the role of my second VI.
The last displays and records tension values, with the time, in a EXCEL file. I have the same sampling frequency for displaying and recover values.
So now, I just want my VI turns to infinity
Thank you for you answer.
Solved! Go to Solution.
04-27-2017 06:29 AM
1. You did not include the subVIs, so we cannot troubleshoot.
2. What hardware are you using? You may be able to combine the temperature and tension readings into a single task.
04-27-2017 07:14 AM
I use :
-Ni 9214 16-CH Isothermal TC, 24-bit C ( thermocouples )
-NI 9205 16 bits, 250kech/s, +/- 10V, 16 voies differential
04-27-2017
07:31 AM
- last edited on
10-31-2024
02:54 PM
by
Content Cleaner
Seeing that the sample rates are all the same and with the assumption both modules are in the same cDAQ chassis, just combine all of your readings into a single task. You can then use a Producer/Consumer setup to send data to parallel loops for the processing and saving of the data.
04-27-2017
07:45 AM
- last edited on
10-31-2024
02:54 PM
by
Content Cleaner
I have two sampling frequency :
- One to have the temperatures in a graph, and for the measurements of voltages
- Another to save temperature values in an EXCEL array.
crossrulz a écrit :
You can then use a Producer/Consumer setup to send data to parallel loops for the processing and saving of the data.
What is the PRODUCER / CONSUMER configuration?
04-27-2017
07:49 AM
- last edited on
10-31-2024
02:55 PM
by
Content Cleaner
@Jeremie.D wrote:
I have two sampling frequency :
Your code currently has both running at 1 sample per second per the inputs to the DAQmx Timing.vi
Jeremie.D wrote:
crossrulz a écrit :
You can then use a Producer/Consumer setup to send data to parallel loops for the processing and saving of the data.
What is the PRODUCER / CONSUMER configuration?
Follow the link I provided
04-27-2017 08:02 AM
crossrulz a écrit :
Your code currently has both running at 1 sample per second per the inputs to the DAQmx Timing.vi
It's just that the commands did not save, but I still have 2 separate sampling frequencies. Do I have to create 2 tasks?
crossrulz a écrit
Follow the link I provided
Thank you
04-27-2017 08:50 AM
OK, I think I understand thank you