LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

long term discontinuous logging DAQ-assistant

Someone who can help me please?

0 Kudos
Message 11 of 19
(1,395 Views)

I think I see your problem after looking into your modules.  You don't have any digital I/O on your modules so you're wanting to use the BNC PFI lines on your chassis correct?  

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 12 of 19
(1,385 Views)

Yes sir. Is this possible? I am using the CDAQ 9178 chassis

0 Kudos
Message 13 of 19
(1,379 Views)

This doesn't look promising  Smiley Sadhttp://forums.ni.com/t5/LabVIEW/How-to-access-digital-input-on-9205-module-in-9172-cDAQ-chassis/m-p/...  Maybe contact an NI rep to be sure unless someone else chimes in...

 

One option of course is to simply collect data continuously and don't save what you don't want.  Or collect and save constantly and edit the data later. 

 

Another possibility is to press the digital lines of your PCs parallel or serial port into service.  Parallel is easy, you can read the lines directly but you can actually read the bi-directional data and status lines on the serial port as well.  See the example called Serial Port Monitor.vi.   What is the physical source of the digital signal you planned to use to start/stop logging?

 

Or...   You can always buy an appropriate new toy to put in your cDAQ chassis. Smiley Happy

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 14 of 19
(1,369 Views)

One soultion to this is indeed using a Digital I/O module to read out (static) a digtial line and control your case structure with that.

You can also setup a pause trigger. You cannot do that with the DAQ assistant but you can with the DAQmx API. I have attached a VI that shows how to do this. I have configured a cDAQ-9178 with a NI 9219 in slot 1. The pause trigger comes from PFI0 on the Chassis. I have made this VI without having HW to verify its behavior so you might first test it. The way I think it should work is: You connect your digital sigjnal to the BNC conector of the Chassis. Point the channels fo the VI to the correct HW channels in your chassis. Run the VI. The behavior should now be that the task is measuring when the signal on PFI0 is high and should be pausing when it is low. The DAQmx read VI will produce a timeout error after 10 seconds when no data is available. That error should be handled and ignored so the DAQmx read VI is waiting for new data again. I did not implement that yet. Could you first try if the VI works like it should?

 

Let me know the results!

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 15 of 19
(1,345 Views)

Hello,

 

I got access to some HW so I tested it out and it works quite nice. I also added real simple logging and error checking. The VI now logs when there is data. When the trigger is set to low the DAQmx Read VI gives an error which I clear (only the specific timeout error since that is what I expect to happen.) All other errors will still be handled and will stop the loop. I set the timeout value to only half a second since that allows you to stop the VI with the stop button quite quickly.  

You will find the VI (with the ignore specific errors VI) in the attached zip file. Let me know if there are any questions.

 

Regards,

Rik Prins, CLA, CLED
Software Development Engineer
Message 16 of 19
(1,334 Views)

Very nice Rik.  I think I need to look into some cDAQ hardware for future projects.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 17 of 19
(1,320 Views)

Hello,

 

I got a digital input module now Smiley Happy

 

Thank you for the help!

0 Kudos
Message 18 of 19
(1,306 Views)

Thanks NIquist and Stephny, good luck with you application.

 

Regards,

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 19 of 19
(1,290 Views)