11-01-2006 05:57 AM
11-01-2006 08:26 AM
The basic problem is that your backdoor workaround is also not supported by your board. There just isn't a way to get hardware-driven timing for digital output bits on that board. Not with a sample clock, and also not with a trigger.
Maybe you can wire your counter output to a simple external chip that'll reproduce the pulse while sourcing more current?
-Kevin P.
11-01-2006 10:06 AM - edited 11-01-2006 10:06 AM
Message Edited by gavril on 11-01-2006 10:07 AM
11-01-2006 10:20 AM - edited 11-01-2006 10:20 AM
gavril:
I use the HPCL-2300 high speed optocoupler quite often to isolate counter signals. Google it to find the app notes. If power on state does not match your requirements, you can use an inverter (SN7404) Attached is a screenshot of a schematic from a system that uses such. No need for U1 in your app, U2 is the aforementioned inverter, C1, R1A/B, U3 and C4 are needed. The output of U3 can be used to pull your 3.3V input low.
Good Luck
-AK2DM
Message Edited by AnalogKid2DigitalMan on 11-01-2006 09:20 AM
11-01-2006 02:16 PM
AnalogKid-
That's the strangest LabVIEW code I've ever seen. And what's with the green wires?
11-02-2006 05:12 AM - edited 11-02-2006 05:12 AM
Thank you Analog Kid.
Another strange LabView code that I have received. In this case, Sync-in is grounded when DAQ output goes into low state. I was told that the resistor can be as low as 1K or as high as 10K. What would be the best value if the DAQ output corresponded to the CTR0_OUT terminal (pin 2)? How does one determine this value? As usual, I appreciate any comment/suggestion. Gabriel
Message Edited by gavril on 11-02-2006 05:18 AM
11-02-2006 11:07 AM
gavril:
Are you speaking of the resistor to use on the phototransistor side that connects to your 3.3V sync_in signal?
11-02-2006 01:38 PM
11-02-2006 02:26 PM - edited 11-02-2006 02:26 PM
I'm thinking more along the lines of 370 ohms. R= (5V-1.3V)/(0.010A) = 370 ohms. The 1.3V represents the forward voltage drop of the 4N35, forward current of it is 0.010A. (Figures taken from spec sheet)
Here's a good link to Vishay's version of the 4N35 with specs and app note links.
http://www.vishay.com/optocouplers/list/product-83717/
You may want to search for the like for the ones specific to the manufacturer of your 4N35.
Message Edited by AnalogKid2DigitalMan on 11-02-2006 01:28 PM
I see the 6034 counter output is rated for 5mA sink max so you may need to buffer between the DAQ card and the 4N35- could use 74series TTL 2 inverters in-series or an AND gate with both inputs wired together.
Message Edited by AnalogKid2DigitalMan on 11-02-2006 01:31 PM
11-04-2006 03:35 PM
It looks like the 4N35 can operate the photodiode from 0.5 mA to 50 mA. Therefore,it might be possible to operate it with a 1K resistor, which will result in 3.7 ma current (below 5mA). I haven't tried it yet though because I found out that the issue I am dealing was in fact different and that the simple transistor switch circuit (see a previous post) woks well.
The problem is in fact that the terminal (ctr0_out) on the DAQ card (NI 6034E) is tri-stated when I export it to the RTSI bus (where it is used as a trigger by other DAQ cards):
DAQmxExportSignal(myTask_,DAQmx_Val_CounterOutputEvent,"/Dev1/RTSI0")
After exporting the signal, the pulse produced by the counter is not present on Ctr0_Out anymore. The solution seems to run the task once before the exporting the signal
http://forums.ni.com/ni/board/message?board.id=250&message.id=7069&query.id=257729#M7069
As stated by reddog in the above thread in a slightly different context, "Although the destination for the signal has changed, the original route will remain in place and you should be able to see the signal at both locations"
There seems to be no other way to have the signal at both locations in this case since it is impossible to connect physically RTSI0 and ctr0_out but I would be glade to be corrected.
Also, I could not find any documentation on this point (except for the hints from users in the forums).