LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Logging Issue

It's too hard to tell what's going on from the screenshot since it's not showing all the code. Can you upload the VI? How is your DAQ Assistant configured?
0 Kudos
Message 11 of 18
(1,525 Views)
I will upload the vi tomorrow late morning when I make it in. That should have the assistant settings. Thanks
0 Kudos
Message 12 of 18
(1,523 Views)

Yes, you can place the wait anywhere in the loop and it does not have to be wiered to anything else. Use the "Wait Untill Next ms Multiple" with a constant (or control) wired to it so you loop does not go as fast as possible and cosume all of your system resources. If you create a timing control you can adjust the timeing so you can find what is too fast or slow.

 

Hunter

0 Kudos
Message 13 of 18
(1,512 Views)
Here is the vi file that I am using.
0 Kudos
Message 14 of 18
(1,494 Views)
I can't run the VI since I don't have the hardware, but I don't really need to do that. As it is, it appears that you want to be reading data at a certain rate, controlled by "Data Logger Freq", and if the user elected to save to file while it's reading then it does so. Personally, I wouldn't use the DAQ Assistant since I abhor Express VIs. Still, you can use them if you wish. I don't understand why you say that you can't set up the DAQ Assistant to "on demand". That is one of the available options. Are you saying it's grayed out for you?
0 Kudos
Message 15 of 18
(1,483 Views)
It can be set to on demand when I'm reading the thermocouple module only, but the NI-9237 which reads the pressure transducers will not support the 'on demand' feature, so it cannot be used.
0 Kudos
Message 16 of 18
(1,481 Views)
Sorry for the delayed response. Past couple of days have been a bit busy at work, thankfully. In any event, I don't really understand why you can't select N samples. I don't have your hardware, but I created simulated devices in MAX and I was able to select N samples for your task, and the code ran with no errors. I don't know if it's because I'm using simulated devices. If you still can't get it to work you may want to give NI tech support a direct call.
0 Kudos
Message 17 of 18
(1,463 Views)

We don't know how many samples we will collect so N samples is not an option.  Also the time the code loops seems to be always 3 no matter what value is selected.  Thanks again.

-John

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