01-26-2014 04:47 AM
Hello,
i have usb-6008 when (DI is sw-timed) and AI when i want (continous sampled) and then the both signal show in one graph, is it possible, please could you writte me how can i do it?
01-26-2014 08:15 PM - edited 01-26-2014 08:21 PM
Hi Ondik,
Do you have any current VI which you are working on until you encountered this issue? If so, can you provide your VI so that we can advice you accordingly?
What is the final value of the DI? Did you convert it from boolean value to a numeric data type?
Here are some materials related to multiple plots in same graph:
http://digital.ni.com/public.nsf/allkb/95FEE9F5B252507E862562BA00007657
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/types_of_graphs_and_charts/
Warmest regards,
Lennard.C
01-29-2014 07:03 AM
Hi Ondik,
Firstly, please do not duplicate posts.
I've seen your other post on this link http://forums.ni.com/t5/Multifunction-DAQ/usb-6008-DI-is-sw-timed-and-AI-when-i-need-continous-sampl...
and it is exactly the same question.
To answer your question, you have couple solutions:
1. As it was stated in the previous posts, you can acquire the data on another analog line, and than you will see your signal displayed on a waveform graph.
2. In case you still want to use data that are acquire on SW DIO and Hardware time Analog Input you can do the following.
When you acquire data from Analog Input, the data have the following strucutre - a cluster that contains three elements: T0, dt, and Y - an array of samples.
More details here http://digital.ni.com/public.nsf/allkb/B965F316364DE17B862572DF00363B10
Basically, you can programmatically build a waveform from the static data you have. Let's say, every iteration of your while loop, you will receive one boolean value and waveform data that contains 100 samples of Analog Input. You can create the Y array with 100 samples of an double value (5V for TRUE and 0V for False, or any logic level you are interested in), copy the dt and T0 value from the waveform received on Analog Input measurement. Later, you build an array of waveforms (AI and DI) and you represent it on a graph.
I still believe that the first solution is easier to implement, but if for any reason you can do it, you can use the method described above.
Best regards,
IR
01-30-2014 04:23 AM
Thank you for your answer, i am interested in point 2 from IonR, but i do not understand very well, do you know is somewhere similar code with them, i would like test it, thanks ????
01-30-2014 04:35 AM
01-30-2014 04:47 AM
Please IonR, i have version of labview ver. 2010 and you have 2013, can you convert it?
01-30-2014 04:53 AM
Here you go !
01-30-2014 05:20 AM
ok, great!
and could you writte me how can i show this data in graph in real time, is it possible?
01-30-2014 05:38 AM
Hi,
What do you mean by showing it on a graph in realtime?
It is represented on a graph.
What needs to be changed is to replace the simulation data with real data from a hardware.
What device are you using? What sample rate do you use for Analog Input?
Best regards,
IR
01-30-2014 05:52 AM
i have usb 6008, i want to sample rate will by optional by user (for usb 6008 - max 10kS/s for one channel...)
in realtime i mean: axis x will be actual date and time
thanks