02-12-2018 04:09 AM
Hello all,
I suffer from a problem since weeks ago and want your help.
I have a NI PCI 6535b card. I notice that after I run my program, the sample clock signal from PFI4 is always there, even I exit LabView software. How can I set it to zero after the program stops?
Thank you in advance.
Best regards,
David
Solved! Go to Solution.
02-12-2018 08:51 AM
I'm not specifically familiar with your DAQ board, but if you're programming in LabVIEW I'd be willing to look at code you post (version 2016 or earlier please). I have a suspicion about possible use of "connect terminals" instead of "export signal", but again, I don't know much about your particular board.
-Kevin P
02-12-2018 09:29 AM
Hello Kevin,
Thank you for your reply.
My code is attached below. The top part is for digital waveform generation. The bottom part is from a sample code from LabVIEW.
Thank you.
David
02-12-2018 09:56 AM
Please check the code attached above. The left side and right side should be merged together. I don't know how to zoom out my block diagram window so that I can take a screen shot for the complete diagram.
02-12-2018 10:37 AM
I believe your simplest option would be to call DAQmx Reset Device after DAQmx Stop Task.
02-12-2018 11:30 AM
Hello Tobias,
Thank you for your reply.
I am new to LabVIEW. Can you show me how to add the 'DAQmx Rest Device' and wire the 'input device'?
David
02-12-2018 03:22 PM
You can right-click on the input terminal and choose "Create Constant" (or Control). Then just select the device your task was using.
Alternately, you could expand the Task property node that's already in your code to add another property output, 'Devices'. It'll be an array of devices, but if the task only uses one device, that'll be the one and only element. Use 'Index Array' to get index 0 and wire up to "DAQmx Reset Device".
All that said, I wonder if there isn't a less drastic course of action that'd work which doesn't require a full device reset. I've not used a device with a Pipelined Sample Clock though, so I have no specific insights.
-Kevin P
02-13-2018 02:15 AM
Hello Kevin,
Thank you for your reply. Problem solved by adding 'DAQmx Reset Device' right after 'DAQmx Clear'.
David