07-04-2008 08:12 AM
07-07-2008
12:07 PM
- last edited on
10-06-2025
04:47 PM
by
Content Cleaner
I was also in the process of creating also a conversion, here is a link to the place that talks about how to make that conversion, I hope that it helps http://digital.ni.com/public.nsf/websearch/022EF0C2D86CD7F28625704C007B1E5D?OpenDocument
07-07-2008 12:09 PM
Oops, I meant scale not conversion....sorry first time posting
07-07-2008 04:52 PM
07-08-2008 04:30 AM
07-08-2008 04:58 AM
07-08-2008 09:58 AM
Hi Jernej,
Very good programming, the code is organize like it should. Looking at the code like it is I don’t see any problems and it should run with now problems. Just make sure that you intention is to use the arm start trigger of the counter.: “When you configure an Arm Start Trigger, a counter task does not respond to any Start Triggers until after the Arm Start Trigger occurs. You can configure this trigger to occur on a digital edge. The Arm Start Trigger is separate from a Start Trigger and is typically used in advanced counter/timer applications. You might use an Arm Start Trigger to synchronize multiple tasks, such as counting edges and pulse generation. The Start Trigger then would be used to start the acquisition or generation.”
What DAQ card do you have? What is the error message that you get? Where does the code stops? print-screens, error code numbers, chronology of events before the code stops are very useful debugging tips.
07-09-2008 02:31 AM
07-09-2008
10:02 AM
- last edited on
10-06-2025
04:50 PM
by
Content Cleaner
Hi Jernej,
I ran the code in my computer with a 6251 and it ran OK, I think you hit the nail in the head, as a suggestion you can create the scale in the project window, by right-clicking: my computer-DAQmx Scale, after the scale is done, you can drag and dropped on the block diagram, and wire the “purple box” (DAQmx Scale Name) to the input on the DAQmx create channel.vi.
Your approach sound correct, but instead of digging into your code, I would point you to some examples that synch counters and analog inputs hopefully one will help. NI-DAQmx: Retriggerable AI Using Counter and an Analog Trigger, NI-DAQmx: Creating an Analog Input Task with Multiple Measurement Types in LabVIEW, DAQmx - Retriggerable AI Using Retriggerable Counter. Remember that these examples are not specific to your problem but the best way of learning is to practice.