From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a task

hi!

 

i am doing a program, and i have a big problem...

 

i will do a summary of what i am doing...

 

I connect the usb 6009 card to mi pc, and then i run the program...

 

in the program i have an excel file that have this information:

 

acceleration    dev4/ai3

speed             dev4/ai0

....

 

so this file is used in a lot of computers...and the usb 6009 card, change his dev depending what computer is conected on...

 

in the program i do a task when read acceleration  dev4/ai3...so i work to read the ai3...

 

i have done a recognizment of the card when i conect to the pc...so i have the dev of the card in differents pcs...the ports are always the same...

 

i have tought that cna be good idea to change the excel file to:  acceleration usb6009/ai3

 

so when i read it my computer know that there is a usb6009 in dev4, so what can i do to make a task that will be  have this result to work:

 

1-first time reading excel:

 

acceleration  usb6009/ai3

 

2- recognice usb6009 with the programm and take what dev is..(dev4)

 

3- compare:

 

so when is usb6009/ai3-->change the usb6009/ai3 to dev4/ai3

4- create the task to work...

 

i think you will understand...

 

if someone have a question please write and i will try to answer or to explain it better..

 

THANKS!

0 Kudos
Message 1 of 5
(2,173 Views)

Frist off you need to keep this discussion in one place.

 

http://forums.ni.com/t5/LabVIEW/how-can-i-get-the-serial-and-the-tipe-of-model-of-the-target-i/td-p/...

 

But if you modify the VI I gave you yesterday you can actually get the device names for any connected device and use that in you code. See below:

 

Example.png

Tim
GHSP
0 Kudos
Message 2 of 5
(2,167 Views)

Simple answer would be "Problem as well as Formula is given to you, find out the solution".

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 5
(2,164 Views)

hi i am a partner of alan, we are working together...

 

we are building our programm, we have an execel file with the names of variable and the pins or channel we havr to use...


the excel table will be like this

 

ACCELERATION    USB6009/AI3


i think i can do it like this:

 

read the excel file and search if there is an usb6009, this i will do with i program i have done in labview, so after that,

i will do, an 'if' , if i have read it, read the dev i have recognized with the labview and the channel i have said...

 

so i have read usb6009/ai3 change it for dev4/ai3 and do a task to read this channel...

 

do you understand??

 

leer el excel y buscar si hay un usb6009 en el archivo, y con el programa
que
puedo reconocer que placa he conctado y que device es, cambiar el excel , o

hacer un if de esta manera

si he  leido usb6009/AI3
QUE GENERE UN TASK PERO TRABAJANDO EN DEV4/AI3....me explico...como podria
hacer esto???


GRACIAS

0 Kudos
Message 4 of 5
(2,140 Views)

sorry last 3 or 4 lines are incorrect!

0 Kudos
Message 5 of 5
(2,138 Views)