order bipolar motors with usb DAC-NOR-6008

Hi, I need help for an example vi that explaining how to order two bipolar stepper motors using the USB-OR-6008 data acquisition card, I have the engine drivers, can any body help me?

you are more than welcome... OK, I've attached a vi that could help you... I will illustrate how to connect your driver for your usb data acquisition card.

1. on the digital I / side P O/P of data acquisition is a 5V pin, connect it to the two 5V pins (pulse and Direction) of the driver.

2 - 2 other pins (Pul - and Dir-) connect to port0/$line0 Pul-and port0 / line1 to dir.  (you can configure the ports like u as in the vi block diagram window).

3. allow the PIN to activate it without a connection. (it is normally activated).

for the connection of the motor: (do not connect these pins for data acquisition)

It has 6 pins.

first of all, you must know the motor coils wires, you could test with any counter AVO.

1 - the first pin is connected to the mass of the battery.

2 - the second pin to the positive pole of the battery.

3, 4 the first whorl.

5, 6 the second coil.

Try it and I hope that I helped you, tell me if it worked.

Tags: NI Hardware

Similar Questions

  • control of the volume on the keyboard keys do not work with usb dac

    o/s ultimate win7, ms wired keyboard 600, usb dac.

    I finally got the volume bar work, he reacts to the keys flight + /, but the volume remains the same.

    the only way I can change the volume is with my mouse in the window of Mixer volume, which is very inconvenient.

    no idea why the flying keys do not affect usb taken?

    Thank you

    Hi Yogi46,

    ·        Have you installed the software supplied with the Microsoft keyboard keyboard?

    ·        Who is the manufacturer of the computer, and what is the model of the computer number?

    I suggest to access the link below and download the keyboard theIntelliType Pro 8.0 for Windows 7 software and install it and check it out it allows you to change the volume using the keyboard.

    http://www.Microsoft.com/hardware/download/DownloadResult.aspx?category=MK&type=keyboard&name=anb-00001&OS=Win7_32&lang=en

    I hope this helps. Let us know the results.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Measures of true bipolar voltage with USB 6008/6009

    The 6008 or 6009 to make true bipolar (positive and negative voltages referenced to GND) measurements?  If not, what is the solution to purchase cheaper data this feature?

    Thank you.

    The question of unipolar vs bipolar vs bipolar Pseudo-aleatoire also was mentioned in this thread.  The 6008 6009 use bipolar-only mode and load the setting differential input or CSR.  Please note that {unipolar / bipolar / Pseudo-bipolaire} is independent of {differential / CSR / Pseudo-differentiel}.

    The 6008/6009 don't use 'Pseudo-bipolaire', which means that each differential input should be positive with respect to the ground.

    Best regards

  • Order of Python with USB-6009

    Hello

    I try to use the USB-6009 in Python 2.6 housing environment in Win7 64 bit system and I am facing problems with the following command.

    The following questions, I see the following error command

    1. DLL = windll. LoadLibrary("C:\\Windows\\System32\\nicaiu.dll")
      ...
      ... #command with return value! = 0
      error_str = c_char_p ("")
      b_size = c_uint (2048)
      ret_a = dll. DAQmxGetExtendedErrorInfo (error_str, b_size)

      After the last command python, I get the attached error message
      I'm doing something wrong?

    Thank you for the help,

    Hi Katerina

    You can try to replace "c_char_p" by "create_string_buffer." According to the Python reference library , "you should be careful, however, not not transmit (edit: c_char_p) functions expected of pointers to final memory.» If you need final memory blocks, types has a create_string_buffer() function that creates these in various ways. »

    from ctypes import *
    
    dll = windll.LoadLibrary("c:\\windows\\system32\\nicaiu.dll")
    error_str = create_string_buffer(2048) # try this instead of c_char_p("")
    b_size=c_uint(2048)
    task_handle = c_uint(0)
    error = dll.DAQmxStartTask(task_handle) #this will result in an error
    try:
        dll.DAQmxGetExtendedErrorInfo(error_str, b_size)
        print error_str.value
    except:
        print "oops"
    

    Let me know if it helps.

    Kind regards

    Sunil

  • A better way to make a continuous read/write on a NOR-6008

    Hello

    I use a USB of NOR-6008 module and have a loop of the software configuration where I acquire analog signals, digital signals, then, then put a digital high or low and repeat. I use digital multiplex outside the material so that I can use 6 of the analog inputs to read 12 signals. The digital inputs that I have are connected to the buttons on a panel that are used for the entry instead of the screen of the computer of the user. My loop is also to build a buffer zone of all the signals on the analog and digital lines that I read in so I can on average and this process elsewhere in the program.

    The question that I am running is because this loop is very slow and on the final product is performed on a touch screen, XP Embedded PC and just this acquisition loop begins again as much CPU as the rest of my program. I would say that drops of loops on 4 or 5 cycles per second, which means that my update of 2 multiplex signals or longer than a second time. I would really like to better performance and does not use as much of my CPU resources.

    I use a way simple enough to make the loop of the acquisition, by setting the parameters I, reading, deleting the task, defining the parameters DI, read, erase the task and then by setting the parameters, write about it and delete the task, which gives a slight delay and repeat.

    Any thoughts on a better way to start the read/write that what I'm doing?

    I have attached the code examples in the loop of the acquisition that I use.

    Thank you!

    First of all, the best plan is to move the chain DAQmx before the loop to create and use a start DAQmx, then write in the loop, then clear once the loop ends.  This configuration must be done once, not every time you write the channel.  This should speed things up considerably.

  • problem with loopback test base with NOR-6008

    I recently started to use DAQmx in c# .NET 4.0 with NOR-6008 USB DAQ. I tried a loopback test by connecting output to an analog input analog and tried readign the signal from the output to the entrance but did not send the signal (or maybe a problem with the code). The analog input readign reads a random value rather than the value entered by the user for the output. I connected ao0 and ai3 on data acquisition. Here's the code.

    private void button1_Click (object sender, EventArgs e)

    {

    Task analogOutTask = newTask();

    AOChannel myAOChannel = analogOutTask.AOChannels.CreateVoltageChannel ("Dev1/ao0", "myAOChannel", 0, 5, AOVoltageUnits.Volts);

    AnalogSingleChannelWriter writer = newAnalogSingleChannelWriter (analogOutTask.Stream);

    Double analogDataOut;

    analogDataOut = Convert.ToDouble (AnalogOut.Text);

    writer. WriteSingleSample (analogDataOut, true);

    }

    Private Sub button2_Click (ByVal sender As Object, EventArgs e)

    {

    Task analogInTask = newTask();

    AIChannel myAIChannel = analogInTask.AIChannels.CreateVoltageChannel ("Dev1/ai3", "myAIChannel", AITerminalConfiguration.Differential, 0, 5, AIVoltageUnits.Volts);

    AnalogSingleChannelReader reader = newAnalogSingleChannelReader (analogInTask.Stream);

    Double analogDataIn is reader. ReadSingleSample();

    AnalogIn.Text = analogDataIn.ToString ();

    }

    Hello

    I built an application using your code (with task.verify) and it works beautifully.

    Have you tried different channels of inputs/outputs?

    Curt

  • Clock and hw external trigger with USB-6210 on Linux with NOR-DAQmx Base?

    I have two devices USB-6210 I need to synchronize so that they both collect data exactly at the same time. I was told by support OR I can send the clock off Dev1/PFI4 and have the two USB-6210 s read the clock in through their own PFI0. I also want to trigger data collected for each device by sending a trigger off Dev1/PFI6 and have two devices to receive the signal on PFI2.

    All my attempts to try this are filled with error messages and my research online seem to say that's not possible with USB devices on NOR-DAQmx Base 3.4.0f2 on Linux.

    I "ve tried using example AI programs and those who do not seem to work either for external clocks. Here is the code I tried:

    #include "NIDAQmxBase.h"#include 
    
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    
    int main(void){    // Task parameters    int32       error = 0;    TaskHandle  taskHandle = 0;    char        errBuff[2048]={'\0'};    int32       i;
    
        // Channel parameters    char        chan[] = "Dev1/ai0";    float64     min = -10.0;    float64     max = 10.0;
    
        // Timing parameters    char        clockSource[] = "/Dev1/PFI7";    uInt64      samplesPerChan = 1000;    float64     sampleRate = 10000.0;
    
        // Data read parameters    #define     bufferSize (uInt32)1000    float64     data[bufferSize];    int32       pointsToRead = bufferSize;    int32       pointsRead;    float64     timeout = 10.0;
    
    printf("Calling CreateTask...\n");    DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));printf("Calling CreateAIVoltageChan...\n");    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL));printf("Calling CfgSampleClkTiming...\n");    DAQmxErrChk (DAQmxBaseCfgSampClkTiming(taskHandle,clockSource,sampleRate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,samplesPerChan));printf("Calling StartTask...\n");    DAQmxErrChk (DAQmxBaseStartTask(taskHandle));printf("Calling ReadAnalogF64\n");    DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,bufferSize,&pointsRead,NULL));
    
        printf ("Acquired %d samples\n", pointsRead);
    
        // Just print out the first 10 points    for (i = 0; i < 10; ++i)        printf ("data[%d] = %f\n", i, data[i]);
    
    Error:    if( DAQmxFailed(error) )        DAQmxBaseGetExtendedErrorInfo(errBuff,2048);    if(taskHandle != 0) {        DAQmxBaseStopTask (taskHandle);        DAQmxBaseClearTask (taskHandle);    }    if( DAQmxFailed(error) )       printf ("DAQmxBase Error %d: %s\n", error, errBuff);    return 0;}
    

    When I run the resulting program, I see this:

    $. / acquireNScans-ExtClk
    The CreateTask call...
    Call for CreateAIVoltageChan...
    Call for CfgSampleClkTiming...
    Error-89136 DAQmxBase: route specified cannot be satisfied, because the hardware does not support it.

    For example, a clock and a trigger can be imported via one of the PFI lines by using a USB-6210 on Linux with NOR-DAQmx Base? A clock and a trigger exportable via one of the PFI lines?

    If so, does anyone have the code example illustrating how to do this, or can you at least tell me the names of the lines ("PFI0/Dev1" or other) so I can try again?

    Clues or suggestions would be helpful.

    Thank you

    -Tom

    The clockSource in the example specifies an output rather than an input channel channel. Change source "/ Dev1 / PFI0" solved the problem.

    Please close this post.

  • Get incremental counter/sound to work along side with action with usb-6008 with labview tia sal22

    Get incremental counter/sound to work along the coast with usb-6008 with labview tia sal22

    Hi all

    I can get this vi to work if they are distinct from the vi but I can't join them together

    Example of my error:

    If buffers are set to 0 the freq counter increment works, but no sound
    If the buffers are set to 1 the audio works fine but is not increment the Freq counter
    If the buffers are attached to more 1 clicks and pops are coming

    That's what I'm doing:
    (1) have the frequency of increment of my internal sound card to a certain level as .01hz a second until he gets to 20 000 hz

    (2) use my device usb-6008 daq, which is connected to the same machine to measure the voltage at the same time. (I am in a position very low voltages between 1-5volts)

    (3) output to a worksheet text file which will show you:

    time in seconds, frequency, voltage
    0,400.01,2

    1,400.02,2.5

    2,400.03,1

    I'm a bit confused about how connect the increment and the audio during the measurements with the usb-6008 housing on the same machine
    at the same time and in the same VI.

    Anyone have any ideas?  I'm using labview 8.5
    TIA sal22

    Ha ha you have been deceived by a dynamic thread. Insert a convert from Dynamic Data Express VI (Palette to own: Signal handling screw Express) between the daq read and build the array function. Then it won't work. Now the value in the dynamic data is only converted to a numeric value

  • Pulse counting with USB 6008

    Hello world!

    I have a project with USB 6008. I want to count impulses (for special features: count the pulses of the encoder) use USB 6008. I wirite with DAQmx to test a simple. But it do ' t run. Please see and help me to do this exercise. I just borrowed 6008 USB so I don't have any experience with USB 6008. Thank you! It's funny.

    Looking at the PFI0 manual (pin 29) is correct and I don't see anything wrong with the code and example should work. I have a M-series card, not a 6008 and it works for me. This error code is meaningless if. Are you sure it's the number?

  • NOR-6008 selection file Matlab .m voltage range

    Hi, I need to select a range of power such as - 1V to + 1V file .m in MATLAB to acquire data of acquisition of data NOR-6008.

    I appreciate if someone can send me a code example.

    The system works very well and I can control successfully the sampling frequency, but not the voltage range.

    Concerning

    Hello

    The two alternatives are equivalent, option 2 is how to get to a channel if you had not registered to a variable when it is created.

    When you say that it doesn't work, do you have an error message?

    I just tried it on my machine with an NI USB-6008 with 4 channels and the range set to-1 [1] on one of these channels:

    > s = daq.createSession('ni')

    s =.

    Session data using National Instruments hardware acquisition:
    Will work for 1 second (1000 scans) to 1,000 scans/second.
    Some channels have been added.

    > s.addAnalogInputChannel ('dev2', 0:3, "voltage")

    years =

    Session data using National Instruments hardware acquisition:
    Will work for 1 second (1000 scans) to 1,000 scans/second.
    Number of channels: 4
    index of Type channel MeasurementType range nom_peripherique
    ----- ---- ------ ------- --------------- ---------------- ----
    1 THE Dev2 ai0 (Diff) voltage-20 to + 20 v
    2 THE Dev2 ai1 voltage (Diff)-20 to + 20 v
    3 THE Dev2 ai2 voltage (Diff)-20 to + 20 v
    4 THE Dev2 ai3 voltage (Diff)-20 to + 20 v

    > s.Channels (2). Range = [1-1]

    s =.

    Session data using National Instruments hardware acquisition:
    Will work for 1 second (1000 scans) to 1,000 scans/second.
    Number of channels: 4
    index of Type channel MeasurementType range nom_peripherique
    ----- ---- ------ ------- --------------- ------------------ ----
    1 THE Dev2 ai0 (Diff) voltage-20 to + 20 v
    2 THE Dev2 ai1 voltage (Diff) - 1.0 to + 1.0 v
    3 THE Dev2 ai2 voltage (Diff)-20 to + 20 v
    4 THE Dev2 ai3 voltage (Diff)-20 to + 20 v
       
    Properties, methods, events

    > s.inputSingleScan

    years =

    -0.0034 0.0008 0,0059 0.0012

    Wael Bruno

    The MathWorks

  • NI MAX with USB devices access violation

    I found a lot of messages about access violation, but most of them are about LabView and not MAX OR, as is the case here.

    I get an access violation error (0xC0000005 at PPC = 0x106399AE) whenever I try to create a new task of MAX OR by selecting a USB DAQ device. I tried with USB-6009 and USB-6211, same problem. The device is properly recognized (test) but when I try to create a new task I complete all the procedure, and when cliquerai I finish I get the error. This also causes LabView programs that use the tasks of MAX OR crashing.

    First of all, this happened after the NI DAQmx drivers update to a new version, but then I recognized that this version was incompatible with Labview installed on this machine (8.6). I tried to fall back by using a restore point in windows and reinstall the 9.5.1 DAQmx drivers (the latest drivers supported by the version of LabView.

    I tried to 'Reset Configuration data' MAX OR (under the Tools menu) without success. The WindowsXPUSBhotfix is also installed in the system. Any help?

    I also sent a support NC ticket: c82f5b4f-d774-40a2-8341-4dbeee9df876

    Specifications of the PC:

    Windows XP SP3

    LabVIEW 8.6

    NOR-DAQmx 9.5.1

    The error was eventually resolved by uninstalling OR MAX and LabView and then reinstall all the software needed. In particular, the configuration that worked was:

    -NI MAX 5.1 (includes NOT-DAQmx 9.5.1)

    -LabView 8.6

    -2.6 OR-488. 2 (including NI-VISA 4.4.1)

    the last of them was necessary to connect to another device to purchase. With the above configuration, the wizard DAQ worked and generated a task, but when the program was launched, the task was not able to recognize the good device (unit name is an empty string). So I converted it to a NOR-DAQmx task, and now it works. (Don't really know if this quick passage would have been a good work around from the beginning.)

  • I2C implementation using NOR-6008

    Hello world

    I have a NOR-6008 low cost multifunction data acquisition.

    Can I use this with shifter voltage level to apply the I2C Protocol...

    You must use the approach of bit - strike (i.e., change you the clock and data lines yourself) and it would be timed by the software. But yes, you could do.

    Your next question will be: are there examples? There are many examples on the conduct of IO digital who settle with DAQmx. Regarding the implementation of I2C, the spec is available. http://en.Wikipedia.org/wiki/I%C2%B2C

  • Problems with audio/video streaming with USB devices on zero clients

    Hello:
    We are using view 6.1.1 in our environment and problems getting audio/video streaming to work well with the USB headsets, with zero customers.  Helmets are Jabra Link 360 and customers zero Samsung NC241.  Helmets are used as well for the phones to Jabber and also as audio device by default.   We started with the audio driver Teradici and everything seemed to work well, except that users could not answer calls on the headset itself with the button on the headset.  They were able to answer the calls of Windows though and the part worked fine.  In order to get the physical button to work, we had to first fill the USB receiver they use on the zero clients so that Windows will see as the device Jabra 360 and not the audio device Teradici.  Then we had the EHCI USB mode on them as well, and after that he started to work very well.  However, the helmets also serve as the audio device main as well as the communication (phone) device, with audio streaming continuously throughout the day.  With the current configuration, audio streaming will cut in and out during the day, and audio/video is not always to stay in either phase.

    I also applied the registry in this KB hack, VMware KB: improvement in audio quality when you use speakers or USB headsets with a desktop VMware view Horizon 5.2 , which helped clear up Crackle that we originally with the part phone headsets.  But there is still the issue of streaming audio.

    I wonder if the effectiveness of the bridging USB is not as effective and also is there a way to make this work better?  I read that the use of the pilot Teradici is supposed to help with audio/video problems, but do not know how that can be applied to USB devices as we use.  I've been reading upward on Teradici audio/video settings, but do not know where to go from there.  I was hoping that there are some best practices to use USB headsets with a view, but so far I'm not finding anything useful.

    For any help or suggestion would be greatly appreciated.  Thanks in advance.

    We were finally getting help by the people of Cisco after validation in the here and even open a support ticket with VMware, which was open for more than a month without will.  Where others try to implement similar, here are our findings:

    • Zero clients combine traffic USB and PCoIP.  It is not good when there is a lot of audio/video/USB traffic, especially the USB headsets that also carry audio softphone.  In our case, the USB traffic was so dense that it was causing audio and video become troubled and freeze and eventually cause the pcoip_server service to break in the virtual machine itself and cause the client disconnect.  The fix?  Don't use customers zero with USB phones software, they are not just designed for this type of solution.
    • Thin clients are much better designed for USB softphones.  In our case, we used the Cisco VXME client, which is the method of support for the use of Windows thin clients with the client of the Horizon.  There is integration between the two products that isolates the VOIP traffic out of the virtual machine and keeps it local on the client itself.  Regular audio and video traffic still go through the virtual machine using Teradici or VMware RTAV driver.

    Hope this helps others who may run this question.  One thing we did not try was a wired headset using the AV sockets on the zero client and Teradici audio driver.  This can work, but our needs here were the headphones must be bluetooth, so we were forced to stick with USB.

  • Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    N ° you need a computer logic board which has built in Thunderbolt.

  • With USB ports surge protectors

    I have an iPad 12,9 Pro.  I noticed an increase in surge protector Strip with USB connections available in stores.  Is can I charge my iPad Pro by directly connecting the charging cable into either of the USB sockets on the power strip to the surge protector?

    Perhaps, but it will be probably cool more slowly than with 12 Watt charger, it came with. Compare the 2.4 output amplifier with current available from one of these ports of surge protector.

Maybe you are looking for

  • Impossible to access Internet or use EWS 8610

    I have had this printer for 3 months and everything has been fine. Now the sign says 'Necessary connection', and the printer will not connect to Internet. I can't use the built-in Web server and HP connected in a line indicates that the printer is no

  • power on password HP 2000-2b89WM notebook PC

    I have laptop HP 2000-2b89WM and my son accidently set and then I forgot the power on password, the error # I receive after 3 failed attempts is 60790915 can you please help

  • AW17R3 keyboard backlighting

    Hello I was wondering if it is possible for the AW17R3 to have its backlit keyboard light up only when I press a button and the light turns off after a period of inactivity? Thank you!

  • How to write data to the XML in VBA 6

    Hello I am using vba 6 I have different data like strings, integer etc I get the object group tag. I want to write data of XML on the button click. and save this file on the way to my pc.

  • BlackBerry BIS Z10

    Why the BIS is arrested in South Africa?