Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6001 how to use?

The wiring to a string seems pretty pointless. What do you expect to do with that? Have you run any examples?
0 Kudos
Message 11 of 19
(4,442 Views)

Hi again Dennis,
Well I´m just trying to understand how to simulate an analog measurement taken from the USB6001, and then import to a visualization variable. But it is quite difficult for me.
It's some years since I use labview in school... so I forgot many things.

 

0 Kudos
Message 12 of 19
(4,435 Views)
Then open the example finder and limit the search to the hardware you have. Under Hardware Input and Output there is a DAQmx section.
0 Kudos
Message 13 of 19
(4,423 Views)

Hi again,

 

I have bought the USB6001 and Im doing some tests, adquiring analog measurement I have no problem (upper diagram).

But when I want to inyect some voltage I have some errors (in the diagram below)... ¿Can anyone help me with this simple problem? I am blocked

 

The examples doesnt help me too much... 

Thanx

0 Kudos
Message 14 of 19
(4,347 Views)
Wire a physical channel to the appropriate input like you did with the write.

Your VI will only run once. You need a loop. Do not use the run continuous button.
0 Kudos
Message 15 of 19
(4,334 Views)

Hi again,


I did what you mentioned and errors disappear, but now the program indicates that the buffer is not enough. I dont know where to set the buffer size, and which is the exact size. I just want to extract 5V for example.


The theme of the loop is controlled, it is an issue that will solve later. I just want to see that the output is activated. 

0 Kudos
Message 16 of 19
(4,317 Views)
The code makes no sense. You try to generate a 0 Hz signal? Then you tell it to use a waveform for timing, then write only a single sample. If you want to generate a single voltage, get rid of the timing function and just wire a constant to the DAQmx Write.
0 Kudos
Message 17 of 19
(4,312 Views)

Ok, there were some mistakes... 

I am trying to generate a DC continuous signal, for example 5V. It must be activated untill I stop it.

Which is the configuration of the write module? It must be digital single channel, multiple samples and waveform?

 

 

0 Kudos
Message 18 of 19
(4,305 Views)
It should be Analog DBL 1Samp like you have now with a scalar connected instead of that waveform as I said. Static voltages do not require the timing function either, as I also said. You can place the DAQmx Write inside a while loop and use a front panel control for the voltage setting. When the loop exits, be sure to write 0 volts before stopping and clearing the task.
0 Kudos
Message 19 of 19
(4,295 Views)