Generate a binary sequence with the NI USB-6008
Hi all
I'm new to LabView and I am trying to generate a binary sequence with a box NI USB-6008. The sequence, I'm currently generate is a counter of 5 bits, i.e. 00000 00001 00010, 00011... 11110, 11111 placing each bit in a different digital IO of the of the 6008 NOR, so that I can use the County as the bits of selection in a decoder/demux.
I managed to simulate the binary sequence and produce a graphical interface, but I have not found how to generate the sequence of bits with the NI 6008.
Totally, I'd appreciate any help you could provide. Thank you very much.
Hi JosephM,
Good Afternooon and I hope your well today.
I just tested the code on a 6008 and also released the above code is very complex - I was for some reason any fixed on using Boolean tables.
Please see the attached code, in LabVIEW 8.6.
Mind you, I have configured the task as a channel for all lines. i.e. digital single I spent, is the task value should apply to all channels selected in the entry. So if you select only port0/Dev8/$line0 for example, the DAQmx driver will examine the LSB of the digital and work so $line0 must be true from the false. It will NOT update all other channels. So when I select line0:4 - it will update the first 5 lines (bits) in digital. As the code generates a number from 0-32 he emotional generates 00000 to 11111.
I hope this finds you well and sorry for the first post!
Tags: NI Software
Similar Questions
-
With the NI USB-6008 case error-200077
I try to run the C program example with my NI USB-6008 data acquisition card. I am trying to run the example of "ContGen - ExtClk.c". I get the following error when I build the program:
DAQmx error: the requested value is not supported for this property value. The value of the property may be invalid because it is in conflict with another property.
Property: DAQmx_SampTimingType
Asked the value: DAQmx_Val_SampClk
You can select: DAQmx_Val_OnDemand
Task name: _unnamedTask<0>
State code:-200077
End of the program, press the Enter key to exit
Thanks for any help.
Have you done a search for this error code? As you can see on the care for the 6008, the analog output is only software timed, so you can select calendar on request. Your real update rate will vary a little, and according to specifications, have a maximum of 150 s/s.
0> -
Apple Watch magnetic charging Dock is compatible with the adapter USB 12W power and if so, is the adaptor 12W shorten the charging time?
Yes and no.
-
Satellite M30X-129 loses connectivity with the external USB device
I have a problem with my laptop that has regularly been do worse and I can handle is no longer!
Whenever I work with external devices via USB ports (all kinds of devices but my external hard drive Smartdisk CrossFire and my iPod in particular), after a certain period of time (sometimes minutes, sometimes hours) the laptop loses connectivity with the device.
If happens to be listening to the music, download photos from a camera or laptop computer for the ' net or sync of the iPod, the connection is cut off, turning off the device and I have to start all over again!
I'm almost at the point of launch of the laptop by the window, so any help is most welcome.
Thank you
AbderrahmanHello
This happens also with the external USB mouse?
This occurs if the power adapter is plugged or only if the laptop running on battery?In-hubs properties > Device Manager USB root-> power management
You will find the option called allow the computer to turn off this device to save power.I would recommend the brand and disable this option.
Maybe it helps.
By the way; When do you update the operating system? I think that it s there long time, perhaps some system files or registry entries are corrupted or a 3rd party application affect the USB functionality?
-
Acquisition of vibration with the NI USB-9234 using the NIDaqMxBase library
I have a NI USB-9162 linked to a NOR-9234 properly configured and installed under OpenSUSE 11.3. It's the output of ldaq:
>lsdaq -------------------------------- Detecting National Instruments DAQ Devices Found the following DAQ Devices: NI USB-9234: "Dev1" (USB0::0x3923::0x72B5::0164852A::RAW) --------------------------------
I'm developing a simple application to acquire the values of vibration of a project connected with an accelerometer.
We start from the example of acquireNScans - AnlgStart.c of NIDaqMxBase 3.4.5 documentation.Unfortunately, the program fails and generates the following error:
"DAQmxBase Error -200428: Value passed to the Task/Channels In control is invalid."
Then I realize that the NI9234 doesn't support analog and digital triggers so I have decided to try with the acquire1Scan.c (a scan without triggering):
int main(int argc, char *argv[]) { // Task parameters int32 error = 0; TaskHandle taskHandle = 0; char errBuff[2048]={'\0'}; // Channel parameters char chan[] = "Dev1/ai0"; float64 min = -10.0; float64 max = 10.0; // Timing parameters uInt64 samplesPerChan = 1; // Data read parameters float64 data; int32 pointsToRead = 1; int32 pointsRead; float64 timeout = 10.0; DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle)); DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,NULL)); DAQmxErrChk (DAQmxBaseStartTask(taskHandle)); DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,&data,samplesPerChan,&pointsRead,NULL)); printf ("Acquired reading: %f\n", data);
Also this program fails and gives this error:
DAQmxBase Error -200077:
Requested value is not a supported value for this property. (Timing Mode) How can I get at least a single data value of the accelerometer of the device using the NIDaqMxBase API?
Hi giaulo,
The examples that you have tried to run are not compatible with your device.
The 9234 does not support analog triggering, so examples of "acquireNScans" - AnlgStart.c do not work.
He is also unable to make an acquisition of single point because is based on the architecture of delta-sigma ADC. Here is a knowledge base article explaining the limitation:
KB 4SU94SH7: DSA Hardware Support a Point Acquisition?
This is the reason why the "acquire1Scan.c" does not work.
You will need run one example making an acquisition in the buffer. "acquireNScans.c" would be a good to watch. Be aware of all these examples, the default is +/-10V input range. The 9234 can only input +/-5V, so it will take a few changes. Also as you try to read an accelerometer, IEPE excitement is probably necessary. I've attached an example which is based on the example of "contAcquireNChan.c" that defines the range and allows the excitement for the device correctly.
-
Latency huge while working with the NI USB-6521
Hello
My testbend mounting is illustrated on Fig. 1, Fig. 2.
Here are its features:
- ' Simulate Signal ' block generates a Sawtooth signal with adjustable parameters - ampl, freq, offset of phase
- the release of "simulate Signal" connected the driver to exit AO0 (block "USB-6521 AO0") of the device USB-6521
- AO0 output is wired for entry AI0 of the device USB-6521
- the output of the driver of the AI0 (block "USB-6521 AI0") entry is wired on waveform graph (blue line) and the entrance to the driver "USB-6521 AO0" (red line)
Play with testbend do I saw 2 strange phenomena:
- When I change some settings sawtooth ( ampl, freq, offset) latency is approximately 15 seconds
- While the signal generated by "Simulate Signal" is perfect Sawtooth, out of "USB-6521 AO0" is not perfect... in other words, its shape is not always follow the source form (I also order by oscilloscope).
Any comments welcome.
Thanks in advance
Pavel
Fig. 1
Fig. 2
It is not supposed to be instantaneous. If you understood the basic arithmetic, you know that it takes 10 milliseconds to acquire and display the signal - that's what you're showing.
To view several times, you will need to acquire more samples. Again, this is only basic arithmetic.
-
I get BSOD with the key USB TV Tuner PX1211E-1TVD
Hi all
I just bought the model tuner TV USB Toshiba px1211e-1tvd and whenever I turn it on I get a blue screen error on my hp Pavilion dv6821el pc... dv6000 series.
I tried to update the BIOS and the driver of my pc's display, but without results...
The USB device is properly installed and the program (savvy tv) included with the cd as well, but I still get the Blue error screen...
The operating system is Windows Vista...What can you suggest me to do folks?
Please... I need help :-(
Hello
The BSOD appears usually due to a hardware problem problem or software commutabilite.
I think in your case it s a software problem and I recommend updating the driver.The new driver could be found on the European driver Toshiba page in the Options area.
On the driver page choose this:* Options-> Office Accessories based-> tuner TV USB hybrid TV Tuner Windows Vista 32 bit *.
There you can find Savvy TV driver.
-
How can I improve the rate of acquisition with daqmx and usb-6008?
Hello
I am trying to acquire data of analog voltage with a USB-6008. I'm under Labview 8.5 student on an HP laptop with a 1.33 Ghz cpu and 736MB RAM, apparently. I tried using the Daq assistant and the low-level Daqmx functions. My best results come with a task set in MAX for my analog input, and using the function 'Daqmx read' the 'unique double 1 d sample' value in a while loop. I insert the values returned in a table which built in the while loop, and then when I'm done, I check the number of samples in the table. In the test VI attached, I also use the time to Get before and after all loop. The best sampling rate I made using this method, is around 40samples/second. I have attached a VI below that illustrates this concept. In my actual application, the data acquisition code runs at a time while loop with 1ms, parallel to other code that controls the device I'm collecting data of. The sampling rate is roughly the same for my test below VI and my application program.
The 6008 datasheet gives the sampling frequency maximum 10 kHz. I'd be happy with 2 to 2.5 kHz, or as soon as possible; I'm sure that I can achieve a little more than 40 Hz. My first idea was tied to the hardware, but the 6008 cannot make acquisitions NI hardware.
My question is: How can I implement a faster sampling of analog voltages to a USB-6008 in LAbview? If I can't do it, is there another way I can taste the data more quickly?
Thank you
-SK-
To the best of my knowledge, the USB-6008 can do timed equipment acquisition. Don't forget that this is a multiplexed device, so if you add 8 channels so the maximum you can set is 10 k/8
If you are new to LabVIEW, I suggest that you try this sample program first
\examples\DAQmx\Analog In\Measure voltage. llb\Acq & Graph tension-Int Clk.vi Amit
-
WRITEBACK FAILED WITH THE NEW USB FLASH DRIVE/PEN
I installed XP (SP3). I recently bought a 8 GB (sandisk cruzer) flash drive and when I try and copy files on this drive, the process hangs after you copy a file and then after about a minute gives the following error message:
"Cannot copy IMG_111: cannot find the file specified. '. Make sure you specify the correct path and name of the file. »
Then, I get the following error message:
"WINDOWS DELAYED WRITE FAILED. Windows was unable to save all the data for the file H:. The data has been lost. This error can be caused by a failure of your computer hardware or network connection. Please try and save this file elsewhere. »
However, I have 2 other USB more former flash drives, a 512 MB which is 9 years old and a 256 MB a few years that work perfectly.
I tried 2 other 4 GB flash drives last year - which did not work on my system, and gave the same mistakes. On this occasion, I sent the disks back thinking they were defective instead of a problem with my PC.
All this seems to coincide with the installation of SP3.
After talking to Sandisk, they suggested that I need to get updated drivers.
However I dodnt know if this is the solution and if so where can I find the?
Help!
Please let know how you solved your problem.
Hope this helps, Gerry Cornell
-
My Sprint HTC Android mobile phone connects with the USB cable, but the computer says 'No. HTC Device Connected' so I can't sync...
Hello
1. do you have HTC Manager installed on the computer?
2. have you tried it with different USB ports?
You need the HTC Sync HTC phone Manager software.
Method 1: Try again with different USB ports and see if that helps.
Method 2: If HTC Sync is installed, if you get the message "no device connected" in HTC Sync, ensure that your phone USB setting is changed to "Charge Only" to "HTC Sync".
If the methods above do not help, you can contact HTC for additional help.
Here is the link: http://www.htc.com/us/support/
-
Software AIO with the only USB 3.0 systems problems
I just had problems with the installation of PSC 1510 and J5780 to be connected systems USB 3.0 only as a Fujitsu Lifebook A544 under W7 - 64.
In both cases, download the latest package and stopped installation:
http://www.Club-PAC.de/download/HPj5780-error.PDF%C2%A0
W7-64 systems are fully patched, a "naked" before first Installation HP look so no HP software - lay before.
Note: alle USB3.0 ports are in good condition!
Reference:
Solution (at least for Fujitsu of A544):
If possible, use BIOS routines disable the functionality of USB 3.0 and USB 2.0 only instead.
Windows will then take some time to install drivers for USB for USB 2.0 devices, but after that, the HP AIO software installation will succeed.
Now, you can reactivate the USB 3.0 feature in the BIOS. Believe it or not, software, printer, scanner still doesn't work.
Add on: evidence for quality control: using scanner in German will have Dutch expression on the button "Cancel"...
-
Export issues of sequences with the correct settings for DVD
Hi - I'm relatively new at first, but working on a project that is very important for me - for the life of me I can't understand correctly export settings.
I have compiled from home movies of my family in a few sequences for the 60 years of my dad. I worked on these weeks now get cleaned and put all together. In total, it's about 24 hours of footage. These videos have all turned initially on a very old camera video in the 80 and 90 - the kind you actually stuck a VHS tape in. My ultimate goal is to put these or on a DVD (although I guess that's too many images for one), or a drive flash or something of all compiled in one video.
So far, I got error messages on not enough disk space - so I tried breaking the sequences and exported individually as smaller files. But now, when I export those, all videos come out tiny - the video focuses on a much larger screen, do more fit to size. I studied everything about elongation and corresponding parameters and I tried everything. Of course I do not something good, I don't know what.
I tried all different export settings, the settings of the sequence, and I thought I was following with the sequence settings, but I guess I'm not. Although I worked on it for weeks, I am out of time. His birthday was yesterday, and I wanted to give her the finished disc tomorrow. This does not seem possible as I am about to give up!
Someone please help! I would be grateful if someone could guide me through what my sequence settings should be and what my export settings should be and how to get the video output to the correct size for the screen.
I appreciate your help,
Danielle
Time of export will vary widely, depending on at least these factors
1 - your computer... Processor and the amount of RAM, and is this external drive, USB2 and USB3?
2. what you change, and effects that you have applied your 718 x 480 video size... is odd, the usual when scanning a VHS tape is 720 x 480, so your video requires 'some much' extra processing
-
Is there a reason why certain numbers automatically generated do not align with the text?
I'm building a small book in InDesign and generated chapter numbers only display correctly aligned with the text of the chapter into two chapters. In others, they are slightly lower than the base line and print that way. They all use the same format title and list paragraph. (I even checked the Master Pages for objects that drag may interfere and see nothing.) Someone has seen this and can point me to a solution? The original document was from the Pages converted to MS Word, so I tried to see if there are some strange characters which came with the conversion, but as you can see on the screenshot below, nothing shows up. Any help to identify the problem or a cure would be greatly appreciated.
Here is a chapter that is displayed not correctly, and it is the base character Format options.
This is the same information and display of one of only two chapters that are aligned properly.
This is the same information for the works do not and the chapter number of work outlining the options for bullets and numbers.
artomis-
Eugene said that options 'last '. He meant the four options at the bottom of the list, but especially 'by default Figure Style'. Try "tabular covering" as Peter suggested.
Tom
-
SEQUENCING WITH THE HELP OF SQL
Hello
I have a requirement such as if my data is as follows
name identity
1 John
2 John
3 jane
4 jimmy
5 jimmy
Jack 6
I need a sequence that looks like
Name seq ID
1 John 1
2 John 1
3 jane 2
4 3 Jimmy
5 jimmy 3
6 Jack 4
and so on
So, I have a suspicion we can use analytics, but cannot set up a query to do this.
Sorry, it of a little naïve but would appreciate a hint...
Thank you
BirdyHi, Birdy,
Birdy says:
HelloI have a requirement such as if my data is as follows
name identity
1 John
2 John
3 jane
4 jimmy
5 jimmy
Jack 6I need a sequence that looks like
Name seq ID
1 John 1
2 John 1
3 jane 2
4 3 Jimmy
5 jimmy 3
6 Jack 4and so on
So, I have a suspicion we can use analytics, but cannot set up a query to do this.
Your right; analytical functions can do that. DENSE_RANK assign a number without gaps, duplicate output when the input is duplicated.
Do you care which name gets seq = 1 and who gets seq = 2? If this isn't the case, you can sort the names alphabetically:SELECT id , name , DENSE_RANK () OVER (ORDER BY name) AS seq FROM table_x ;
In the output you posted, it appears you want what they classified by the id low associated with each name ('Jean' = 1, 'jane' = 3 and so on). You can get the id low with the analytical MIN function:
WITH got_min_id AS ( SELECT id , name , MIN (id) OVER (PARTITION BY name) AS min_id FROM table_x ) SELECT id , name , DENSE_RANK () OVER (ORDER BY min_id) AS seq FROM table_x ;
Analytical functions cannot be nested. In other words, you can not say
... OVER (ORDER BY MIN (id) OVER ...)
That's why I used the got_min_id of the subquery.
-
results after you start the netbook with the bootable usb key
do you do after you make the bootable USB key and start your netbook and just windows 7 Professional can't choke and it want let me to upgrade or to perform a custom installation? & What drivers should I install?
If you want to upgrade your Netbook Windows 7 Starter to Windows 7 Professional, you must use the upgrade wizard Express Windows as well as the key to Windows 7 Professional.
If the license for Windows 7 Professional, you have access to is a retail version update or complete, you can use the product key and the Express upgrade from Windows 7 Starter to Windows 7 Professional. First of all, check that the edition of Windows 7, you are upgrading is already enabled (if it isn't, you will encounter complications and that you might start all by performing a clean installation).
Click Start, type Anytime Upgrade, click on the option enter a key, enter the key of Windows 7 Professional on demand, click Next, wait while checking the key, accept the license agreement, click on upgrade, wait while the software upgrades, (it may take 10 minutes or more depending on the if updates are required) your computer restarts automatically, after the reboot, Windows 7 will notify you updating the computer, the computer will restart once more automatically and will be completed the upgrade, a window will appear notifying the upgrade was successful and your computer is ready to use, click Close, you should be upgraded to Windows 7 Professional your files, programs and settings retained.
Maybe you are looking for
-
How can I disable 'Remember password'?
I accidentally pushed "remember this password" on an account, I want to be private. How do I turn it off? I changed the password but the old information continues to show.
-
Hello Forum - my 12 c calculator financial continues to return 'Error 5' when trying to solve the number of periods (n) necessary to amortize 175000 (PV) 7% with $ 1,000 per month payment (PMT). I have new batteries; I erased all financial records ea
-
malfunction nvlddmkm display driver / he stops working and then restores it's self
I am very new to this sort of thing computor, and it's very unnerveing, when strange things happen to the computor. I need to know How to solve this problem, because it is very annoying, when it arrives in the middle of do me something. Help, Help! L
-
Whenever I try to send an email from my computer, I get this information after if I would use my default account to send an email. The host 'jfklenda' is not found. Please check that you have entered the server name correctly.Object ", account: 'jfk
-
on my desk that I right click again and there is no option for a new folder When I go to one of my libraries and do the same thing isn't always where and when I go to any library and click on at the top of the window, the button that says new folder