LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT HELP: Synchronization of Multiple Devices

Hi again gcass,

 

You see those white Sub VI's you have used to reference different lines to clock different tasks? You can use those in the same way you have done to reference the Counter triggering terminals to drive other tasks as a trigger source to initialise your DAQ task.

 

If you want to trigger each task straight away, essentially as soon as you initiate the VI, you could reference the trigger source as one of the Timebase clock sources on your device. If you use this, your DAQ task will initialise on the next rising edge of the referenced high speed clock source in your device. 

 

Regards, 


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 11 of 14
(535 Views)
How can I use the timebase? My force sensor isn't seeing rising edges. It's just seeing small variations aka noise.

What did you mean by high speed clock source?

Currently the counter terminal that I created to send out a single pulse isn't being used.

Should I just delete this from my code?

Thanks

Gcass
0 Kudos
Message 12 of 14
(528 Views)

gcass,

 

You might consider looking at some of the synchronization examples which can be found under Help » Find Examples » Hardware Input and Output » DAQmx » Synchronization.  While you are doing AI and DO channels, I think that the Multi-Function-Synch AI-AO example may be a good place to start.  This is a continuous acquisition but I believe it still applies heavily to the project you are working on.  I think these examples will help clear up your questions about setting a trigger.

 

As far as the counter terminal, as Alex said, you could use one if you desire.  I think that, if you look at the triggering specifically in the examples and run through the code with highlight execution, then it should give you a clear picture of how triggers are used and how it would be implemented in your code.  Another good source of trigger examples would be any of the analog/digital input/output examples that have 'dig start' in its name.

 

Regards,

Trey C.

0 Kudos
Message 13 of 14
(506 Views)
Ok. I will read up on this and return if I have any questions.

Thanks

Gcass
0 Kudos
Message 14 of 14
(503 Views)