LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to output 32-bits data in cvi

I knew it is easy to labview,but I am a fresh man I cannot implentment it in labwindows/CVI
I am using the labwindows/cvito output a 32-bit data once a time,when I use the
status = DIG_Out_Prt (6, 0, 0xFFFFFFFF);
an error occured and said that invalid number

when I use the group mode to output the data,after I set the group as 4 ports,and output oxFFFFFFFF,an error occured and it was said that group size too large

how can I output a 32-bit data once a time
0 Kudos
Message 1 of 2
(2,487 Views)
Hello roboo77,

I�m assuming you are using either the DIO-32F or DIO-32HS, since only these boards support group output. If this is the case, try using the DIG_Out_Grp function instead of DIG_Out_Prt. If you are not using either of these boards, groups are not supported, and you probably only need to output the bottom eight bits (to the bottom eight output lines). In this case, leave the top 24 bits as 0 (use only 0x00000000 to 0x000000ff) and it should work. If neither of these suggestions help, let me know what card you are using, what ports (lines) you want to write to, and I�ll look into it further.

Have a nice day!

Robert M
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,487 Views)